Add The Business of Fashion

merge-requests/2/head
magnolia1234 3 years ago
parent 2ccd3f6865
commit 5b291234c7

@ -81,6 +81,7 @@ _* free articles only._
[Seeking Alpha](https://seekingalpha.com) -
[Stock News](https://stocknews.com) -
[The Business Journals](https://www.bizjournals.com) -
[The Business of Fashion](https://www.businessoffashion.com) -
[The Wall Street Journal](https://www.wsj.com)
Grouped in options:\

@ -49,6 +49,7 @@ var allow_cookies_default = [
'billboard.com',
'bostonglobe.com',
'business-standard.com',
'businessoffashion.com',
'charliehebdo.fr',
'chronicle.com',
'cicero.de',

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Add Inc42 (India)
Add The Business of Fashion
Fix Bloomberg (quotes/blurred images)
Fix Telegraaf.nl

@ -1389,7 +1389,7 @@ else if (matchDomain('telegraaf.nl')) {
let article_body_old = document.querySelector('[id^="articleBody"]');
removeDOMElement(article_body_old);
let html = document.documentElement.outerHTML;
let json = html.split('window.__APOLLO_STATE__=')[1].split('};')[0] + '}';
let json = html.includes('window.__APOLLO_STATE__=') ? html.split('window.__APOLLO_STATE__=')[1].split('};')[0] + '}' : '';
if (json) {
let json_article_id = json.split('uid\":')[1].split(',\"')[0];
if (json_article_id && json_article_id !== article_id)
@ -1774,6 +1774,18 @@ 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');
@ -1813,7 +1825,6 @@ else if (matchDomain('cen.acs.org')) {
else if (matchDomain('csmonitor.com')) {
let paywall = document.querySelector('div.paywall');
console.log(paywall);
removeDOMElement(paywall);
}

@ -94,6 +94,7 @@
"*://*.britannica.com/*",
"*://*.business-standard.com/*",
"*://*.businessinsider.com/*",
"*://*.businessoffashion.com/*",
"*://*.cairnspost.com.au/*",
"*://*.caixinglobal.com/*",
"*://*.canberratimes.com.au/*",
@ -540,5 +541,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.3.1.4"
"version": "2.3.1.5"
}

@ -243,6 +243,7 @@ var defaultSites =
"The Australian Financial Review": "afr.com",
"The Boston Globe": "bostonglobe.com",
"The Business Journals": "bizjournals.com",
"The Business of Fashion": "businessoffashion.com",
"The Christian Science Monitor": "csmonitor.com",
"The Daily Beast (free articles only)": "thedailybeast.com",
"The Dallas Morning News": "dallasnews.com",

Loading…
Cancel
Save