From 879d142ad29fc551091a6c9c1d2edcbe9ce9cdf6 Mon Sep 17 00:00:00 2001 From: Ahmet Arda Kavakci Date: Fri, 15 Apr 2022 21:35:16 +0300 Subject: [PATCH] Change 'indexOf' with 'includes' --- privacy-redirector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/privacy-redirector.js b/privacy-redirector.js index bbed208..690c266 100644 --- a/privacy-redirector.js +++ b/privacy-redirector.js @@ -4,7 +4,7 @@ // @downloadURL https://raw.githubusercontent.com/dybdeskarphet/privacy-redirector/main/privacy-redirector.js // @updateURL https://raw.githubusercontent.com/dybdeskarphet/privacy-redirector/main/privacy-redirector.js // @license WTFPL -// @version 1.1.4 +// @version 1.1.5 // @description Redirect social media platforms to their privacy respecting frontends // @description:tr Sosyal medya platformlarını, gizliliğe saygı duyan önyüzlerine yönlendirir // @run-at document-start @@ -50,7 +50,7 @@ function redirectInstagram() { return; } - if (window.location.pathname.indexOf("/p/") == 0) { + if (window.location.pathname.includes("/p/") == false) { window.stop(); location.hostname = 'bibliogram.pussthecat.org'; } else if (window.location.pathname == "/") {