diff --git a/README.md b/README.md index 4f847ce..881e374 100755 --- a/README.md +++ b/README.md @@ -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) diff --git a/contentScript.js b/contentScript.js index 01c7da2..7483056 100755 --- a/contentScript.js +++ b/contentScript.js @@ -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) { diff --git a/lp/manifest.json b/lp/manifest.json index 570899f..629b217 100644 --- a/lp/manifest.json +++ b/lp/manifest.json @@ -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" } diff --git a/manifest.json b/manifest.json index a8eb035..ab4b1b7 100644 --- a/manifest.json +++ b/manifest.json @@ -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", "", "storage", "webRequest", "webRequestBlocking"], - "version": "1.8.6.1" + "version": "1.8.6.2" } diff --git a/sites.js b/sites.js index ae58334..bcdfc83 100644 --- a/sites.js +++ b/sites.js @@ -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", diff --git a/version.js b/version.js index cef560c..6f79e61 100644 --- a/version.js +++ b/version.js @@ -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); }