mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-13 01:44:15 +01:00
Fix Star Tribune (css)
This commit is contained in:
parent
62c1e91e49
commit
05137b5ad8
6 changed files with 10 additions and 12 deletions
|
@ -903,7 +903,7 @@ if (typeof browser !== 'object') {
|
||||||
ext_api.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
|
ext_api.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
|
||||||
let tab_status = changeInfo.status;
|
let tab_status = changeInfo.status;
|
||||||
if (/^http/.test(tab.url)) {
|
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;
|
let timeout = changeInfo.url ? 500 : 0;
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (isSiteEnabled(tab)) {
|
if (isSiteEnabled(tab)) {
|
||||||
|
|
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
||||||
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
|
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
|
Fix Star Tribune (css)
|
||||||
|
|
||||||
* v3.3.1.0 (2023-08-27)
|
* v3.3.1.0 (2023-08-27)
|
||||||
Add Bridge Tower Media (opt-in to custom sites)
|
Add Bridge Tower Media (opt-in to custom sites)
|
||||||
|
|
|
@ -4479,15 +4479,12 @@ else if (matchDomain('staradvertiser.com')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('startribune.com')) {
|
else if (matchDomain('startribune.com')) {
|
||||||
let modal = document.querySelector('body.ReactModal__Body--open');
|
let noscroll = document.querySelector('body[class]');
|
||||||
if (modal)
|
if (noscroll)
|
||||||
modal.classList.remove('ReactModal__Body--open');
|
noscroll.style = 'overflow: auto !important; position: static !important;';
|
||||||
let banner = document.querySelector('div#meterContent, div[class*="Limit-container-"]');
|
let modal = document.querySelector('div.modal-backdrop');
|
||||||
let banner_modal;
|
|
||||||
if (banner)
|
|
||||||
banner_modal = banner.closest('div.ReactModalPortal');
|
|
||||||
let ads = document.querySelectorAll('div.ad-placeholder');
|
let ads = document.querySelectorAll('div.ad-placeholder');
|
||||||
removeDOMElement(banner_modal, ...ads);
|
removeDOMElement(modal, ...ads);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('statista.com')) {
|
else if (matchDomain('statista.com')) {
|
||||||
|
|
|
@ -51,5 +51,5 @@
|
||||||
"webRequestBlocking",
|
"webRequestBlocking",
|
||||||
"*://*/*"
|
"*://*/*"
|
||||||
],
|
],
|
||||||
"version": "3.3.1.0"
|
"version": "3.3.1.1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -792,5 +792,5 @@
|
||||||
"*://*.wyleex.com/*",
|
"*://*.wyleex.com/*",
|
||||||
"*://webcache.googleusercontent.com/*"
|
"*://webcache.googleusercontent.com/*"
|
||||||
],
|
],
|
||||||
"version": "3.3.1.0"
|
"version": "3.3.1.1"
|
||||||
}
|
}
|
||||||
|
|
2
sites.js
2
sites.js
|
@ -1927,7 +1927,7 @@ var defaultSites = {
|
||||||
},
|
},
|
||||||
"Star Tribune": {
|
"Star Tribune": {
|
||||||
domain: "startribune.com",
|
domain: "startribune.com",
|
||||||
remove_cookies_select_drop: ["client_id"]
|
allow_cookies: 1
|
||||||
},
|
},
|
||||||
"Statista": {
|
"Statista": {
|
||||||
domain: "statista.com",
|
domain: "statista.com",
|
||||||
|
|
Loading…
Reference in a new issue