From 04ff3c94576b6749e205521307e4a54d3d05f7c3 Mon Sep 17 00:00:00 2001 From: Bjorn Stromberg Date: Sun, 19 Aug 2018 12:08:02 +0900 Subject: [PATCH] v3.7.1 - 2018-08-19 --- CHANGELOG.md | 3 +++ package.json | 2 +- test/index.js | 2 +- webextension/index.js | 3 +++ webextension/manifest.json | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22db428..7d37215 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Intercept Redirect +## v3.7.1 - 2018-08-19 +- `curseforge.com` actually double URI encodes their link + ## v3.7.0 - 2018-08-19 - Add `curseforge.com`'s linkout diff --git a/package.json b/package.json index 33d78c2..cfe4551 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bjornstar/intercept-redirect", - "version": "3.7.0", + "version": "3.7.1", "description": "Skip tracking redirects that serve no purpose other than to waste your valuable time.", "main": "webextension/index.js", "dependencies": {}, diff --git a/test/index.js b/test/index.js index ca4c922..5944e2a 100644 --- a/test/index.js +++ b/test/index.js @@ -12,7 +12,7 @@ const { analyzeURL, subdomain } = webExtension; const urls = [ 'https://bjornstar.digidip.net/visit?url=https%3A%2F%2Fbjornstar.com%2Fintercept-redirect', - 'https://wow.curseforge.com/linkout?remoteUrl=https%3A%2F%2Fbjornstar.com%2Fintercept-redirect', + 'https://wow.curseforge.com/linkout?remoteUrl=https%253A%252F%252Fbjornstar.com%252Fintercept-redirect', // curseforge double URI encodes 'https://disq.us/url?url=https%3A%2F%2Fbjornstar.com%2Fintercept-redirect%3AzjHJ9CS7YTS6D6-FWtZRTF8swk4', 'https://exit.sc/?url=https%3A%2F%2Fbjornstar.com%2Fintercept-redirect', 'https://l.facebook.com/l.php?u=https%3A%2F%2Fbjornstar.com%2Fintercept-redirect', diff --git a/webextension/index.js b/webextension/index.js index 815ef92..c0b8255 100644 --- a/webextension/index.js +++ b/webextension/index.js @@ -11,6 +11,9 @@ const sites = { '*.curseforge.com': { pathnames: { '/linkout': ['remoteUrl'] + }, + extra: function (s = '') { + return decodeURIComponent(s); } }, '*.digidip.net': { diff --git a/webextension/manifest.json b/webextension/manifest.json index f0ea461..b8f0fb3 100644 --- a/webextension/manifest.json +++ b/webextension/manifest.json @@ -27,5 +27,5 @@ "*://workable.com/", "*://www.youtube.com/" ], - "version": "3.7.0" + "version": "3.7.1" }