Fix Nikkei Asian Review (cookie)

Fix Bloomberg (css)
merge-requests/17/head
magnolia1234 6 months ago
parent c0cd545708
commit 6e31b5edfe

@ -1338,6 +1338,8 @@ function remove_cookies_fn(domainVar, exclusions = false) {
storeId = store.id;
}
storeId = storeId.toString();
if (domainVar === 'asia.nikkei.com')
domainVar = 'nikkei.com';
var cookie_get_options = {
domain: domainVar
};

@ -3,6 +3,8 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release
Fix Bloomberg (css)
Fix Nikkei Asian Review (cookie)
* v3.4.5.0 (2023-12-03)
Add 3 more Hearst newspapers

@ -3532,13 +3532,10 @@ else if (matchDomain('artnet.com')) {
}
else if (matchDomain('asia.nikkei.com')) {
let url = window.location.href;
let paywall = document.querySelector('div#paywall-offer');
if (paywall && dompurify_loaded) {
let paywall = document.querySelector('div#paywall-offer > div.tp-container-inner');
if (paywall) {
removeDOMElement(paywall);
csDoneOnce = true;
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0];
replaceDomElementExt(url_cache, true, false, 'div#article-body-preview');
refreshCurrentTab();
}
let popup = document.querySelector('#pianoj_ribbon');
removeDOMElement(popup);
@ -3609,10 +3606,13 @@ else if (matchDomain('billboard.com')) {
}
else if (matchDomain('bloomberg.com')) {
let paywall = document.querySelectorAll('div[id^="fortress-"]');
let paywall_sel = 'div[id^="fortress-"]';
let paywall = document.querySelectorAll(paywall_sel);
let leaderboard = document.querySelector('div[id^="leaderboard"], div[class^="leaderboard"], div.canopy-container');
let ads = document.querySelectorAll('div[data-ad-status], div.dvz-v0-ad, div[class^="FullWidthAd_"]');
let ads = document.querySelectorAll('div[data-ad-status], div[data-ad-type], div[class^="FullWidthAd_"], div.adWrapper');
hideDOMElement(...paywall, leaderboard, ...ads);
csDoneOnce = true;
waitDOMElement(paywall_sel, 'DIV', removeDOMElement, true);
waitDOMAttribute('body', 'BODY', 'data-paywall-overlay-status', node => node.removeAttribute('data-paywall-overlay-status'), true);
if (window.location.pathname.startsWith('/live/')) {
setInterval(function () {
@ -3624,7 +3624,7 @@ else if (matchDomain('bloomberg.com')) {
if (shimmering) {
header_nofix(shimmering.parentNode, 'BPC > disable Dark Reader or enable Javascript for site');
}
}, 3000);
}, 5000);
}
else if (matchDomain('bloombergadria.com')) {

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.4.5.0"
"version": "3.4.5.1"
}

@ -826,5 +826,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.4.5.0"
"version": "3.4.5.1"
}

@ -1717,11 +1717,9 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /subscription-static-global\.nhst\.tech\//
},
"Nikkei Asian Review": {
"Nikkei Asian Review (do not block Piano.io-script externally)": {
domain: "asia.nikkei.com",
allow_cookies: 1,
block_regex: /\.piano\.io\/api\/piano\.js/,
cs_dompurify: 1
remove_cookies_select_drop: ["xbc"]
},
"Nordwest Zeitung": {
domain: "nwzonline.de",
@ -2765,7 +2763,7 @@ var defaultSites = {
domain: "piano.io",
allow_cookies: 1,
block_regex_general: /\.piano\.io\/xbuilder\/experience\/execute/,
excluded_domains: ["piano.io", "hbr.org", "japantimes.co.jp", "kurier.at", "nacion.com", "onet.pl"]
excluded_domains: ["piano.io", "asia.nikkei.com", "hbr.org", "japantimes.co.jp", "kurier.at", "nacion.com", "onet.pl"]
},
"Pico.tools": {
domain: "pico.tools",

@ -30,20 +30,6 @@
"add_ext_link_type": "archive.is",
"upd_version": "3.4.3.3"
},
"Die Welt": {
"domain": "welt.de",
"allow_cookies": 1,
"add_ext_link": "div.contains_walled_content|article",
"add_ext_link_type": "archive.is",
"upd_version": "3.4.2.4"
},
"Freie Presse": {
"domain": "freiepresse.de",
"allow_cookies": 1,
"block_js_inline": "\\.freiepresse\\.de\\/.+-artikel",
"ld_google_webcache": "div.article-teaser|article",
"upd_version": "3.4.2.3"
},
"Gazeta do Povo": {
"domain": "gazetadopovo.com.br",
"allow_cookies": 1,
@ -63,12 +49,6 @@
"cs_code": "[{\"cond\":\"div#poool-widget-content\", \"rm_elem\":1}]",
"upd_version": "3.4.3.4"
},
"Investsmart.com.au": {
"domain": "investsmart.com.au",
"allow_cookies": 1,
"useragent": "googlebot",
"upd_version": "3.4.2.7"
},
"Jazziz.com": {
"allow_cookies": 1,
"domain": "jazziz.com",
@ -80,20 +60,6 @@
"allow_cookies": 1,
"upd_version": "3.4.4.3"
},
"Profil.at": {
"domain": "profil.at",
"allow_cookies": 1,
"block_regex": "\\.piano\\.io\\/",
"cs_code": "[{\"cond\":\"div.paywall\", \"rm_attrib\":\"class|style\"}]",
"upd_version": "3.4.2.8"
},
"South China Morning Post": {
"domain": "scmp.com",
"allow_cookies": 1,
"block_regex": "(\\.tinypass\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|subscriptions)-.+\\.js)",
"cs_code": "[{\"cond\":\"div.paywalled-content\", \"rm_attrib\":\"class\"}]",
"upd_version": "3.4.2.5"
},
"The Economist": {
"domain": "economist.com",
"allow_cookies": 1,

Loading…
Cancel
Save