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) -
[Frankfurter Allgemeine Zeitung](https://www.faz.net) -
[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
[Corriere Della Sera](https://www.corriere.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.
* Make sure the (new) site is checked under Options.
* 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

View file

@ -79,6 +79,7 @@ var allow_cookies = [
'variety.com',
'volkskrant.nl',
'washingtonpost.com',
'waz.de',
'worldpoliticsreview.com',
'zeit.de',
]
@ -231,6 +232,7 @@ var blockedRegexes = {
'variety.com': /cdn\.cxense\.com/,
'washingtonpost.com': /.+\.washingtonpost\.com\/dr\/resources\/dist\/washpost\/pwapi-proxy\.min\.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)/
};

View file

@ -3,7 +3,7 @@ var ext_api = (typeof browser === 'object') ? browser : chrome;
var domain;
// 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)){
window.localStorage.clear();
}
@ -1128,6 +1128,14 @@ else if (matchDomain("stocknews.com")) {
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
function removeDOMElement(...elements) {
for (let element of elements) {
@ -1201,3 +1209,8 @@ 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)])
}

View file

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

View file

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

View file

@ -15,7 +15,7 @@
</head>
<body>
<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%;">
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>

View file

@ -7,9 +7,9 @@
<div style="width:100%"><strong>Bypass Paywalls Clean <span id="version"></span></strong>
<br><a href="options.html" style="color:black">Options</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>
<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>
<script src="version.js"></script>
<script src="popup.js"></script>

View file

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