Complementa implementação para o Nexo Jornal
parent
d66ad99790
commit
1cb9472e9f
|
@ -92,6 +92,11 @@ const BLOCKLIST = {
|
|||
urlFilter: '*://www.jota.info/*'
|
||||
}
|
||||
},
|
||||
nexo: {
|
||||
xhrBlocking: [
|
||||
'https://acesso.nexojornal.com.br/paywall/*'
|
||||
]
|
||||
},
|
||||
nsctotal: {
|
||||
xhrBlocking: [
|
||||
'https://paywall.nsctotal.com.br/behaviors',
|
||||
|
|
|
@ -117,10 +117,22 @@ const INJECTION = {
|
|||
nexo: {
|
||||
url: /nexojornal\.com\.br/,
|
||||
code: `
|
||||
var body = document.querySelector("body");
|
||||
var paywall_box = document.getElementsByClassName("PaywallBumper__wrap-container___3_kL1");
|
||||
paywall_box[0].remove();
|
||||
body.style.overflow = "auto"
|
||||
style = document.createElement('style')
|
||||
style.type = 'text/css'
|
||||
|
||||
const css = \`
|
||||
body {
|
||||
overflow: auto !important;
|
||||
}
|
||||
|
||||
div[class*='PaywallBumper__wrap-container'],
|
||||
div[class*='Datawall__wrap-container'] {
|
||||
display: none !important;
|
||||
}
|
||||
\`;
|
||||
|
||||
style.appendChild(document.createTextNode(css))
|
||||
document.head.appendChild(style)
|
||||
`
|
||||
},
|
||||
};
|
||||
|
|
|
@ -38,6 +38,20 @@ const INJECTION = {
|
|||
setTimeout(showText, 100);
|
||||
`
|
||||
},
|
||||
nexo: {
|
||||
url: /nexojornal\.com\.br/,
|
||||
code: `
|
||||
const selectors = [
|
||||
"div[class*='PaywallBumper__wrap-container'",
|
||||
"div[class*='Datawall__wrap-container'"
|
||||
]
|
||||
|
||||
selectors.forEach(selector => {
|
||||
const element = document.querySelector(selector)
|
||||
if (element) element.remove()
|
||||
})
|
||||
`
|
||||
},
|
||||
superinteressante: {
|
||||
url: /super.abril.com.br/,
|
||||
code: ABRIL_CODE
|
||||
|
|
|
@ -26,7 +26,8 @@
|
|||
"*://*.veja.abril.com.br/*",
|
||||
"*://*.jota.info/*",
|
||||
"*://*.diariodaregiao.com.br/*",
|
||||
"*://*.correio24horas.com.br/*"
|
||||
"*://*.correio24horas.com.br/*",
|
||||
"*://*.nexojornal.com.br/*"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -87,7 +88,8 @@
|
|||
"*://*.diariodaregiao.com.br/*",
|
||||
"*://*.correio24horas.com.br/*",
|
||||
"*://correio-static.cworks.cloud/vendor/bower_components/paywall.js/paywall.js*",
|
||||
"*://*.epoca.globo.com/*"
|
||||
"*://*.epoca.globo.com/*",
|
||||
"*://*.nexojornal.com.br/*"
|
||||
],
|
||||
|
||||
"applications": {
|
||||
|
|
Loading…
Reference in New Issue