Add Business Times (Singapore)

This commit is contained in:
magnolia1234 2020-09-16 16:40:41 +02:00
parent 4a73d66d94
commit 18eb966018
5 changed files with 24 additions and 9 deletions

View file

@ -264,6 +264,7 @@ So don't update to Firefox 79 or use F-droid's [Fennec-release](https://f-droid.
[NK News](https://www.nknews.org)* -
[South China Morning Post](https://www.scmp.com) -
[Tech in Asia](https://www.techinasia.com) -
[The Business Times](https://www.businesstimes.com.sg) -
[The Diplomat](https://www.thediplomat.com) -
[The Japan Times](https://www.japantimes.co.jp)

View file

@ -1076,7 +1076,19 @@ else if (matchDomain("startribune.com")) {
});
}
ReactModalPortal
else if (domain = matchDomain("businesstimes.com.sg")) {
let url = window.location.href;
let paywall_login = document.querySelector('div.paywall-login');
if (paywall_login) {
window.setTimeout(function () {
window.location.href = url + '?amp';
}, 500); // Delay (in milliseconds)
}
let cx_custom = document.querySelector('div#cx_custom');
if (cx_custom)
cx_custom.setAttribute('style', 'display:none');
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {

View file

@ -21,7 +21,7 @@
}
]
},
"description": "Bypass News Sites' Paywalls",
"description": "Bypass Paywalls of news sites",
"homepage_url": "https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean",
"icons": {
"128": "bypass.png"
@ -57,6 +57,7 @@
"*://*.britannica.com/*",
"*://*.business-standard.com/*",
"*://*.businessinsider.com/*",
"*://*.businesstimes.com.sg/*",
"*://*.cairnspost.com.au/*",
"*://*.caixinglobal.com/*",
"*://*.canberratimes.com.au/*",
@ -307,5 +308,5 @@
"webRequest",
"webRequestBlocking"
],
"version": "1.8.6.1"
"version": "1.8.6.2"
}

View file

@ -21,7 +21,7 @@
}
]
},
"description": "Bypass News Sites' Paywalls",
"description": "Bypass Paywalls of news sites",
"homepage_url": "https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean",
"icons": {
"128": "bypass.png"
@ -40,5 +40,5 @@
"webRequest",
"webRequestBlocking"
],
"version": "1.8.6.1"
"version": "1.8.6.2"
}

View file

@ -152,6 +152,7 @@ var defaultSites =
"The Australian Financial Review": "afr.com",
"The Boston Globe (opt-in)": "bostonglobe.com",
"The Business Journals": "bizjournals.com",
"The Business Times": "businesstimes.com.sg",
"The Christian Science Monitor": "csmonitor.com",
"The Daily Beast (free articles only)": "thedailybeast.com",
"The Denver Post": "denverpost.com",