Add Star Tribune

master
magnolia1234 2020-09-14 21:49:53 +02:00
parent bfb9cd8e72
commit a81a5bb91c
5 changed files with 15 additions and 0 deletions

View File

@ -126,6 +126,7 @@ Visit the [Firefox repository](https://bitbucket.org/magnolia1234/bypass-paywall
[Pittsburgh Post Gazette](https://post-gazette.com) -
[San Diego Union Tribune](https://sandiegouniontribune.com) -
[San Francisco Chronicle](https://www.sfchronicle.com) -
[Star Tribune](https://www.startribune.com) -
[SunSentinel](https://www.sun-sentinel.com) -
[The Boston Globe](https://www.bostonglobe.com) -
[The Denver Post](https://www.denverpost.com) -

View File

@ -65,6 +65,7 @@ var allow_cookies = [
'scribd.com',
'seekingalpha.com',
'slader.com',
'startribune.com',
'techinasia.com',
'the-american-interest.com',
'thehindu.com',

View File

@ -1066,6 +1066,17 @@ else if (matchDomain("nknews.org")) {
removeDOMElement(excerpt, mobile_widget);
}
else if (matchDomain("startribune.com")) {
document.addEventListener('DOMContentLoaded', () => {
let react_modal_portal = document.querySelectorAll('div.ReactModalPortal');
removeDOMElement(...react_modal_portal);
let body_modal = document.querySelector('body.ReactModal__Body--open');
if (body_modal)
body_modal.classList.remove('ReactModal__Body--open');
});
}
ReactModalPortal
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {

View File

@ -207,6 +207,7 @@
"*://*.spectator.co.uk/*",
"*://*.spectator.com.au/*",
"*://*.standard.net.au/*",
"*://*.startribune.com/*",
"*://*.statista.com/*",
"*://*.sueddeutsche.de/*",
"*://*.sun-sentinel.com/*",

View File

@ -139,6 +139,7 @@ var defaultSites =
"Slader": "slader.com",
"SOFREP": "sofrep.com",
"South China Morning Post": "scmp.com",
"Star Tribune": "startribune.com",
"Statista": "statista.com",
"Süddeutsche Zeitung": "sueddeutsche.de",
"SunSentinel": "sun-sentinel.com",