46 lines
1.5 KiB
JavaScript
46 lines
1.5 KiB
JavaScript
// run_at: document_idle
|
|
var code = null;
|
|
if (/oglobo\.globo\.com/.test(document.location.host))
|
|
code = 'paywallAtivo = false;';
|
|
|
|
else if (/www\.economist\.com/.test(document.location.host))
|
|
code = 'document.cookie = "ec_limit=allow";';
|
|
|
|
else if (/foreignpolicy\.com/.test(document.location.host)) {
|
|
code = '\
|
|
document.getElementById("paywall_bg").remove();\
|
|
document.body.classList.remove("overlay-no-scroll");\
|
|
document.body.style.overflow = "visible";\
|
|
document.documentElement.classList.remove("overlay-no-scroll");\
|
|
';
|
|
}
|
|
|
|
else if (/folha.uol.com.br/.test(document.location.host)) {
|
|
code = 'omtrClickUOL = function(){};function showText() {\
|
|
$("#bt-read-more-content").next().show();\
|
|
$("#bt-read-more-content").next().show().prev().remove();\
|
|
} \
|
|
setTimeout(showText, 100);';
|
|
}
|
|
|
|
else if (/ft.com/.test(document.location.host)) {
|
|
code = 'document.cookie = "";\
|
|
localStorage.clear();\
|
|
sessionStorage.clear();\
|
|
indexedDB.deleteDatabase("next-flags");\
|
|
indexedDB.deleteDatabase("next:ads");';
|
|
}
|
|
|
|
else if (/veja.abril.com.br/.test(document.location.host))
|
|
code = `
|
|
document.querySelector('.content-blocked').classList.remove('content-blocked');
|
|
document.querySelector('.callpaywall').remove();
|
|
`;
|
|
|
|
if (code !== null) {
|
|
var script = document.createElement('script');
|
|
script.textContent = code;
|
|
(document.head||document.documentElement).appendChild(script);
|
|
script.parentNode.removeChild(script);
|
|
}
|