Add Stratfor

master
magnolia1234 2021-01-31 10:53:55 +01:00
parent 80efa7dd01
commit dea712655d
6 changed files with 16 additions and 2 deletions

View File

@ -80,6 +80,7 @@ _* free articles only._
[Inkl](https://www.inkl.com) -
[National Review](https://www.nationalreview.com) -
[Newsweek](https://www.newsweek.com) -
[Stratfor](https://stratfor.com) -
[The American Interest](https://www.the-american-interest.com) -
[The Atlantic](https://www.theatlantic.com) -
[The Christian Science Monitor](https://www.csmonitor.com) -

View File

@ -111,6 +111,7 @@ var allow_cookies_default = [
'slader.com',
'startribune.com',
'stocknews.com',
'stratfor.com',
'sudouest.fr',
'sueddeutsche.de',
'svz.de',
@ -183,6 +184,7 @@ var use_google_bot_default = [
'republic.ru',
'ruhrnachrichten.de',
'seekingalpha.com',
'stratfor.com',
'thetimes.co.uk',
'usinenouvelle.com',
'washingtonpost.com',

View File

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome
Post-release
Add Griffith Review (Australia)
Add Stratfor
Add The Hill Times (Canada)
Add The Jerusalem Post (Israel)
Fix-update Adweek (amp for premium)

View File

@ -681,7 +681,7 @@ else if (matchDomain("lesechos.fr") && window.location.href.match(/-\d{6,}/)) {
let data = JSON.parse(state);
let article = data.article.data.stripes[0].mainContent[0].data.description;
let url_loaded = data.article.data.path;
if (!url.includes(url_loaded))
if (!url.replace(/%20/g, '').includes(url_loaded))
window.location.reload(true);
let paywallNode = document.querySelector('.post-paywall');
if (paywallNode) {
@ -2008,6 +2008,14 @@ else if (matchDomain('elmercurio.com')) {
}, 1000); // Delay (in milliseconds)
}
else if (matchDomain('stratfor.com')) {
let banner = document.querySelector('.free-cta-container');
removeDOMElement(banner);
let css_link = document.querySelector('link[rel="stylesheet"][href="/assets/worldview.586bbca0b199b8ce5042.css"]');
if (css_link)
css_link.href = '/assets/worldview.d6b47e5305e05acb0c45.css';
}
else if (!matchDomain(['belfasttelegraph.co.uk', 'independent.ie']))
csDone = true;

View File

@ -327,6 +327,7 @@
"*://*.statista.com/*",
"*://*.stcatharinesstandard.ca/*",
"*://*.stocknews.com/*",
"*://*.stratfor.com/*",
"*://*.sudinfo.be/*",
"*://*.sudouest.fr/*",
"*://*.sueddeutsche.de/*",
@ -432,5 +433,5 @@
"*://*.userzoom.com/*",
"*://*.wsj.net/*"
],
"version": "2.0.5.4"
"version": "2.0.5.5"
}

View File

@ -189,6 +189,7 @@ var defaultSites =
"Star Tribune": "startribune.com",
"Statista": "statista.com",
"Stock News": "stocknews.com",
"Stratfor": "stratfor.com",
"Sud Ouest": "sudouest.fr",
"Süddeutsche Zeitung": "sueddeutsche.de",
"SunSentinel": "sun-sentinel.com",