Fix Adweek (free articles only)

This commit is contained in:
magnolia1234 2022-04-15 15:11:11 +02:00
parent 8b437ffb1e
commit 2d48881ef2
6 changed files with 6 additions and 8 deletions

View file

@ -81,7 +81,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

@ -651,7 +651,6 @@
"*://*.gannett-cdn.com/*",
"*://*.gitlab.com/magnolia1234/*",
"*://*.hearstnp.com/*",
"*://*.lightboxcdn.com/*",
"*://*.loader-cdn.azureedge.net/*",
"*://*.mcclatchy-wires.com/*",
"*://*.mcclatchyinteractive.com/*",
@ -667,5 +666,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",