mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:27:48 +01:00
Fix-update WSJ (remove refresh)
Plus add general paywall-script Cxense
This commit is contained in:
parent
1e8970f948
commit
5411c611c8
4 changed files with 7 additions and 9 deletions
|
@ -212,7 +212,7 @@ var blockedRegexes = {
|
|||
'thenation.com': /.+\.tinypass\.com\/.+/,
|
||||
'valeursactuelles.com': /.+\.qiota\.com\/.+/,
|
||||
'washingtonpost.com': /.+\.washingtonpost\.com\/dr\/resources\/dist\/washpost\/pwapi-proxy\.min\.js/,
|
||||
'wsj.com': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/
|
||||
'wsj.com': /(cdn\.ampproject\.org\/v\d\/amp-access-.+\.js|cdn\.cxense\.com)/
|
||||
};
|
||||
|
||||
const au_comm_media_domains = ['bendigoadvertiser.com.au', 'bordermail.com.au', 'canberratimes.com.au', 'centralwesterndaily.com.au', 'dailyadvertiser.com.au', 'dailyliberal.com.au', 'examiner.com.au', 'illawarramercury.com.au', 'newcastleherald.com.au', 'northerndailyleader.com.au', 'portnews.com.au', 'standard.net.au', 'theadvocate.com.au', 'thecourier.com.au', 'westernadvocate.com.au'];
|
||||
|
@ -432,7 +432,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(
|
|||
},
|
||||
["blocking", "requestHeaders"]);
|
||||
|
||||
var block_js_default = ["*://cdn.tinypass.com/*", "*://*.piano.io/*", "*://*.poool.fr/*", "*://*.blueconic.net/*", "*://*.evolok.net/*", "*://js.matheranalytics.com/*", "*://*.onecount.net/*", "*://*.qiota.com/*", "*://*.tribdss.com/*"];
|
||||
var block_js_default = ["*://cdn.tinypass.com/*", "*://*.piano.io/*", "*://*.poool.fr/*", "*://*.blueconic.net/*", "*://*.cxense.com/*", "*://*.evolok.net/*", "*://js.matheranalytics.com/*", "*://*.onecount.net/*", "*://*.qiota.com/*", "*://*.tribdss.com/*"];
|
||||
var block_js_custom = [];
|
||||
var block_js_custom_ext = [];
|
||||
var block_js = block_js_default.concat(block_js_custom);
|
||||
|
|
|
@ -129,18 +129,14 @@ else if (matchDomain("wsj.com") && !matchDomain("cn.wsj.com")) {
|
|||
if (close_button)
|
||||
close_button.click();
|
||||
}
|
||||
let wsj_ads = document.querySelectorAll('div.wsj-ad');
|
||||
removeDOMElement(...wsj_ads);
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
let url = window.location.href;
|
||||
let snippet = document.querySelector('.snippet-promotion');
|
||||
let wsj_pro = document.querySelector('meta[name="page.site"][content="wsjpro"]');
|
||||
if (snippet || wsj_pro) {
|
||||
if (!window.location.hash) {
|
||||
if (url.includes('?')) {
|
||||
window.location.href = url.replace('?', '#refreshed?');
|
||||
} else
|
||||
window.location.href = url + '#refreshed';
|
||||
} else
|
||||
window.location.href = window.location.href.replace('wsj.com', 'wsj.com/amp').replace('#refreshed', '');
|
||||
window.location.href = window.location.href.replace('wsj.com', 'wsj.com/amp').replace('#refreshed', '');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -274,6 +274,7 @@
|
|||
"*://*.cedsdigital.it/*",
|
||||
"*://*.corriereobjects.it/*",
|
||||
"*://*.ctfassets.net/*",
|
||||
"*://*.cxense.com/*",
|
||||
"*://*.emol.cl/*",
|
||||
"*://*.epimg.net/*",
|
||||
"*://*.evolok.net/*",
|
||||
|
|
1
sites.js
1
sites.js
|
@ -194,6 +194,7 @@ var defaultSites =
|
|||
"World Politics Review": "worldpoliticsreview.com",
|
||||
"——— Block Paywall-scripts ———": "###",
|
||||
"BlueConic": "blueconic.net",
|
||||
"Cxense": "cxense.com",
|
||||
"Evolok": "evolok.net",
|
||||
"MatherAnalytics": "matheranalytics.com",
|
||||
"OneCount": "onecount.net",
|
||||
|
|
Loading…
Reference in a new issue