Fix-update Stratfor

merge-requests/1/head
magnolia1234 3 years ago
parent ac1b0e6cc8
commit 00e019ce06

@ -214,7 +214,6 @@ var use_google_bot_default = [
'ruhrnachrichten.de',
'seekingalpha.com',
'statista.com',
'stratfor.com',
'thetimes.co.uk',
'usinenouvelle.com',
'washingtonpost.com',
@ -230,6 +229,7 @@ var use_google_bot = use_google_bot_default.slice();
var use_bing_bot = [
'haaretz.co.il',
'haaretz.com',
'stratfor.com',
'themarker.com',
];

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix-update Stratfor
* v2.1.5.0 (2021-04-04)
Add Billboard

@ -353,9 +353,9 @@ else if (matchDomain('telegraaf.nl')) {
}
else if (matchDomain(['ad.nl', 'bd.nl', 'ed.nl', 'tubantia.nl', 'bndestem.nl', 'pzc.nl', 'destentor.nl', 'gelderlander.nl'])) {
let paywall = document.querySelector('.article__component.article__component--paywall-module-notification');
let paywall = document.querySelectorAll('.article__component--paywall-module-notification, .fjs-paywall-notification');
let modal_login = document.querySelector('.modal--login');
removeDOMElement(paywall, modal_login);
removeDOMElement(...paywall, modal_login);
}
else if (matchDomain("washingtonpost.com")) {
@ -1492,6 +1492,8 @@ else if (matchDomain("nybooks.com")) {
let paywall_article = document.querySelector('.paywall-article');
if (paywall_article)
paywall_article.classList.remove('paywall-article');
let banner = document.querySelector('div.toast-cta');
removeDOMElement(banner);
}
else if (matchDomain("thelogic.co")) {
@ -2004,27 +2006,9 @@ else if (matchDomain('elmercurio.com')) {
}, 1000); // Delay (in milliseconds)
}
else if (matchDomain('stratfor.com') && window.location.href.match(/((\w)+(\-)+){3,}/)) {
else if (matchDomain('stratfor.com')) {
let banner = document.querySelector('.free-cta-container');
removeDOMElement(banner);
let css_link = document.querySelector('link[rel="stylesheet"]');
if (css_link && !css_link.getAttribute('style')) {
css_link.setAttribute('style', 'done');
url = 'https://' + new URL(window.location.href).hostname;
fetch(url)
.then(response => {
if (response.ok) {
response.text().then(html => {
var parser = new DOMParser();
var doc = parser.parseFromString(html, 'text/html');
let css_home = doc.querySelector('link[rel="stylesheet"]');
if (css_home) {
css_link.href = css_home.href;
}
});
}
});
}
let hidden_images = document.querySelectorAll('img[src^="data:image/gif"][data-src]');
for (let hidden_image of hidden_images)
hidden_image.setAttribute('src', hidden_image.getAttribute("data-src"));
@ -2209,6 +2193,14 @@ else if (matchDomain('berliner-zeitung.de')) {
}
}
else if (matchDomain('foreignpolicy.com')) {
let placeholder = document.querySelector('div.loading-placeholder-smaller');
removeDOMElement(placeholder);
let sub_content = document.querySelector('div.sub_content:not(style)');
if (sub_content)
sub_content.setAttribute('style', 'display:block !important;');
}
else if ((domain = matchDomain(usa_mcc_domains)) || document.querySelector('script[src^="https://media.mcclatchyinteractive.com/"]') || window.location.href.match(/\/\/amp\..+\.com\/(.+\/)?article(\d){8,}\.html/)) {
if (!domain)
domain = document.domain.replace(/(account|amp)\./, '');

@ -499,5 +499,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.1.5.0"
"version": "2.1.5.1"
}
Loading…
Cancel
Save