mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:57:48 +01:00
Fix-update Fd.nl (modal/newsletter query string)
This commit is contained in:
parent
a37417dfbf
commit
41632c9120
1 changed files with 13 additions and 0 deletions
|
@ -492,6 +492,10 @@ else if (matchDomain("lesechos.fr")) {
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain(["lc.nl", "dvhn.nl"])) {
|
else if (matchDomain(["lc.nl", "dvhn.nl"])) {
|
||||||
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
if (window.location.href.includes('?'))
|
||||||
|
window.location.href = window.location.href.split('?')[0];
|
||||||
|
});
|
||||||
let top_ad = document.querySelector('.top__ad');
|
let top_ad = document.querySelector('.top__ad');
|
||||||
let plus = document.querySelector('.plusJustRead');
|
let plus = document.querySelector('.plusJustRead');
|
||||||
removeDOMElement(top_ad, plus);
|
removeDOMElement(top_ad, plus);
|
||||||
|
@ -880,6 +884,15 @@ else if (matchDomain("charliehebdo.fr")) {
|
||||||
removeDOMElement(poool_widget);
|
removeDOMElement(poool_widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (matchDomain("fd.nl")) {
|
||||||
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
if (window.location.href.includes('?'))
|
||||||
|
window.location.href = window.location.href.split('?')[0];
|
||||||
|
let reg_modal = document.querySelector('div.modal.upsell');
|
||||||
|
if (reg_modal)
|
||||||
|
window.location.reload(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// General Functions
|
// General Functions
|
||||||
function removeDOMElement(...elements) {
|
function removeDOMElement(...elements) {
|
||||||
|
|
Loading…
Reference in a new issue