mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:51:58 +01:00
Fix Grupo Abril (images/embeds)
This commit is contained in:
parent
44a41ca365
commit
3b0b54012b
4 changed files with 15 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 () {
|
||||
|
|
3
sites.js
3
sites.js
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue