|
|
|
@ -2626,7 +2626,7 @@ else if (matchDomain('vn.nl')) {
|
|
|
|
|
else
|
|
|
|
|
csDone = true;
|
|
|
|
|
|
|
|
|
|
} else if ((window.location.hostname.match(/\.(ie|uk)$/) && !matchDomain(['investmentweek.co.uk'])) || matchDomain(['citywire.com', 'ft.com', 'scotsman.com', 'tes.com'])) {//united kingdom/ireland
|
|
|
|
|
} else if ((window.location.hostname.match(/\.(ie|uk)$/) && !matchDomain(['investmentweek.co.uk'])) || matchDomain(['citywire.com', 'ft.com', 'granta.com', 'scotsman.com', 'tes.com'])) {//united kingdom/ireland
|
|
|
|
|
|
|
|
|
|
if (matchDomain('autocar.co.uk')) {
|
|
|
|
|
let url = window.location.href;
|
|
|
|
@ -2788,6 +2788,32 @@ else if (matchDomain('ft.com')) {
|
|
|
|
|
hideDOMElement(...banners);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else if (matchDomain('granta.com')) {
|
|
|
|
|
let paywall = document.querySelector('div.article-sign-up-container');
|
|
|
|
|
if (paywall && dompurify_loaded) {
|
|
|
|
|
removeDOMElement(paywall);
|
|
|
|
|
let json_url_dom = document.querySelector('head > link[rel="alternate"][type="application/json"][href]');
|
|
|
|
|
if (json_url_dom) {
|
|
|
|
|
let json_url = json_url_dom.href;
|
|
|
|
|
fetch(json_url)
|
|
|
|
|
.then(response => {
|
|
|
|
|
if (response.ok) {
|
|
|
|
|
response.json().then(json => {
|
|
|
|
|
let json_text = json.content.rendered;
|
|
|
|
|
let content = document.querySelector('div.article-excerpt');
|
|
|
|
|
if (json_text && content) {
|
|
|
|
|
let parser = new DOMParser();
|
|
|
|
|
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text) + '</div>', 'text/html');
|
|
|
|
|
let content_new = doc.querySelector('div');
|
|
|
|
|
content.parentNode.replaceChild(content_new, content);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else if (matchDomain('independent.co.uk')) {
|
|
|
|
|
let url = window.location.href;
|
|
|
|
|
if (window.location.search.match(/(\?|&)amp/)) {
|
|
|
|
|