Fix Grupo Abril (images/embeds)

This commit is contained in:
magnolia1234 2024-01-21 10:25:19 +01:00
parent 44a41ca365
commit 3b0b54012b
4 changed files with 15 additions and 4 deletions

View file

@ -946,7 +946,7 @@ if (typeof browser !== 'object') {
}
}
var set_var_sites = ['journaldemontreal.com', 'journaldequebec.com', 'nzherald.co.nz', 'theglobeandmail.com'].concat(de_madsack_domains);
var set_var_sites = ['abril.com.br', 'journaldemontreal.com', 'journaldequebec.com', 'nzherald.co.nz', 'theglobeandmail.com'].concat(de_madsack_domains);
function runOnTab_once_var(tab) {
let tabId = tab.id;
let url = tab.url;

View file

@ -9,6 +9,7 @@ Add Mediahuis Belgie (fetch from archive.is)
Add Mediahuis Nederland Regional (fetch from archive.is)
Add Wiwo.de (fetch from archive.is)
Remove Franc-Tireur.fr (fix obsolete)
Fix Grupo Abril (images/embeds)
Fix Hearst magazines (js)
Fix Independent.co.uk (premium images)
Fix The (New Orleans) Advocate (gambit)

View file

@ -6,7 +6,7 @@ var de_madsack_domains = ['haz.de', 'kn-online.de', 'ln-online.de', 'lvz.de', 'm
if (hostname.match(/\.de$/)) {
if (matchDomain(de_madsack_domains) || document.querySelector('link[href*=".rndtech.de/"]')) {
if (matchDomain(de_madsack_domains) || document.querySelector('head > link[href*=".rndtech.de/"]')) {
function madsack_main() {
for (let n = 0; n < 10; n++) {
window.setTimeout(function () {
@ -21,6 +21,17 @@ if (matchDomain(de_madsack_domains) || document.querySelector('link[href*=".rndt
}
else if (matchDomain('abril.com.br')) {
function abril_main() {
for (let n = 0; n < 10; n++) {
window.setTimeout(function () {
window.wp_paywall_vars = '';
}, n * 50);
}
}
insert_script(abril_main);
}
else if (matchDomain(['journaldemontreal.com', 'journaldequebec.com'])) {
for (let n = 0; n < 10; n++) {
window.setTimeout(function () {

View file

@ -929,8 +929,7 @@ var defaultSites = {
},
"Grupo Abril": {
domain: "abril.com.br",
allow_cookies: 1,
block_js_inline: /\.abril\.com\.br\/.+\/(\w+\-+){3,}/
allow_cookies: 1
},
"Grupo Clarín": {
domain: "###_ar_grupo_clarin",