Squashed commit of the following:

commit ec8867ad0401096d82a5df0dbc7fe3331442f35a
Author: Augusto Resende <augusto.resende@outlook.com>
Date:   Tue Oct 31 13:45:38 2017 -0200

    kissmetrics não é necessario

commit 90b869e0c662aa3e84255947556a9a81d0b2eb1c
Merge: a109583 517229c
Author: Augusto Resende <augusto.resende@outlook.com>
Date:   Tue Oct 31 13:37:28 2017 -0200

    Merge pull request #2 from CaioWzy/master

    Refatora GauchaZH & remove código reduntante

commit 517229c8bdc6ec0c94b1d50a1ddcfb8ebdcb0343
Author: CaioWzy <caiowzy@gmail.com>
Date:   Tue Oct 31 12:18:16 2017 -0300

    Refatora GauchaZH

commit a109583918304e03fabe09a7f1c338d7fb6be97c
Author: Augusto Resende <augusto.resende@outlook.com>
Date:   Tue Oct 31 11:42:02 2017 -0200

    Update manifest.json

commit b853a79480937bcd1c4ef361a236f18687885f86
Author: Augusto Resende <augusto.resende@outlook.com>
Date:   Tue Oct 31 11:13:24 2017 -0200

    Prepara lançamento estavel v5.0

commit a0828abe71ba5efe45954a491e6722e333ddc863
Author: Augusto Resende <augusto.resende@outlook.com>
Date:   Tue Oct 31 11:09:55 2017 -0200

    Formata manifest.json

commit 3e68d4acedf076230f1104a3a430ef77696a6c70
Merge: f542a8e 37d6d9b
Author: Augusto Resende <augusto.resende@outlook.com>
Date:   Tue Oct 31 11:08:55 2017 -0200

    Merge pull request #1 from AugustoResende/CaioWzy-fix/gauchazh

    Caio wzy fix/gauchazh

commit 37d6d9b1cc6b231f748d6eb03c4da7c31ea7235c
Merge: 6b4adb3 f542a8e
Author: Augusto Resende <augusto.resende@outlook.com>
Date:   Tue Oct 31 11:08:41 2017 -0200

    Merge branch 'master' into CaioWzy-fix/gauchazh

commit 6b4adb351e7f0386d74616a94ff16f177ed6f3ae
Author: Augusto Resende <augusto.resende@outlook.com>
Date:   Tue Oct 31 11:00:26 2017 -0200

    Corrige ,

commit eed1c6f76bcd1086c29ec4720edda5d53a735c4a
Author: Augusto Resende <augusto.resende@outlook.com>
Date:   Tue Oct 31 10:59:33 2017 -0200

    Formatando manifest.json

commit 403868fcf05f587de18566b74cb628efe7cf5d42
Author: Augusto Resende <augusto.resende@outlook.com>
Date:   Tue Oct 31 10:59:10 2017 -0200

    Removendo métodos desnecessários e formatando código

commit db636e79c3d9d2da69654fd6e99d113401dc263a
Author: Augusto Resende <augusto.resende@outlook.com>
Date:   Tue Oct 31 10:46:14 2017 -0200

    Formata licença

commit 182ac6a038f05d7ae6625fd8c260fb9e259d4ca5
Author: Augusto Resende <augusto.resende@outlook.com>
Date:   Tue Oct 31 10:44:43 2017 -0200

    Atualizando permissões

commit 23d17548173c136414813ad08a4548a700e27e40
Author: Augusto Resende <augusto.resende@outlook.com>
Date:   Tue Oct 31 10:44:19 2017 -0200

    Corrigindo metodo de bloqueio

commit 6ba5e2d95313b160ce70f8fa6dd26e828d9df921
Author: Augusto Resende <augusto.resende@outlook.com>
Date:   Tue Oct 31 10:22:57 2017 -0200

    Update manifest.json

commit 7faaefcb0efcca3b114fbae2ceb6d00b879f49f1
Author: Augusto Resende <augusto.resende@outlook.com>
Date:   Tue Oct 31 10:22:09 2017 -0200

    Update background.js

commit 6592492d5146125a00591edaf63ca443d6d4ef51
Author: Rodrigo Orem <orem.rodrigo@gmail.com>
Date:   Mon Oct 30 20:59:14 2017 -0200

    Aumenta versão

commit 61738f0defed29aecfb2740bc6fab68d76b0f512
Merge: 3c93bf0 da50cbd
Author: Rodrigo Orem <orem.rodrigo@gmail.com>
Date:   Mon Oct 30 17:51:33 2017 -0200

    Merge branch 'fix/gauchazh' of https://github.com/CaioWzy/burlesco into CaioWzy-fix/gauchazh

commit da50cbde665f9acf7f4a726c6334505f35e05a53
Author: CaioWzy <caiowzy@gmail.com>
Date:   Sun Oct 29 20:59:43 2017 -0300

    Refatora antipaywall GauchaZH

commit 209a7ee1861c1afbe969835d37d03fd7c7b7ec5a
Author: CaioWzy <caiowzy@gmail.com>
Date:   Sun Oct 29 00:04:52 2017 -0300

    Atualiza gauchazh
master
Rodrigo Orem 2017-10-31 14:22:42 -02:00
parent f542a8e6b7
commit b747040dee
4 changed files with 28 additions and 26 deletions

View File

@ -2,8 +2,20 @@ The MIT License (MIT)
Copyright (c) 2016 rodorgas
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -38,7 +38,7 @@ chrome.webRequest.onBeforeRequest.addListener(
// Washington Post
"*://*.washingtonpost.com/*pwapi/*.js*",
"*://*.washingtonpost.com/*drawbridge/drawbridge.js?_*",
// O Globo, Exame, Super Interessante e Veja
"*://cdn.tinypass.com/api/tinypass.min.js",
@ -74,9 +74,13 @@ chrome.webRequest.onBeforeRequest.addListener(
"http://jornaldesantacatarina.clicrbs.com.br/jornal/jsp/paywall*",
// Tinypass (O Globo, Exame e outros)
"*://cdn.tinypass.com/api/tinypass.min.js"
"*://cdn.tinypass.com/api/tinypass.min.js",
// GauchaZH
"*://api.clicrbs.com.br/paywall-api/count/site/2*"
],
types: ["xmlhttprequest"]
types: ["xmlhttprequest", "other"]
},
["blocking"]
);
@ -101,16 +105,12 @@ chrome.webRequest.onBeforeRequest.addListener(
chrome.webRequest.onBeforeRequest.addListener(
function(details) {
console.log(details);
removeCookies('https://gauchazh.clicrbs.com.br');
removeCookies('https://www.ft.com');
},
{
urls: [
// Financial Times
"*://*.ft.com/*",
// Zero Hora
"*://gauchazh.clicrbs.com.br/*"
"*://*.ft.com/*"
],
types: ["main_frame"]
}
@ -142,10 +142,7 @@ chrome.webRequest.onHeadersReceived.addListener(
{
urls: [
// Financial Times
"*://*.ft.com/*",
// Zero Hora
"*://*.clicrbs.com.br/*"
"*://*.ft.com/*"
],
types: ['xmlhttprequest']
},
@ -160,10 +157,7 @@ chrome.webRequest.onBeforeSendHeaders.addListener(
{
urls: [
// Jornal Nexo
'*://api.nexojornal.com.br/*',
// Zero Hora
"*://api.clicrbs.com.br/*"
'*://api.nexojornal.com.br/*'
],
types: ['xmlhttprequest']
},

View File

@ -31,12 +31,6 @@ else if (/ft.com/.test(document.location.host)) {
indexedDB.deleteDatabase("next:ads");';
}
else if (/gauchazh.clicrbs.com.br/.test(document.location.host)) {
code = 'document.cookie = "";\
localStorage.clear();\
sessionStorage.clear();';
}
if (code !== null) {
var script = document.createElement('script');
script.textContent = code;

View File

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "burlesco",
"version": "6.0",
"version": "5.0",
"description": "Leia notícias sem ser assinante, burle o paywall",
"homepage_url": "http://burles.co",
"author": "rodorgas",
@ -59,6 +59,8 @@
"*://*.exame.abril.com.br/*",
"*://super.abril.com.br/*",
"*://veja.abril.com.br/*",
"*://gauchazh.clicrbs.com.br/*",
"*://api.clicrbs.com.br/*",
"*://*.uol.com.br/*",
"*://*.uol/*"
],