Add Business Times (Singapore)

master
magnolia1234 2020-09-16 16:40:10 +02:00
parent 282d18b13d
commit ef3f7b04b2
6 changed files with 21 additions and 6 deletions

View File

@ -294,6 +294,7 @@ Visit the [Firefox repository](https://bitbucket.org/magnolia1234/bypass-paywall
[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

@ -6,7 +6,7 @@
"browser_action": {
"default_popup": "popup.html"
},
"description": "Bypass News Sites' Paywalls",
"description": "Bypass Paywalls of news sites",
"homepage_url": "https://bitbucket.org/magnolia1234/bypass-paywalls-chrome-clean/src/master/README.md",
"icons": {
"128": "bypass.png"
@ -45,6 +45,7 @@
"*://*.britannica.com/*",
"*://*.business-standard.com/*",
"*://*.businessinsider.com/*",
"*://*.businesstimes.com.sg/*",
"*://*.cairnspost.com.au/*",
"*://*.caixinglobal.com/*",
"*://*.canberratimes.com.au/*",
@ -294,5 +295,5 @@
"webRequest",
"webRequestBlocking"
],
"version": "1.8.6.1"
"version": "1.8.6.2"
}

View File

@ -6,7 +6,7 @@
"browser_action": {
"default_popup": "popup.html"
},
"description": "Bypass News Sites' Paywalls",
"description": "Bypass Paywalls of news sites",
"homepage_url": "https://bitbucket.org/magnolia1234/bypass-paywalls-chrome-clean/src/master/README.md",
"icons": {
"128": "bypass.png"
@ -21,5 +21,5 @@
"page": "options.html"
},
"permissions": [ "cookies", "<all_urls>", "storage", "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",

View File

@ -18,7 +18,7 @@ fetch(manifest_new)
versionString_new.appendChild(document.createTextNode(' * '));
var anchorEl = document.createElement('a');
anchorEl.text = 'New release v' + version_new;
anchorEl.href = 'https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean/downloads';
anchorEl.href = 'https://bitbucket.org/magnolia1234/bypass-paywalls-chrome-clean/downloads';
anchorEl.target = '_blank';
versionString_new.appendChild(anchorEl);
}