Bypassing pathname for Imgur #124
This commit is contained in:
parent
2474df3877
commit
75910e13ea
|
@ -108,6 +108,7 @@ function redirect(url, type) {
|
|||
// https://i.imgur.com/CFSQArP.jpeg
|
||||
|
||||
if (type != "main_frame" && type != "sub_frame" && type != "xmlhttprequest" && type != "other") return null;
|
||||
if (url.pathname.includes("delete/")) return null;
|
||||
|
||||
let instancesList;
|
||||
if (protocol == 'normal') instancesList = [...rimgoNormalRedirectsChecks, ...rimgoNormalCustomRedirects];
|
||||
|
|
|
@ -100,10 +100,6 @@ function redirect(url, initiator) {
|
|||
if (lat && lon && zoom) {
|
||||
if (frontend == 'osm') mapCentre = `#map=${zoom}/${lat}/${lon}`;
|
||||
if (frontend == 'facil') mapCentre = `#${zoom}/${lat}/${lon}`;
|
||||
|
||||
console.log("lat", lat) // vertical
|
||||
console.log("lon", lon) // horizontal
|
||||
console.log("zoom", zoom);
|
||||
}
|
||||
|
||||
if (url.searchParams.get("layer")) prefs.layers = osmLayers[url.searchParams.get("layer")];
|
||||
|
|
Loading…
Reference in New Issue