mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:47:49 +01:00
Fix Australian Community Media (css)
This commit is contained in:
parent
8f5858f925
commit
5b58915cfc
3 changed files with 10 additions and 9 deletions
|
@ -29,7 +29,7 @@ You can also install the custom add-on version (with host permissions for all si
|
||||||
|
|
||||||
### Update
|
### Update
|
||||||
Check for updates (in about:addons) and allow permissions for newly supported sites (else no update will be installed).\
|
Check for updates (in about:addons) and allow permissions for newly supported sites (else no update will be installed).\
|
||||||
You can also check for update of site rules at startup (opt-in).\
|
You can also check for update of site rules at startup (opt-in); only available until about 10 days after fix-release.\
|
||||||
For new sites you also have to opt-in to custom sites/request permissions for new domains (or wait for new release).
|
For new sites you also have to opt-in to custom sites/request permissions for new domains (or wait for new release).
|
||||||
|
|
||||||
#### Android
|
#### Android
|
||||||
|
@ -156,7 +156,7 @@ Grouped in options:\
|
||||||
##### Magazines/Blogs
|
##### Magazines/Blogs
|
||||||
[Medium](https://www.medium.com)*\
|
[Medium](https://www.medium.com)*\
|
||||||
Grouped in options:\
|
Grouped in options:\
|
||||||
*Medium custom domains* like (opt-in to custom sites for unlisted):\
|
*Medium custom domains* like (opt-in to custom sites for unlisted)\
|
||||||
[Better Programming](https://betterprogramming.pub) -
|
[Better Programming](https://betterprogramming.pub) -
|
||||||
[Towards Data Science](https://towardsdatascience.com)
|
[Towards Data Science](https://towardsdatascience.com)
|
||||||
|
|
||||||
|
@ -593,7 +593,7 @@ Grouped in options:\
|
||||||
[Leidsch Dagblad](https://www.leidschdagblad.nl) -
|
[Leidsch Dagblad](https://www.leidschdagblad.nl) -
|
||||||
[IJmuider Courant](https://www.ijmuidercourant.nl) -
|
[IJmuider Courant](https://www.ijmuidercourant.nl) -
|
||||||
[De Gooi- en Eemlander](https://www.gooieneemlander.nl)\
|
[De Gooi- en Eemlander](https://www.gooieneemlander.nl)\
|
||||||
*Mediahuis Noord* sites like (opt-in to custom sites for unlisted):\
|
*Mediahuis Noord* sites like (opt-in to custom sites for unlisted)\
|
||||||
[Dagblad van het Noorden](https://www.dvhn.nl) -
|
[Dagblad van het Noorden](https://www.dvhn.nl) -
|
||||||
[Leeuwarder Courant](https://www.lc.nl)
|
[Leeuwarder Courant](https://www.lc.nl)
|
||||||
|
|
||||||
|
@ -618,7 +618,7 @@ Grouped in options:\
|
||||||
*ARA* sites like\
|
*ARA* sites like\
|
||||||
[Ara.cat](https://www.ara.cat) -
|
[Ara.cat](https://www.ara.cat) -
|
||||||
[Ara Balears](https://www.arabalears.cat)\
|
[Ara Balears](https://www.arabalears.cat)\
|
||||||
*Grupo Prensa Ibérica* sites like (opt-in to custom sites for unlisted):\
|
*Grupo Prensa Ibérica* sites like (opt-in to custom sites for unlisted)\
|
||||||
[Diario de Mallorca](https://www.diariodemallorca.es) -
|
[Diario de Mallorca](https://www.diariodemallorca.es) -
|
||||||
[El Día](https://www.eldia.es) -
|
[El Día](https://www.eldia.es) -
|
||||||
[El Periódico de España](https://www.epe.es) -
|
[El Periódico de España](https://www.epe.es) -
|
||||||
|
|
|
@ -5,6 +5,7 @@ Post-release
|
||||||
Add Limburger.nl
|
Add Limburger.nl
|
||||||
Add Standaard.be
|
Add Standaard.be
|
||||||
Add SuomenSotilas.fi
|
Add SuomenSotilas.fi
|
||||||
|
Fix Australian Community Media (css)
|
||||||
Add Tagesspiegel.de
|
Add Tagesspiegel.de
|
||||||
Fix The Athletic (amp)
|
Fix The Athletic (amp)
|
||||||
Grouping DPG Media (not ADR)
|
Grouping DPG Media (not ADR)
|
||||||
|
|
|
@ -280,10 +280,10 @@ else {
|
||||||
let au_comm_media_domains = ['bendigoadvertiser.com.au', 'bordermail.com.au', 'canberratimes.com.au', 'centralwesterndaily.com.au', 'dailyadvertiser.com.au', 'dailyliberal.com.au', 'examiner.com.au', 'illawarramercury.com.au', 'newcastleherald.com.au', 'northerndailyleader.com.au', 'standard.net.au', 'theadvocate.com.au', 'thecourier.com.au', 'westernadvocate.com.au'];
|
let au_comm_media_domains = ['bendigoadvertiser.com.au', 'bordermail.com.au', 'canberratimes.com.au', 'centralwesterndaily.com.au', 'dailyadvertiser.com.au', 'dailyliberal.com.au', 'examiner.com.au', 'illawarramercury.com.au', 'newcastleherald.com.au', 'northerndailyleader.com.au', 'standard.net.au', 'theadvocate.com.au', 'thecourier.com.au', 'westernadvocate.com.au'];
|
||||||
let au_comm_media_link = document.querySelector('a[href^="https://australiancommunitymedia.zendesk.com"]');
|
let au_comm_media_link = document.querySelector('a[href^="https://australiancommunitymedia.zendesk.com"]');
|
||||||
if (matchDomain(au_comm_media_domains) || au_comm_media_link) {
|
if (matchDomain(au_comm_media_domains) || au_comm_media_link) {
|
||||||
let mask = document.querySelector('div[style^="-webkit-mask-image"]');
|
let mask = document.querySelector('div[style*="mask-image"]');
|
||||||
if (mask) {
|
if (mask) {
|
||||||
mask.removeAttribute('style');
|
mask.removeAttribute('style');
|
||||||
let div_hidden = document.querySelectorAll('div[class="hidden"]');
|
let div_hidden = document.querySelectorAll('div.hidden');
|
||||||
for (let elem of div_hidden)
|
for (let elem of div_hidden)
|
||||||
elem.classList.remove('hidden');
|
elem.classList.remove('hidden');
|
||||||
} else {
|
} else {
|
||||||
|
@ -299,7 +299,7 @@ else {
|
||||||
if (noscroll)
|
if (noscroll)
|
||||||
noscroll.removeAttribute('style');
|
noscroll.removeAttribute('style');
|
||||||
let story_generic_iframe = document.querySelector('.story-generic__iframe');
|
let story_generic_iframe = document.querySelector('.story-generic__iframe');
|
||||||
let ads = document.querySelectorAll('.ad-placeholder, .sticky, [id*="-container"]');
|
let ads = document.querySelectorAll('.ad-placeholder, .sticky, [id*="-container"], #hindsight-ads-iframe');
|
||||||
removeDOMElement(story_generic_iframe, blocker, ...ads);
|
removeDOMElement(story_generic_iframe, blocker, ...ads);
|
||||||
} else if (window.location.hostname.endsWith('.com.au')) {
|
} else if (window.location.hostname.endsWith('.com.au')) {
|
||||||
// Australia News Corp
|
// Australia News Corp
|
||||||
|
@ -1144,7 +1144,7 @@ else if (matchDomain('elespanol.com')) {
|
||||||
else if (matchDomain(es_unidad_domains)) {
|
else if (matchDomain(es_unidad_domains)) {
|
||||||
let premium = document.querySelector('.ue-c-article__premium');
|
let premium = document.querySelector('.ue-c-article__premium');
|
||||||
let url = window.location.href;
|
let url = window.location.href;
|
||||||
if (!window.location.hostname.match(/^amp(-\w{2})?\./)) {
|
if (!window.location.hostname.match(/^amp(-[a-z]{2})?\./)) {
|
||||||
if (premium) {
|
if (premium) {
|
||||||
removeDOMElement(premium);
|
removeDOMElement(premium);
|
||||||
window.location.href = url.replace('/www.', '/amp.');
|
window.location.href = url.replace('/www.', '/amp.');
|
||||||
|
@ -2071,7 +2071,7 @@ else if (matchDomain(nl_mediahuis_region_domains)) {
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain(nl_dpg_media_domains)) {
|
else if (false && matchDomain(nl_dpg_media_domains)) {
|
||||||
let banners = document.querySelectorAll('div[data-temptation-position^="PAGE_"], div[class^="ad--"]');
|
let banners = document.querySelectorAll('div[data-temptation-position^="PAGE_"], div[class^="ad--"]');
|
||||||
let paywall = document.querySelectorAll('[data-temptation-position^="ARTICLE_"]');
|
let paywall = document.querySelectorAll('[data-temptation-position^="ARTICLE_"]');
|
||||||
removeDOMElement(...banners, ...paywall);
|
removeDOMElement(...banners, ...paywall);
|
||||||
|
|
Loading…
Reference in a new issue