mirror of https://github.com/gorhill/uBlock.git
Add easylist.to as a valid target for subscriber content script
This commit is contained in:
parent
9ab105b400
commit
fe9797cacc
|
@ -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/*"
|
||||||
|
|
|
@ -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/*"
|
||||||
|
|
|
@ -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/*"
|
||||||
|
|
|
@ -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/*"
|
||||||
|
|
|
@ -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/*"
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue