Fix The Business of Fashion

Plus fix Live Law (permission)
This commit is contained in:
magnolia1234 2021-12-01 19:06:40 +01:00
parent 9b3247ba8d
commit 364a9d7c8a
5 changed files with 20 additions and 23 deletions

View file

@ -2,7 +2,9 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix The Business of Fashion
Fix El Mundo & Groupe EBRA (amp-iframe)
Fix Live Law (permission)
Fix The New Yorker (amp)
Fix TheTimes.co.uk (only link to archive.today)
Remove Saechsische Zeitung (obsolete)

View file

@ -26,7 +26,7 @@ var usa_mng_domains = ['denverpost.com', 'eastbaytimes.com', 'mercurynews.com'
var usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.com', 'dailypress.com', 'mcall.com', 'nydailynews.com', 'orlandosentinel.com', 'pilotonline.com', 'sun-sentinel.com'];
// clean local storage of sites (with an exemption for hold-list)
var arr_localstorage_hold = ['augsburger-allgemeine.de', 'charliehebdo.fr', 'cmjornal.pt', 'houstonchronicle.com', 'inc42.com', 'kurier.at', 'nknews.org', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'thetimes.co.uk'].concat(de_funke_media_domains, es_grupo_vocento_domains, es_unidad_domains, no_nhst_media_domains);
var arr_localstorage_hold = ['augsburger-allgemeine.de', 'businessoffashion.com', 'charliehebdo.fr', 'cmjornal.pt', 'houstonchronicle.com', 'inc42.com', 'kurier.at', 'nknews.org', 'seekingalpha.com', 'sfchronicle.com', 'thehindu.com', 'thetimes.co.uk'].concat(de_funke_media_domains, es_grupo_vocento_domains, es_unidad_domains, no_nhst_media_domains);
if (!matchDomain(arr_localstorage_hold)) {
window.localStorage.clear();
}
@ -203,12 +203,12 @@ else {
if (domain = matchDomain(au_nc_sites)) {
let header_ads = document.querySelector('.header_ads-container');
removeDOMElement(header_ads);
let amp_ads_sel = 'amp-ad, amp-embed, [id^="ad-mrec-"], .story-ad-container';
if (window.location.hostname.startsWith('amp.')) {
amp_unhide_access_hide('="access AND subscriber"', '', amp_ads_sel, true);
} else if (window.location.href.includes('?amp')) {
amp_unhide_access_hide('="subscriber AND status=\'logged-in\'"', '', amp_ads_sel, true);
}
let amp_ads_sel = 'amp-ad, amp-embed, [id^="ad-mrec-"], .story-ad-container';
if (window.location.hostname.startsWith('amp.')) {
amp_unhide_access_hide('="access AND subscriber"', '', amp_ads_sel, true);
} else if (window.location.href.includes('?amp')) {
amp_unhide_access_hide('="subscriber AND status=\'logged-in\'"', '', amp_ads_sel, true);
}
} else {
// Australian Seven West Media
let swm_script = document.querySelector('script[src^="https://s.thewest.com.au"]');
@ -1746,17 +1746,6 @@ else if (matchDomain('business-standard.com')) {
}
}
else if (matchDomain('businessoffashion.com')) {
let paywall = document.querySelector('div.paywall');
if (paywall) {
let article_locked = document.querySelector('div.article-locked');
if (article_locked)
article_locked.removeAttribute('class');
let article_locked_overlay = document.querySelector('div.article-locked-overlay');
removeDOMElement(paywall, article_locked_overlay);
}
}
else if (matchDomain('caixinglobal.com')) {
window.setTimeout(function () {
let pay_tips = document.querySelectorAll('.cons-pay-tip');

View file

@ -308,7 +308,7 @@
"*://*.liberation-champagne.fr/*",
"*://*.limesonline.com/*",
"*://*.lindependant.fr/*",
"*://*.livelaw.com/*",
"*://*.livelaw.in/*",
"*://*.livemint.com/*",
"*://*.ln-online.de/*",
"*://*.lne.es/*",
@ -570,5 +570,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.4.5.3"
}
"version": "2.4.5.4"
}

View file

@ -1331,7 +1331,8 @@ var defaultSites = {
},
"The Business of Fashion": {
domain: "businessoffashion.com",
allow_cookies: 1
allow_cookies: 1,
block_regex: /\.businessoffashion\.com\/pf\/dist\/components\/combinations\/2\.chunk\.js/
},
"The Christian Science Monitor": {
domain: "csmonitor.com"

View file

@ -12,8 +12,13 @@
"domain": "italian.tech",
"group_rule": "###_gr_it_repubblica_domains"
},
"The Business of Fashion": {
"domain": "businessoffashion.com",
"allow_cookies": 1,
"block_regex": "\\.businessoffashion\\.com\\/pf\\/dist\\/components\\/combinations\\/2\\.chunk\\.js"
},
"The Spectator World": {
"domain": "spectatorworld.com",
"block_regex": "(cdn\\.cxense\\.com\\/|\\.tinypass\\.com\\/)"
}
}
}