mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:17:47 +01:00
Add Business Times (Singapore)
This commit is contained in:
parent
4a73d66d94
commit
18eb966018
5 changed files with 24 additions and 9 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
}
|
|
@ -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"
|
||||
}
|
1
sites.js
1
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",
|
||||
|
|
Loading…
Reference in a new issue