mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:37:47 +01:00
Fix-update Funke Medien (Germany)
This commit is contained in:
parent
e52fa22f18
commit
9ae1188a72
2 changed files with 2 additions and 14 deletions
|
@ -10,6 +10,7 @@ Add Schweriner Volkszeitung (Germany)
|
|||
Add Sud Ouest (France)
|
||||
Fix-update Discover Magazine
|
||||
Fix-update Faz.net (Zeitung subdomain)
|
||||
Fix-update Funke Medien (Germany)
|
||||
Update set user-agent/referer (limit)
|
||||
|
||||
* v2.0.3.0 (2021-01-10)
|
||||
|
|
|
@ -1844,15 +1844,7 @@ else if ((domain = matchDomain(fr_groupe_ebra_domains)) && window.location.href.
|
|||
}
|
||||
|
||||
else if (matchDomain(de_funke_media_domains)) {
|
||||
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 = '';
|
||||
obfuscated_elem.appendChild(par);
|
||||
}
|
||||
sessionStorage.setItem('deobfuscate', 'true');
|
||||
}
|
||||
|
||||
else if (matchDomain('krautreporter.de')) {
|
||||
|
@ -2090,8 +2082,3 @@ 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)])
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue