Fix-update Sud Ouest (decode text)

merge-requests/1/head
magnolia1234 3 years ago
parent d312014941
commit 736f8f14cf

@ -8,6 +8,7 @@ Rheinische Post Mediengruppe (only plus if amp)
Fix-update Madsack Mediengruppe (amp)
Fix-update Medium/Towards Data Science (login) & add custom domains in options
Fix-update Stratfor (style; not menu)
Fix-update Sud Ouest (decode text)
* v2.0.6.0 (2021-01-31)
Add Griffith Review (Australia)

@ -1896,9 +1896,13 @@ else if (matchDomain('sudouest.fr')) {
}
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');
if (paywall)
paywall.classList.remove('PianoContent');
@ -2118,7 +2122,7 @@ function replaceDomElementExt(url, proxy, base64, selector, text_fail = '') {
if (response.ok) {
response.text().then(html => {
if (base64) {
html = atob(html);
html = decode_utf8(atob(html));
selector = 'body';
}
let parser = new DOMParser();
@ -2212,3 +2216,11 @@ function parseHtmlEntities(encodedString) {
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/*",
"*://*.wsj.net/*"
],
"version": "2.0.6.5"
"version": "2.0.6.6"
}
Loading…
Cancel
Save