Atualiza paywall da Folha mobile

master
Rodrigo Orem 2017-08-28 21:02:20 -03:00
parent c36b818906
commit 06a176c745
5 changed files with 22 additions and 5 deletions

View File

@ -43,9 +43,15 @@ chrome.webRequest.onBeforeRequest.addListener(
);
// XHR blocking
WHITELIST = [
'http://paywall.folha.uol.com.br/status.php'
];
chrome.webRequest.onBeforeRequest.addListener(
function(details) {
return {cancel: true};
if (WHITELIST.indexOf(details.url) !== -1)
return {cancel: false};
else
return {cancel: true};
},
{
urls: [

View File

@ -15,6 +15,15 @@ else if (/foreignpolicy\.com/.test(document.location.host)) {
';
}
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);';
}
if (code !== null) {
var script = document.createElement('script');
script.textContent = code;

View File

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "burlesco",
"version": "2.16",
"version": "2.17",
"description": "Leia notícias sem ser assinante, burle o paywall",
"homepage_url": "http://burles.co",
"author": "rodorgas",
@ -20,7 +20,9 @@
"matches": [
"*://*.oglobo.globo.com/*",
"*://www.economist.com/*",
"*://foreignpolicy.com/*"
"*://foreignpolicy.com/*",
"*://*.folha.uol.com.br/*",
"*://*.folha.com.br/*"
]
}],

View File

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "burlesco",
"version": "2.16",
"version": "2.17",
"description": "Leia notícias sem ser assinante, burle o paywall",
"homepage_url": "http://burles.co",
"author": "rodorgas",

View File

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "burlesco",
"version": "2.16",
"version": "2.17",
"description": "Leia notícias sem ser assinante, burle o paywall",
"homepage_url": "http://burles.co",
"author": "rodorgas",