Fix Adweek (free articles only)

This commit is contained in:
magnolia1234 2022-04-15 15:11:03 +02:00
parent a1e44e8ceb
commit 195441effc
7 changed files with 7 additions and 9 deletions

View File

@ -100,7 +100,7 @@ _* free/cached articles only._
[World Politics Review](https://www.worldpoliticsreview.com)
##### Business
[Adweek](https://www.adweek.com) -
[Adweek](https://www.adweek.com)* -
[American Affairs](https://americanaffairsjournal.org) -
[American Banker](https://www.americanbanker.com) -
[Barron's](https://www.barrons.com) -

View File

@ -16,7 +16,6 @@ var blocked_referer = false;
// defaultSites are loaded from sites.js at installation extension
var restrictions = {
'adweek.com': /^((?!\.adweek\.com\/(.+\/)?(amp|agencyspy|tvnewser|tvspy)\/).)*$/,
'bloomberg.com': /^((?!\.bloomberg\.com\/news\/terminal\/).)*$/,
'economictimes.com': /\.economictimes\.com($|\/($|(__assets|prime)(\/.+)?|.+\.cms))/,
'elespanol.com': /^((?!\/cronicaglobal\.elespanol\.com\/).)*$/,

View File

@ -5,6 +5,7 @@ Post-release
Add Aftonbladet.se
Add Investors' Chronicle (UK)
Add Nzz.ch Regional (opt-in to custom sites)
Fix Adweek (free articles only)
Fix Quartz (newsletter)
Update block general paywall script (Ensighten)
Update block general paywall script (Evolok WordPress)

View File

@ -790,7 +790,7 @@ else
} else if (window.location.hostname.match(/\.(dk|fi|no|se)$/)) {//denmark/finland/norway/sweden
if (matchDomain(fi_alma_talent_domains)) {
let ads = document.querySelectorAll('div[class^="p2m385-"], div#anop-container, .ad');
let ads = document.querySelectorAll('div[class^="p2m385-"], div#anop-container, .ad, div.iZivCJ');
for (let ad of ads)
ad.setAttribute('style', 'display:none;');
if (matchDomain('iltalehti.fi')) {

View File

@ -42,5 +42,5 @@
"webRequestBlocking",
"<all_urls>"
],
"version": "2.6.4.4"
"version": "2.6.4.5"
}

View File

@ -639,7 +639,6 @@
"*://*.gannett-cdn.com/*",
"*://*.gitlab.com/magnolia1234/*",
"*://*.hearstnp.com/*",
"*://*.lightboxcdn.com/*",
"*://*.loader-cdn.azureedge.net/*",
"*://*.mcclatchy-wires.com/*",
"*://*.mcclatchyinteractive.com/*",
@ -655,5 +654,5 @@
"*://*.wsj.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.6.4.4"
"version": "2.6.4.5"
}

View File

@ -25,9 +25,8 @@ var defaultSites = {
"syracuse.com"
]
},
"Adweek": {
domain: "adweek.com",
block_regex: /\.lightboxcdn\.com\//
"Adweek (free articles only)": {
domain: "adweek.com"
},
"Aftonbladet": {
domain: "aftonbladet.se",