Add easylist.to as a valid target for subscriber content script

This commit is contained in:
Raymond Hill 2020-09-14 08:43:51 -04:00
parent 9ab105b400
commit fe9797cacc
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
6 changed files with 6 additions and 1 deletions

View File

@ -45,6 +45,7 @@
}, },
{ {
"matches": [ "matches": [
"https://easylist.to/*",
"https://filterlists.com/*", "https://filterlists.com/*",
"https://github.com/*", "https://github.com/*",
"https://*.github.io/*" "https://*.github.io/*"

View File

@ -55,6 +55,7 @@
}, },
{ {
"matches": [ "matches": [
"https://easylist.to/*",
"https://filterlists.com/*", "https://filterlists.com/*",
"https://github.com/*", "https://github.com/*",
"https://*.github.io/*" "https://*.github.io/*"

View File

@ -45,6 +45,7 @@
}, },
{ {
"matches": [ "matches": [
"https://easylist.to/*",
"https://filterlists.com/*", "https://filterlists.com/*",
"https://github.com/*", "https://github.com/*",
"https://*.github.io/*" "https://*.github.io/*"

View File

@ -36,6 +36,7 @@
}, },
{ {
"matches": [ "matches": [
"https://easylist.to/*",
"https://filterlists.com/*", "https://filterlists.com/*",
"https://github.com/*", "https://github.com/*",
"https://*.github.io/*" "https://*.github.io/*"

View File

@ -49,6 +49,7 @@
}, },
{ {
"matches": [ "matches": [
"https://easylist.to/*",
"https://filterlists.com/*", "https://filterlists.com/*",
"https://github.com/*", "https://github.com/*",
"https://*.github.io/*" "https://*.github.io/*"

View File

@ -59,7 +59,7 @@ const onMaybeSubscriptionLinkClicked = function(ev) {
try { try {
// https://github.com/uBlockOrigin/uBlock-issues/issues/763#issuecomment-691696716 // https://github.com/uBlockOrigin/uBlock-issues/issues/763#issuecomment-691696716
// Remove replacement patch if/when filterlists.com fixes encoded '&'. // Remove replacement patch if/when filterlists.com fixes encoded '&'.
subscribeURL.href = target.href.replace('&', '&'); subscribeURL.href = target.href.replace('&title=', '&title=');
if ( if (
/^(abp|ubo):$/.test(subscribeURL.protocol) === false && /^(abp|ubo):$/.test(subscribeURL.protocol) === false &&
subscribeURL.hostname !== 'subscribe.adblockplus.org' subscribeURL.hostname !== 'subscribe.adblockplus.org'