Atualiza paywall da Folha mobile
parent
c36b818906
commit
06a176c745
|
@ -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: [
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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/*"
|
||||
]
|
||||
}],
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue