Fix Citywire

merge-requests/14/head
magnolia1234 1 year ago
parent 798f5ef924
commit ca354b08cc

@ -8,6 +8,7 @@ Add Schwaebische.de
Add TagesAnzeiger.ch (link to archive.is)
Remove Business Standard (fix obsolete)
Fix BusinessPost.ie (json)
Fix Citywire
Fix DHnet.be, L'Avenir & LaLibre.be (Add Groupe IPM)
Fix The Spectator World (new domain)
Fix TownNews sites (js)

@ -2467,9 +2467,21 @@ else if (matchDomain('businesspost.ie')) {
}
else if (matchDomain('citywire.com')) {
removeClassesList(['article-locked', 'm-article--locked', 'm-media-container--locked', 'm-article__body--locked']);
let banners = document.querySelectorAll('registration-widget, div.alert--locked');
removeDOMElement(...banners);
let url = window.location.href;
let paywall = document.querySelector('div.locked-content.cw-article-body');
if (paywall) {
paywall.classList.remove('locked-content');
csDoneOnce = true;
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0];
replaceDomElementExt(url_cache, true, false, 'div.cw-article-body');
}
window.setTimeout(function () {
let banner = document.querySelector('div#lockedLoginPanel');
removeDOMElement(banner);
let article = document.querySelector('div.cw-article-body');
if (article)
removeDOMElement(article.nextSibling);
}, 1000);
}
else if (matchDomain('ft.com')) {

Loading…
Cancel
Save