Fix Star Tribune (css)

This commit is contained in:
magnolia1234 2023-08-28 08:56:53 +02:00
parent 62c1e91e49
commit 05137b5ad8
6 changed files with 10 additions and 12 deletions

View file

@ -903,7 +903,7 @@ if (typeof browser !== 'object') {
ext_api.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
let tab_status = changeInfo.status;
if (/^http/.test(tab.url)) {
if ((tab_status && tab_status === 'complete') || (changeInfo.url)) {
if ((tab_status && (tab_status === 'complete' || matchUrlDomain(['startribune.com'], tab.url))) || changeInfo.url) {
let timeout = changeInfo.url ? 500 : 0;
setTimeout(function () {
if (isSiteEnabled(tab)) {

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release
Fix Star Tribune (css)
* v3.3.1.0 (2023-08-27)
Add Bridge Tower Media (opt-in to custom sites)

View file

@ -4479,15 +4479,12 @@ else if (matchDomain('staradvertiser.com')) {
}
else if (matchDomain('startribune.com')) {
let modal = document.querySelector('body.ReactModal__Body--open');
if (modal)
modal.classList.remove('ReactModal__Body--open');
let banner = document.querySelector('div#meterContent, div[class*="Limit-container-"]');
let banner_modal;
if (banner)
banner_modal = banner.closest('div.ReactModalPortal');
let noscroll = document.querySelector('body[class]');
if (noscroll)
noscroll.style = 'overflow: auto !important; position: static !important;';
let modal = document.querySelector('div.modal-backdrop');
let ads = document.querySelectorAll('div.ad-placeholder');
removeDOMElement(banner_modal, ...ads);
removeDOMElement(modal, ...ads);
}
else if (matchDomain('statista.com')) {

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.3.1.0"
"version": "3.3.1.1"
}

View file

@ -792,5 +792,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.3.1.0"
"version": "3.3.1.1"
}

View file

@ -1927,7 +1927,7 @@ var defaultSites = {
},
"Star Tribune": {
domain: "startribune.com",
remove_cookies_select_drop: ["client_id"]
allow_cookies: 1
},
"Statista": {
domain: "statista.com",