Complementa implementação para o Nexo Jornal

master
CaioWzy 2020-07-25 11:35:11 -03:00
parent d66ad99790
commit 1cb9472e9f
No known key found for this signature in database
GPG Key ID: 78F3D5B09AA574ED
4 changed files with 39 additions and 6 deletions

View File

@ -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',

View File

@ -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)
`
},
};

View File

@ -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

View File

@ -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": {