From fe9797caccff6ea577bda8af5f17e8bca207a09f Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 14 Sep 2020 08:43:51 -0400 Subject: [PATCH] Add easylist.to as a valid target for subscriber content script --- platform/chromium/manifest.json | 1 + platform/firefox/manifest.json | 1 + platform/opera/manifest.json | 1 + platform/thunderbird/manifest.json | 1 + platform/webext/manifest.json | 1 + src/js/scriptlets/subscriber.js | 2 +- 6 files changed, 6 insertions(+), 1 deletion(-) diff --git a/platform/chromium/manifest.json b/platform/chromium/manifest.json index 079a3cf8a..4a620d0f8 100644 --- a/platform/chromium/manifest.json +++ b/platform/chromium/manifest.json @@ -45,6 +45,7 @@ }, { "matches": [ + "https://easylist.to/*", "https://filterlists.com/*", "https://github.com/*", "https://*.github.io/*" diff --git a/platform/firefox/manifest.json b/platform/firefox/manifest.json index e5dfe9405..cea6c61bf 100644 --- a/platform/firefox/manifest.json +++ b/platform/firefox/manifest.json @@ -55,6 +55,7 @@ }, { "matches": [ + "https://easylist.to/*", "https://filterlists.com/*", "https://github.com/*", "https://*.github.io/*" diff --git a/platform/opera/manifest.json b/platform/opera/manifest.json index c253590ee..58619f2ab 100644 --- a/platform/opera/manifest.json +++ b/platform/opera/manifest.json @@ -45,6 +45,7 @@ }, { "matches": [ + "https://easylist.to/*", "https://filterlists.com/*", "https://github.com/*", "https://*.github.io/*" diff --git a/platform/thunderbird/manifest.json b/platform/thunderbird/manifest.json index bc81fd2b5..8c12c7662 100644 --- a/platform/thunderbird/manifest.json +++ b/platform/thunderbird/manifest.json @@ -36,6 +36,7 @@ }, { "matches": [ + "https://easylist.to/*", "https://filterlists.com/*", "https://github.com/*", "https://*.github.io/*" diff --git a/platform/webext/manifest.json b/platform/webext/manifest.json index 3b7a7a4b5..17a55f782 100644 --- a/platform/webext/manifest.json +++ b/platform/webext/manifest.json @@ -49,6 +49,7 @@ }, { "matches": [ + "https://easylist.to/*", "https://filterlists.com/*", "https://github.com/*", "https://*.github.io/*" diff --git a/src/js/scriptlets/subscriber.js b/src/js/scriptlets/subscriber.js index f6ef64c13..aeb96ce89 100644 --- a/src/js/scriptlets/subscriber.js +++ b/src/js/scriptlets/subscriber.js @@ -59,7 +59,7 @@ const onMaybeSubscriptionLinkClicked = function(ev) { try { // https://github.com/uBlockOrigin/uBlock-issues/issues/763#issuecomment-691696716 // Remove replacement patch if/when filterlists.com fixes encoded '&'. - subscribeURL.href = target.href.replace('&', '&'); + subscribeURL.href = target.href.replace('&title=', '&title='); if ( /^(abp|ubo):$/.test(subscribeURL.protocol) === false && subscribeURL.hostname !== 'subscribe.adblockplus.org'