about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSimonBrazell <simon@brazell.com.au>2020-05-04 10:30:51 +1000
committerSimonBrazell <simon@brazell.com.au>2020-05-04 10:30:51 +1000
commit4a08f5da8f04e4bd2ecf2b7bc3736fc40aa8b1be (patch)
treef562c9ab52cb58ceda0068735fc3358eb0c0e750
parentFixes #40 - Empty whitelist broke redirects (diff)
downloadlibredirect-4a08f5da8f04e4bd2ecf2b7bc3736fc40aa8b1be.zip
Fixes #45 - some usersnames caught in instagramReservedPaths
-rw-r--r--background.js2
-rw-r--r--manifest.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/background.js b/background.js
index f249b80f..6ebc84e8 100644
--- a/background.js
+++ b/background.js
@@ -26,7 +26,7 @@ const instagramDomains = [
   "help.instagram.com",
   "about.instagram.com",
 ];
-const instagramReservedPaths = /\/(p|favicon.ico|developer|legal|about|explore|support|press|api|privacy|safety|admin|help|terms|contact|blog|igtv)/;
+const instagramReservedPaths = /^\/(p|favicon.ico|developer|legal|about|explore|support|press|api|privacy|safety|admin|help|terms|contact|blog|igtv)\/?$/;
 const bibliogramBypassPaths = /\/(accounts\/|embeds?.js)/;
 const bibliogramInstances = [
   'https://bibliogram.art',
diff --git a/manifest.json b/manifest.json
index 77dbb11d..49ffb2a4 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,7 @@
 {
   "name": "Privacy Redirect",
   "description": "Redirects Twitter, YouTube, Instagram & Google Maps requests to privacy friendly alternatives.",
-  "version": "1.1.23",
+  "version": "1.1.24",
   "manifest_version": 2,
   "background": {
     "scripts": [