Fix custom sites Googlebot-fix (after reload)
Plus fix-update Waz.de (replace innerHTML)master
parent
9b73a1d9ab
commit
4b5bea3266
|
@ -38,7 +38,7 @@ If you're familiar with Git(Hub)-clients you can also clone this repo and update
|
|||
#### Firefox
|
||||
Visit the [Firefox repository](https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean) of Bypass Paywall Clean.
|
||||
|
||||
**Notes**
|
||||
#### Notes
|
||||
* This extension works best alongside the adblocker [uBlock Origin](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en).
|
||||
* On Yandex Android use [uBlock Origin development build](https://chrome.google.com/webstore/detail/ublock-origin-dev-build/cgbcahbpdhpcegmbfconppldiemgcoii).
|
||||
* If you live in the EU, also consider installing the extension [I don't care about cookies](https://chrome.google.com/webstore/detail/i-dont-care-about-cookies/fihnjjcciajhdojfnbdddfaoknhalnja) 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).
|
||||
|
@ -371,8 +371,7 @@ Also you can enable Googlebot user-agent or disable Javascript for (sub)domain(s
|
|||
|
||||
### Troubleshooting
|
||||
* This extension works best alongside [uBlock Origin](https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm).
|
||||
* If a site doesn't work, try turning off uBlock and refreshing. Also try reinstalling the extension.
|
||||
* Make sure the (new) site is checked under Options (on macOS sometimes the sites are unselected).
|
||||
* Make sure the (new) site is checked under Options.
|
||||
* Make sure you're running the last version of Bypass Paywalls Clean.
|
||||
* If none of these work, you can submit an issue [here](https://bitbucket.org/magnolia1234/bypass-paywalls-chrome-clean/issues).
|
||||
|
||||
|
|
|
@ -301,9 +301,8 @@ ext_api.storage.sync.get({
|
|||
enabledSites = enabledSites.concat(au_news_corp_domains);
|
||||
for (let domain of au_news_corp_domains) {
|
||||
allow_cookies.push(domain);
|
||||
use_google_bot_default.push(domain);
|
||||
use_google_bot.push(domain);
|
||||
}
|
||||
use_google_bot = use_google_bot_default.slice();
|
||||
} else
|
||||
disabledSites = disabledSites.concat(au_news_corp_domains);
|
||||
if (enabledSites.includes('###_au_prov_news')) {
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
|
||||
Changelog Bypass Paywalls Clean - Chrome
|
||||
|
||||
Post-release
|
||||
Add Westdeutsche Allgemeine Zeitung
|
||||
Fix custom sites Googlebot-fix (after reload)
|
||||
|
||||
* v1.8.8.0 (2020-09-27)
|
||||
Add Die Zeit (Germany)
|
||||
Add Rolling Stone
|
||||
|
|
|
@ -1130,9 +1130,13 @@ else if (matchDomain("stocknews.com")) {
|
|||
|
||||
else if (matchDomain("waz.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 = deobfuscateFUNKE(obfuscated_elem.innerText);
|
||||
obfuscated_elem.innerHTML = '';
|
||||
obfuscated_elem.appendChild(par);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1211,6 +1215,6 @@ function parseHtmlEntities(encodedString) {
|
|||
}
|
||||
|
||||
function deobfuscateFUNKE(str) {
|
||||
return str.replace(/[0-9A-ZÅÝÀµ#@$²±:`^'´\\,{[/.÷;=?)*\-]/gi, c =>
|
||||
'012345678@ABCDEFGHIJKLMNOPQRSTUVWXYÄÜẞZzabcdefghijklmnopqrstuvwxyäüößz,+.-:<>/()!"=[;9]&_?%#\''['123456789ABCDEFGHIJKLMNOPQRSTUVWXYZÅÝÀ[abcdefghijklmnopqrstuvwxyzåý÷à{-,/.;=?0)*²#µ\\´:^\'`@±$'.indexOf(c)])
|
||||
return str.replace(/[0-9A-ZÅÝÀµ×#@$²±:`^'´\\,{[/.÷;=?)*\-]/gi, c =>
|
||||
'012345678@ABCDEFGHIJKLMNOPQRSTUVWXYÄöÜẞZzabcdefghijklmnopqrstuvwxyäüößz,+.-:<>/()!"=[;9]&_?%#\''['123456789ABCDEFGHIJKLMNOPQRSTUVWXYZÅ×ÝÀ[abcdefghijklmnopqrstuvwxyzåý÷à{-,/.;=?0)*²#µ\\´:^\'`@±$'.indexOf(c)])
|
||||
}
|
||||
|
|
|
@ -300,5 +300,5 @@
|
|||
"webRequest",
|
||||
"webRequestBlocking"
|
||||
],
|
||||
"version": "1.8.8.1"
|
||||
"version": "1.8.8.2"
|
||||
}
|
||||
|
|
|
@ -21,5 +21,5 @@
|
|||
"page": "options.html"
|
||||
},
|
||||
"permissions": [ "cookies", "<all_urls>", "storage", "webRequest", "webRequestBlocking"],
|
||||
"version": "1.8.8.1"
|
||||
"version": "1.8.8.2"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue