Add Westdeutsche Allgemeine Zeitung

This commit is contained in:
magnolia1234 2020-09-28 20:43:29 +02:00
parent 7ca9d2c6ad
commit d4dd1024c7
8 changed files with 26 additions and 8 deletions

View File

@ -218,7 +218,8 @@ So don't update to Firefox 79 or use F-droid's [Fennec-release](https://f-droid.
[Die Zeit](https://www.zeit.de) - [Die Zeit](https://www.zeit.de) -
[Frankfurter Allgemeine Zeitung](https://www.faz.net) - [Frankfurter Allgemeine Zeitung](https://www.faz.net) -
[Handelsblatt](https://www.handelsblatt.com) - [Handelsblatt](https://www.handelsblatt.com) -
[Süddeutsche Zeitung](https://www.sueddeutsche.de) [Süddeutsche Zeitung](https://www.sueddeutsche.de) -
[Westdeutsche Allgemeine Zeitung](https://www.waz.de)
##### Italy ##### Italy
[Corriere Della Sera](https://www.corriere.it) - [Corriere Della Sera](https://www.corriere.it) -
[Domani](https://editorialedomani.it) - [Domani](https://editorialedomani.it) -
@ -344,7 +345,7 @@ Also you can enable Googlebot user-agent or disable Javascript for (sub)domain(s
* If a site doesn't work try turning off uBlock and refreshing. * If a site doesn't work try turning off uBlock and refreshing.
* Make sure the (new) site is checked under Options. * Make sure the (new) site is checked under Options.
* You will be logged out for most of the sites you have checked. * You will be logged out for most of the sites you have checked.
* If you live in the EU, also consider installing the extension [I don't care about cookies](https://addons.mozilla.org/en-US/firefox/addon/i-dont-care-about-cookies) in order to remove cookie warnings. * If you live in the EU, also consider installing the extension [I don't care about cookies](https://addons.mozilla.org/en-US/firefox/addon/i-dont-care-about-cookies) in order to remove cookie warnings (or use filter Easylist Cookies/[I don't care about cookies custom filter](https://www.i-dont-care-about-cookies.eu/abp) in uBlock Origin).
### Changelog-releases ### Changelog-releases

View File

@ -79,6 +79,7 @@ var allow_cookies = [
'variety.com', 'variety.com',
'volkskrant.nl', 'volkskrant.nl',
'washingtonpost.com', 'washingtonpost.com',
'waz.de',
'worldpoliticsreview.com', 'worldpoliticsreview.com',
'zeit.de', 'zeit.de',
] ]
@ -231,6 +232,7 @@ var blockedRegexes = {
'variety.com': /cdn\.cxense\.com/, 'variety.com': /cdn\.cxense\.com/,
'washingtonpost.com': /.+\.washingtonpost\.com\/dr\/resources\/dist\/washpost\/pwapi-proxy\.min\.js/, 'washingtonpost.com': /.+\.washingtonpost\.com\/dr\/resources\/dist\/washpost\/pwapi-proxy\.min\.js/,
'watoday.com.au': /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/, 'watoday.com.au': /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/,
'waz.de': /(.+\.tinypass\.com\/.+|cdn\.cxense\.com)/,
'wsj.com': /(cdn\.ampproject\.org\/v\d\/amp-access-.+\.js|cdn\.cxense\.com)/ 'wsj.com': /(cdn\.ampproject\.org\/v\d\/amp-access-.+\.js|cdn\.cxense\.com)/
}; };

View File

@ -3,7 +3,7 @@ var ext_api = (typeof browser === 'object') ? browser : chrome;
var domain; var domain;
// clean local storage of sites (with an exemption for hold-list) // clean local storage of sites (with an exemption for hold-list)
var arr_localstorage_hold = ['nknews.org', 'seekingalpha.com', 'sfchronicle.com']; var arr_localstorage_hold = ['elmundo.es', 'nknews.org', 'seekingalpha.com', 'sfchronicle.com', 'waz.de'];
if (!matchDomain(arr_localstorage_hold)){ if (!matchDomain(arr_localstorage_hold)){
window.localStorage.clear(); window.localStorage.clear();
} }
@ -1128,6 +1128,14 @@ else if (matchDomain("stocknews.com")) {
blurmes[i].setAttribute('id', 'blurmenot' + i); blurmes[i].setAttribute('id', 'blurmenot' + i);
} }
else if (matchDomain("waz.de")) {
let obfuscated_elems = document.querySelectorAll('.obfuscated');
for (let obfuscated_elem of obfuscated_elems) {
obfuscated_elem.classList.remove('obfuscated');
obfuscated_elem.innerHTML = deobfuscateFUNKE(obfuscated_elem.innerText);
}
}
// General Functions // General Functions
function removeDOMElement(...elements) { function removeDOMElement(...elements) {
for (let element of elements) { for (let element of elements) {
@ -1201,3 +1209,8 @@ function parseHtmlEntities(encodedString) {
return String.fromCharCode(num); 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)])
}

View File

@ -263,6 +263,7 @@
"*://*.warwickdailynews.com.au/*", "*://*.warwickdailynews.com.au/*",
"*://*.washingtonpost.com/*", "*://*.washingtonpost.com/*",
"*://*.watoday.com.au/*", "*://*.watoday.com.au/*",
"*://*.waz.de/*",
"*://*.weeklytimesnow.com.au/*", "*://*.weeklytimesnow.com.au/*",
"*://*.westernadvocate.com.au/*", "*://*.westernadvocate.com.au/*",
"*://*.wired.com/*", "*://*.wired.com/*",
@ -312,5 +313,5 @@
"webRequest", "webRequest",
"webRequestBlocking" "webRequestBlocking"
], ],
"version": "1.8.8.0" "version": "1.8.8.1"
} }

View File

@ -40,5 +40,5 @@
"webRequest", "webRequest",
"webRequestBlocking" "webRequestBlocking"
], ],
"version": "1.8.8.0" "version": "1.8.8.1"
} }

View File

@ -15,7 +15,7 @@
</head> </head>
<body> <body>
<h1>Options | <small><span id="version"></span><span id="version_new"></span></small></h1> <h1>Options | <small><span id="version"></span><span id="version_new"></span></small></h1>
<br><a href="https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/src/master/changelog.txt" style="color:black">Changelog</a> <br><a href="https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/src/master/changelog.txt" style="color:black" target="_blank">Changelog</a>
<div style="width:90%;"> <div style="width:90%;">
Selected sites will have their cookies cleared and referer set to Google. Selected sites will have their cookies cleared and referer set to Google.
You should uncheck sites you have an account with or else you will be logged out at every visit.</br> You should uncheck sites you have an account with or else you will be logged out at every visit.</br>

View File

@ -7,9 +7,9 @@
<div style="width:100%"><strong>Bypass Paywalls Clean <span id="version"></span></strong> <div style="width:100%"><strong>Bypass Paywalls Clean <span id="version"></span></strong>
<br><a href="options.html" style="color:black">Options</a> | <br><a href="options.html" style="color:black">Options</a> |
<a href="options_custom.html" style="color:black">Custom</a> | <a href="options_custom.html" style="color:black">Custom</a> |
<a href="https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/src/master/README.md" style="color:black" target=”_blank”>BitBucket</a> | <a href="https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/src/master/README.md" style="color:black" target="_blank">BitBucket</a> |
<button id="site_switch">on/off</button> <button id="site_switch">on/off</button>
<br><a href="https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/src/master/changelog.txt" style="color:black">Changelog</a> <br><a href="https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/src/master/changelog.txt" style="color:black" target="_blank">Changelog</a>
<span id="version_new"></span></div> <span id="version_new"></span></div>
<script src="version.js"></script> <script src="version.js"></script>
<script src="popup.js"></script> <script src="popup.js"></script>

View File

@ -196,6 +196,7 @@ var defaultSites =
"Variety": "variety.com", "Variety": "variety.com",
"Volkskrant": "volkskrant.nl", "Volkskrant": "volkskrant.nl",
"WAtoday": "watoday.com.au", "WAtoday": "watoday.com.au",
"Westdeutsche Allgemeine Zeitung": "waz.de",
"Winston-Salem Journal": "journalnow.com", "Winston-Salem Journal": "journalnow.com",
"Wired": "wired.com", "Wired": "wired.com",
"World Politics Review": "worldpoliticsreview.com", "World Politics Review": "worldpoliticsreview.com",