mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-09 23:51:57 +01:00
Fix Newsweek.pl (css)
This commit is contained in:
parent
818fe15b36
commit
3931fb846d
3 changed files with 14 additions and 14 deletions
|
@ -6,6 +6,7 @@ Post-release
|
|||
Add Blick.ch (Ringier Gruppe)
|
||||
Add CNN (regwall)
|
||||
Fix Expresso.pt (json)
|
||||
Fix Newsweek.pl (css)
|
||||
Fix The Athletic (scroll)
|
||||
|
||||
* v3.6.0.0 (2024-03-17)
|
||||
|
|
|
@ -4813,18 +4813,17 @@ else if (matchDomain('newsweek.com')) {
|
|||
}
|
||||
|
||||
else if (matchDomain('newsweek.pl')) {
|
||||
let clear_ads = function () {
|
||||
window.setTimeout(function () {
|
||||
let ads = document.querySelectorAll('[class^="pwAds"], .hide-for-paying, div#contentPremiumPlaceholder > span, div.onet-ad');
|
||||
hideDOMElement(...ads);
|
||||
}, 2000);
|
||||
let premium = document.querySelector('div.contentPremium[style]');
|
||||
if (premium) {
|
||||
premium.removeAttribute('class');
|
||||
premium.removeAttribute('style');
|
||||
}
|
||||
func_post = function () {
|
||||
clear_ads();
|
||||
}
|
||||
let url = window.location.href;
|
||||
getArchive(url, 'div#contentPremiumPlaceholder', '', 'div#article-content-body');
|
||||
clear_ads();
|
||||
let placeholder = document.querySelector('div#contentPremiumPlaceholder[class]');
|
||||
if (placeholder)
|
||||
placeholder.removeAttribute('class');
|
||||
let ads = document.querySelectorAll('[class^="pwAds"], .hide-for-paying, div.onet-ad, div.bottomBar');
|
||||
console.log(ads);
|
||||
hideDOMElement(...ads);
|
||||
}
|
||||
|
||||
else if (matchDomain(['nola.com', 'theadvocate.com'])) {
|
||||
|
|
6
sites.js
6
sites.js
|
@ -1814,10 +1814,10 @@ var defaultSites = {
|
|||
domain: "newsweek.com",
|
||||
block_regex: /(js\.pelcro\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js)/
|
||||
},
|
||||
"Newsweek.pl (fetch from archive.is)": {
|
||||
"Newsweek.pl": {
|
||||
domain: "newsweek.pl",
|
||||
allow_cookies: 1,
|
||||
cs_dompurify: 1
|
||||
block_regex: /cdn\.cxense\.com\//
|
||||
},
|
||||
"NHST Media Group": {
|
||||
domain: "###_no_nhst_media",
|
||||
|
@ -2982,7 +2982,7 @@ var defaultSites = {
|
|||
domain: "piano.io",
|
||||
allow_cookies: 1,
|
||||
block_regex_general: /\.piano\.io\/xbuilder\/experience\/execute/,
|
||||
excluded_domains: ["piano.io", "asia.nikkei.com", "businessinsider.com.pl", "hbr.org", "japantimes.co.jp", "nacion.com", "onet.pl"]
|
||||
excluded_domains: ["piano.io", "asia.nikkei.com", "businessinsider.com.pl", "hbr.org", "japantimes.co.jp", "nacion.com", "newsweek.pl", "onet.pl"]
|
||||
},
|
||||
"Pico.tools": {
|
||||
domain: "pico.tools",
|
||||
|
|
Loading…
Reference in a new issue