mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:57:48 +01:00
Fix-update Funke Medien (TinyPass)
This commit is contained in:
parent
a9c4356b37
commit
53ef43f6c6
3 changed files with 7 additions and 19 deletions
|
@ -12,9 +12,10 @@ const restrictions = {
|
|||
'barrons.com': /.+barrons\.com\/(amp\/)?article(s)?\/.+/,
|
||||
'bloombergquint.com': /^((?!\.bloombergquint\.com\/bq-blue-exclusive\/).)*$/,
|
||||
'elcomercio.pe': /.+\/elcomercio.pe\/.+((\w)+(\-)+){3,}.+/,
|
||||
'faz.net': /^((?!\/zeitung\.faz\.net\/).)*$/,
|
||||
'gestion.pe': /.+\/gestion.pe\/.+((\w)+(\-)+){3,}.+/,
|
||||
'nknews.org': /^((?!\.nknews\.org\/pro\/).)*$/,
|
||||
'globo.com': /^((?!\/valor.globo\.com\/).)*$/,
|
||||
'globo.com': /^((?!\/valor\.globo\.com\/).)*$/,
|
||||
'quora.com': /^((?!quora\.com\/search\?q=).)*$/,
|
||||
'seekingalpha.com': /.+seekingalpha\.com\/article\/.+/,
|
||||
'wsj.com': /^((?!\/cn\.wsj\.com\/).)*$/
|
||||
|
@ -221,6 +222,7 @@ var blockedRegexes = {
|
|||
'newsweek.com': /.+\.googletagmanager\.com\/gtm\.js/,
|
||||
'newyorker.com': /.+\.newyorker\.com\/verso\/static\/presenter-articles.+\.js/,
|
||||
'nknews.org': /.+\.nknews\.org\/wp-content\/plugins\/leaky-paywall-ajax\/js\/leaky-paywall-ajax\.js/,
|
||||
'nrz.de': /(cdn\.cxense\.com|.+\.tinypass\.com\/.+)/,
|
||||
'nytimes.com': /(.+meter-svc\.nytimes\.com\/meter\.js.+|.+mwcm\.nyt\.com\/.+\.js)/,
|
||||
'quotidiano.net': /.+\.tinypass\.com\/.+/,
|
||||
'repubblica.it': /scripts\.repubblica\.it\/pw\/pw\.js.+/,
|
||||
|
@ -246,7 +248,9 @@ var blockedRegexes = {
|
|||
'variety.com': /cdn\.cxense\.com/,
|
||||
'washingtonpost.com': /.+\.washingtonpost\.com\/.+\/pwapi-proxy\.min\.js/,
|
||||
'watoday.com.au': /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/,
|
||||
'waz.de': /(.+\.tinypass\.com\/.+|cdn\.cxense\.com)/,
|
||||
'waz.de': /(cdn\.cxense\.com|.+\.tinypass\.com\/.+)/,
|
||||
'wp.de': /(cdn\.cxense\.com|.+\.tinypass\.com\/.+)/,
|
||||
'wr.de': /(cdn\.cxense\.com|.+\.tinypass\.com\/.+)/,
|
||||
'wsj.com': /(cdn\.ampproject\.org\/v\d\/amp-access-.+\.js|cdn\.cxense\.com)/
|
||||
};
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
Post-release
|
||||
Add Il Resto del Carlino (Italy)
|
||||
Add The New York Review of Books
|
||||
Fix-update Funke Medien (TinyPass)
|
||||
|
||||
* v1.9.1.1 (2020-10-19)
|
||||
Hotfix remove cookies (www)
|
||||
|
|
|
@ -1310,18 +1310,6 @@ else if (matchDomain("stocknews.com")) {
|
|||
blurmes[i].setAttribute('id', 'blurmenot' + i);
|
||||
}
|
||||
|
||||
else if (matchDomain(["nrz.de", "waz.de", "wp.de", "wr.de"])) {
|
||||
let obfuscated_elems = document.querySelectorAll('.obfuscated');
|
||||
let parser = new DOMParser();
|
||||
for (let obfuscated_elem of obfuscated_elems) {
|
||||
let html = parser.parseFromString('<div>' + deobfuscateFUNKE(obfuscated_elem.innerText) + '</div>', 'text/html');
|
||||
let par = html.querySelector('div');
|
||||
obfuscated_elem.classList.remove('obfuscated');
|
||||
obfuscated_elem.innerHTML = '';
|
||||
obfuscated_elem.appendChild(par);
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain(["haz.de", "lvz.de"])) {
|
||||
let paidcontent_intro = document.querySelector('div.pdb-article-body-paidcontentintro');
|
||||
if (paidcontent_intro) {
|
||||
|
@ -1473,8 +1461,3 @@ function parseHtmlEntities(encodedString) {
|
|||
return String.fromCharCode(num);
|
||||
});
|
||||
}
|
||||
|
||||
function deobfuscateFUNKE(str) {
|
||||
return str.replace(/[0-9A-ZÅÝÀµ×#@$²±:`^'´\\,{[/.÷;=?)*\-]/gi, c =>
|
||||
'012345678@ABCDEFGHIJKLMNOPQRSTUVWXYÄöÜẞZzabcdefghijklmnopqrstuvwxyäüößz,+.-:<>/()!"=[;9]&_?%#\''['123456789ABCDEFGHIJKLMNOPQRSTUVWXYZÅ×ÝÀ[abcdefghijklmnopqrstuvwxyzåý÷à{-,/.;=?0)*²#µ\\´:^\'`@±$'.indexOf(c)])
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue