Fix Toronto Star (enable Javascript)
parent
1e46e70580
commit
c38826a23a
|
@ -205,7 +205,7 @@ chrome.webRequest.onBeforeRequest.addListener(function(details) {
|
|||
return {cancel: true};
|
||||
},
|
||||
{
|
||||
urls: ["*://*.thestar.com/*", "*://*.theglobeandmail.com/*", "*://*.afr.com/*",
|
||||
urls: ["*://*.theglobeandmail.com/*", "*://*.afr.com/*",
|
||||
"*://*.tinypass.com/*", "*://*.poool.fr/*"],
|
||||
types: ["script"]
|
||||
},
|
||||
|
|
|
@ -238,7 +238,7 @@ if (window.location.href.indexOf("the-tls.co.uk") !== -1) {
|
|||
}
|
||||
|
||||
if (window.location.href.indexOf("caixinglobal.com") !== -1) {
|
||||
const pay_tip = document.querySelectorAll('.cons-pay-tip');
|
||||
const pay_tip = document.querySelectorAll('.cons-pay-tip');
|
||||
for (let i = 0; i < pay_tip.length; i++) {
|
||||
pay_tip[i].removeAttribute('style');
|
||||
}
|
||||
|
@ -253,11 +253,11 @@ if (window.location.href.indexOf("caixinglobal.com") !== -1) {
|
|||
|
||||
if (window.location.href.indexOf("nrc.nl") !== -1) {
|
||||
const paywall = document.querySelector('.has-paywall');
|
||||
if (paywall)
|
||||
paywall.classList.remove("has-paywall");
|
||||
const paywall_overlay = document.querySelector('.has-paywall-overlay');
|
||||
if (paywall_overlay)
|
||||
paywall_overlay.classList.remove("has-paywall-overlay");
|
||||
if (paywall)
|
||||
paywall.classList.remove("has-paywall");
|
||||
const paywall_overlay = document.querySelector('.has-paywall-overlay');
|
||||
if (paywall_overlay)
|
||||
paywall_overlay.classList.remove("has-paywall-overlay");
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("scribd.com") !== -1) {
|
||||
|
@ -273,8 +273,8 @@ if (window.location.href.indexOf("scribd.com") !== -1) {
|
|||
}
|
||||
|
||||
if (window.location.href.indexOf("thetimes.co.uk") !== -1) {
|
||||
const block = document.querySelector('.subscription-block');
|
||||
removeDOMElement(block);
|
||||
const block = document.querySelector('.subscription-block');
|
||||
removeDOMElement(block);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("technologyreview.com") !== -1) {
|
||||
|
@ -310,6 +310,15 @@ if (window.location.href.indexOf("techinasia.com") !== -1) {
|
|||
removeDOMElement(splash_subscribe, paywall_hard);
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("thestar.com") !== -1) {
|
||||
const paywall = document.querySelector('.basic-paywall-new');
|
||||
removeDOMElement(paywall);
|
||||
const tbc = document.querySelectorAll('.text-block-container');
|
||||
for (let i = 0; i < tbc.length; i++) {
|
||||
tbc[i].removeAttribute('style');
|
||||
}
|
||||
}
|
||||
|
||||
// General Functions
|
||||
function removeDOMElement(...elements) {
|
||||
for (let element of elements) {
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
"The Telegraph": "telegraph.co.uk",
|
||||
"The Times Literary Supplement": "the-tls.co.uk",
|
||||
"The Times": "thetimes.co.uk",
|
||||
"The Toronto Star (javascript disabled)": "thestar.com",
|
||||
"The Toronto Star": "thestar.com",
|
||||
"The Wall Street Journal": "wsj.com",
|
||||
"The Washington Post": "washingtonpost.com",
|
||||
"Towards Data Science": "towardsdatascience.com",
|
||||
|
|
Loading…
Reference in New Issue