mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:17:47 +01:00
Fix-update Sud Ouest (decode text)
This commit is contained in:
parent
d312014941
commit
736f8f14cf
3 changed files with 16 additions and 3 deletions
|
@ -8,6 +8,7 @@ Rheinische Post Mediengruppe (only plus if amp)
|
||||||
Fix-update Madsack Mediengruppe (amp)
|
Fix-update Madsack Mediengruppe (amp)
|
||||||
Fix-update Medium/Towards Data Science (login) & add custom domains in options
|
Fix-update Medium/Towards Data Science (login) & add custom domains in options
|
||||||
Fix-update Stratfor (style; not menu)
|
Fix-update Stratfor (style; not menu)
|
||||||
|
Fix-update Sud Ouest (decode text)
|
||||||
|
|
||||||
* v2.0.6.0 (2021-01-31)
|
* v2.0.6.0 (2021-01-31)
|
||||||
Add Griffith Review (Australia)
|
Add Griffith Review (Australia)
|
||||||
|
|
|
@ -1896,9 +1896,13 @@ else if (matchDomain('sudouest.fr')) {
|
||||||
}
|
}
|
||||||
removeDOMElement(paywall);
|
removeDOMElement(paywall);
|
||||||
}
|
}
|
||||||
|
window.setTimeout(function () {
|
||||||
|
let footer_premium = document.querySelector('.footer-premium');
|
||||||
|
removeDOMElement(footer_premium);
|
||||||
|
}, 500); // Delay (in milliseconds)
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('ruhrnachrichten.de')) {
|
else if (matchDomain(['ruhrnachrichten.de', 'hellwegeranzeiger.de'])) {
|
||||||
let paywall = document.querySelector('.PianoContent');
|
let paywall = document.querySelector('.PianoContent');
|
||||||
if (paywall)
|
if (paywall)
|
||||||
paywall.classList.remove('PianoContent');
|
paywall.classList.remove('PianoContent');
|
||||||
|
@ -2118,7 +2122,7 @@ function replaceDomElementExt(url, proxy, base64, selector, text_fail = '') {
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
response.text().then(html => {
|
response.text().then(html => {
|
||||||
if (base64) {
|
if (base64) {
|
||||||
html = atob(html);
|
html = decode_utf8(atob(html));
|
||||||
selector = 'body';
|
selector = 'body';
|
||||||
}
|
}
|
||||||
let parser = new DOMParser();
|
let parser = new DOMParser();
|
||||||
|
@ -2212,3 +2216,11 @@ function parseHtmlEntities(encodedString) {
|
||||||
return String.fromCharCode(num);
|
return String.fromCharCode(num);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function encode_utf8(str) {
|
||||||
|
return unescape(encodeURIComponent(str));
|
||||||
|
}
|
||||||
|
|
||||||
|
function decode_utf8(str) {
|
||||||
|
return decodeURIComponent(escape(str));
|
||||||
|
}
|
||||||
|
|
|
@ -456,5 +456,5 @@
|
||||||
"*://*.userzoom.com/*",
|
"*://*.userzoom.com/*",
|
||||||
"*://*.wsj.net/*"
|
"*://*.wsj.net/*"
|
||||||
],
|
],
|
||||||
"version": "2.0.6.5"
|
"version": "2.0.6.6"
|
||||||
}
|
}
|
Loading…
Reference in a new issue