Compare commits
5 Commits
d2e4af24bc
...
524524a997
Author | SHA1 | Date |
---|---|---|
Rodrigo O | 524524a997 | |
Rodrigo Orem | d8ccdf4f46 | |
Rodrigo O | c7d74f9a1b | |
Rodrigo Orem | 8d9919169d | |
Felipe Garcia | c6ca5adec4 |
|
@ -84,8 +84,7 @@ const BLOCKLIST = {
|
||||||
gauchazh: {
|
gauchazh: {
|
||||||
scriptBlocking: [
|
scriptBlocking: [
|
||||||
'*://gauchazh.clicrbs.com.br/static/main*',
|
'*://gauchazh.clicrbs.com.br/static/main*',
|
||||||
'*://www.rbsonline.com.br/cdn/scripts/special-paywall.min.js*',
|
'*://gauchazh.clicrbs.com.br/static/signwall.*.min.js'
|
||||||
'*://www.rbsonline.com.br/cdn/scripts/paywall.min.js*',
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
jornalnh: {
|
jornalnh: {
|
||||||
|
|
|
@ -50,36 +50,51 @@ const INJECTION = {
|
||||||
gauchazh: {
|
gauchazh: {
|
||||||
url : /gauchazh.clicrbs.com.br/,
|
url : /gauchazh.clicrbs.com.br/,
|
||||||
code: `
|
code: `
|
||||||
function patchJs(jsurl) {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
var xhttp = new XMLHttpRequest();
|
function patchJs(jsurl) {
|
||||||
xhttp.onreadystatechange = function() {
|
var xhttp = new XMLHttpRequest();
|
||||||
if (this.readyState == 4 && this.status == 200) {
|
xhttp.onreadystatechange = function() {
|
||||||
var injectme = this.responseText;
|
if (this.readyState == 4 && this.status == 200) {
|
||||||
injectme = injectme.replace(/[a-z].showLoginPaywall,/g, 'false,');
|
var injectme = this.responseText;
|
||||||
injectme = injectme.replace(/[a-z].showPaywall,/g, 'false,');
|
injectme = injectme.replace(
|
||||||
injectme = injectme.replace(/[a-z].requestCPF\\|\\|!1,/g, 'false,');
|
/![a-z].showLoginPaywall&&![a-z].showPaywall\\|\\|!1/g, 'true');
|
||||||
injectme = injectme.replace(
|
injectme = injectme.replace('throw new Error("only one instance of babel-polyfill is allowed");', '');
|
||||||
/![a-z].showLoginPaywall&&![a-z].showPaywall\\|\\|!1/g, 'true');
|
var script = document.createElement("script");
|
||||||
injectme = injectme.replace('throw new Error("only one instance of babel-polyfill is allowed");', '');
|
script.type = "text/javascript";
|
||||||
var script = document.createElement("script");
|
var textNode = document.createTextNode(injectme);
|
||||||
script.type = "text/javascript";
|
script.appendChild(textNode);
|
||||||
var textNode = document.createTextNode(injectme);
|
document.head.appendChild(script);
|
||||||
script.appendChild(textNode);
|
}
|
||||||
document.head.appendChild(script);
|
};
|
||||||
}
|
xhttp.open("GET", jsurl.replace('.com.br', '.com.br.'), true);
|
||||||
};
|
xhttp.send();
|
||||||
xhttp.open("GET", jsurl, true);
|
}
|
||||||
xhttp.send();
|
|
||||||
}
|
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", function(event) {
|
const scripts = Array.from(document.getElementsByTagName('script'));
|
||||||
var scripts = Array.from(document.getElementsByTagName('script'));
|
const script = scripts.find((el) => { return el.src.includes('static/main'); });
|
||||||
var script = scripts.find((el) => {
|
if (script) {
|
||||||
return el.src.includes('static/main')
|
|
||||||
});
|
|
||||||
if (script)
|
|
||||||
patchJs(script.src);
|
patchJs(script.src);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
window.onload = function() {
|
||||||
|
function check(){
|
||||||
|
if(document.getElementsByClassName('wrapper-paid-content')[0]){
|
||||||
|
document.getElementsByClassName('wrapper-paid-content')[0].innerHTML = '<p>Por favor aperte Ctrl-F5 para carregar o restante da notícia!</p>';
|
||||||
|
}
|
||||||
|
setTimeout(function(){ check(); }, 5000);
|
||||||
|
}
|
||||||
|
check();
|
||||||
|
};
|
||||||
|
|
||||||
|
const cleanPaywallTracking = () => {
|
||||||
|
document.cookie = 'pwsi__zh=;domain=.clicrbs.com.br;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT';
|
||||||
|
localStorage.removeItem('pwsi__zh');
|
||||||
|
sessionStorage.removeItem('pwsi__zh');
|
||||||
|
};
|
||||||
|
cleanPaywallTracking();
|
||||||
|
setTimeout(cleanPaywallTracking, 5000);
|
||||||
|
document.body.addEventListener('click', cleanPaywallTracking, true);
|
||||||
`
|
`
|
||||||
},
|
},
|
||||||
oglobo: {
|
oglobo: {
|
||||||
|
|
|
@ -64,6 +64,14 @@ const INJECTION = {
|
||||||
url: /super.abril.com.br/,
|
url: /super.abril.com.br/,
|
||||||
code: ABRIL_CODE
|
code: ABRIL_CODE
|
||||||
},
|
},
|
||||||
|
valoreconomico: {
|
||||||
|
url: /valor.globo.com/,
|
||||||
|
code: `
|
||||||
|
const element = document.querySelector('[class*="paywall"]');
|
||||||
|
if (element)
|
||||||
|
element.remove();
|
||||||
|
`
|
||||||
|
},
|
||||||
veja: {
|
veja: {
|
||||||
url: /veja.abril.com.br/,
|
url: /veja.abril.com.br/,
|
||||||
code: ABRIL_CODE
|
code: ABRIL_CODE
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "burlesco",
|
"name": "burlesco",
|
||||||
"version": "12.0",
|
"version": "12.2",
|
||||||
"description": "Leia notícias sem ser assinante, burle o paywall",
|
"description": "Leia notícias sem ser assinante, burle o paywall",
|
||||||
"homepage_url": "https://burles.co",
|
"homepage_url": "https://burles.co",
|
||||||
"author": "rodorgas",
|
"author": "rodorgas",
|
||||||
|
@ -29,7 +29,8 @@
|
||||||
"*://*.diariodaregiao.com.br/*",
|
"*://*.diariodaregiao.com.br/*",
|
||||||
"*://*.correio24horas.com.br/*",
|
"*://*.correio24horas.com.br/*",
|
||||||
"*://*.nexojornal.com.br/*",
|
"*://*.nexojornal.com.br/*",
|
||||||
"*://*.observador.pt/*"
|
"*://*.observador.pt/*",
|
||||||
|
"*://*.valor.globo.com/*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -61,6 +62,7 @@
|
||||||
"*://*.folha.uol.com.br/*",
|
"*://*.folha.uol.com.br/*",
|
||||||
"*://*.folha.com.br/*",
|
"*://*.folha.com.br/*",
|
||||||
"*://gauchazh.clicrbs.com.br/*",
|
"*://gauchazh.clicrbs.com.br/*",
|
||||||
|
"*://gauchazh.clicrbs.com.br./*",
|
||||||
"*://*.zh.clicrbs.com.br/*",
|
"*://*.zh.clicrbs.com.br/*",
|
||||||
"*://api.clicrbs.com.br/*",
|
"*://api.clicrbs.com.br/*",
|
||||||
"*://*.gazetadopovo.com.br/*",
|
"*://*.gazetadopovo.com.br/*",
|
||||||
|
|
Loading…
Reference in New Issue