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)* - [NK News](https://www.nknews.org)* -
[South China Morning Post](https://www.scmp.com) - [South China Morning Post](https://www.scmp.com) -
[Tech in Asia](https://www.techinasia.com) - [Tech in Asia](https://www.techinasia.com) -
[The Business Times](https://www.businesstimes.com.sg) -
[The Diplomat](https://www.thediplomat.com) - [The Diplomat](https://www.thediplomat.com) -
[The Japan Times](https://www.japantimes.co.jp) [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 // General Functions
function removeDOMElement(...elements) { function removeDOMElement(...elements) {
for (let element of elements) { for (let element of elements) {

View file

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

View file

@ -1,6 +1,6 @@
{ {
"background": { "background": {
"scripts": ["sites.js", "bpc_count_daily_users.js", "background.js"] "scripts": ["sites.js", "bpc_count_daily_users.js", "background.js"]
}, },
"content_security_policy": "script-src 'self'; object-src 'self'", "content_security_policy": "script-src 'self'; object-src 'self'",
"applications": { "applications": {
@ -21,8 +21,8 @@
} }
] ]
}, },
"description": "Bypass News Sites' Paywalls", "description": "Bypass Paywalls of news sites",
"homepage_url": "https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean", "homepage_url": "https://bitbucket.org/magnolia1234/bypass-paywalls-firefox-clean",
"icons": { "icons": {
"128": "bypass.png" "128": "bypass.png"
}, },
@ -40,5 +40,5 @@
"webRequest", "webRequest",
"webRequestBlocking" "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 Australian Financial Review": "afr.com",
"The Boston Globe (opt-in)": "bostonglobe.com", "The Boston Globe (opt-in)": "bostonglobe.com",
"The Business Journals": "bizjournals.com", "The Business Journals": "bizjournals.com",
"The Business Times": "businesstimes.com.sg",
"The Christian Science Monitor": "csmonitor.com", "The Christian Science Monitor": "csmonitor.com",
"The Daily Beast (free articles only)": "thedailybeast.com", "The Daily Beast (free articles only)": "thedailybeast.com",
"The Denver Post": "denverpost.com", "The Denver Post": "denverpost.com",