|
|
|
@ -2103,7 +2103,7 @@ else if (matchDomain('vn.nl')) {
|
|
|
|
|
else
|
|
|
|
|
csDone = true;
|
|
|
|
|
|
|
|
|
|
} else if (window.location.hostname.match(/\.(ie|uk)$/) || matchDomain(['scotsman.com', 'tes.com'])) {//united kingdom/ireland
|
|
|
|
|
} else if (window.location.hostname.match(/\.(ie|uk)$/) || matchDomain(['citywire.com', 'ft.com', 'scotsman.com', 'tes.com'])) {//united kingdom/ireland
|
|
|
|
|
|
|
|
|
|
if (matchDomain(['belfasttelegraph.co.uk', 'independent.ie'])) {
|
|
|
|
|
let flip_pay = document.querySelector('div#flip-pay[style]');
|
|
|
|
@ -2111,6 +2111,23 @@ if (matchDomain(['belfasttelegraph.co.uk', 'independent.ie'])) {
|
|
|
|
|
flip_pay.removeAttribute('style');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else if (matchDomain('ft.com')) {
|
|
|
|
|
if (window.location.hostname.startsWith('amp.')) {
|
|
|
|
|
amp_unhide_subscr_section('.ad-container, amp-ad');
|
|
|
|
|
} else {
|
|
|
|
|
let cookie_banner = document.querySelector('.o-cookie-message');
|
|
|
|
|
let ribbon = document.querySelector('.js-article-ribbon');
|
|
|
|
|
let ads = document.querySelector('.o-ads');
|
|
|
|
|
removeDOMElement(cookie_banner, ribbon, ads);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else if (matchDomain('independent.co.uk')) {
|
|
|
|
|
let url = window.location.href;
|
|
|
|
|
if (window.location.search.match(/(\?|&)amp/)) {
|
|
|
|
@ -2894,17 +2911,6 @@ else if (matchDomain('fortune.com')) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else if (matchDomain('ft.com')) {
|
|
|
|
|
if (window.location.hostname.startsWith('amp.')) {
|
|
|
|
|
amp_unhide_subscr_section('.ad-container, amp-ad');
|
|
|
|
|
} else {
|
|
|
|
|
let cookie_banner = document.querySelector('.o-cookie-message');
|
|
|
|
|
let ribbon = document.querySelector('.js-article-ribbon');
|
|
|
|
|
let ads = document.querySelector('.o-ads');
|
|
|
|
|
removeDOMElement(cookie_banner, ribbon, ads);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else if (matchDomain('griffithreview.com')) {
|
|
|
|
|
let body_single = document.querySelector('body.single');
|
|
|
|
|
if (body_single)
|
|
|
|
@ -4210,6 +4216,14 @@ function removeClassesByPrefix(el, prefix) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function removeClassesList(list) {
|
|
|
|
|
for (let class_item of list) {
|
|
|
|
|
let elems = document.querySelectorAll('.' + class_item);
|
|
|
|
|
for (let elem of elems)
|
|
|
|
|
elem.classList.remove(class_item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function cookieExists(name) {
|
|
|
|
|
return document.cookie.split(';').some(function (item) {
|
|
|
|
|
return item.trim().indexOf(name + '=') === 0
|
|
|
|
|