Bypassing pathname for Imgur #124

This commit is contained in:
ManeraKai 2022-03-22 20:28:46 +03:00
parent 2474df3877
commit 75910e13ea
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
2 changed files with 1 additions and 4 deletions

View File

@ -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];

View File

@ -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")];