commit 845ad2f8b9be050a8df3f5c0b37896e9039ed4b2 Author: Rodrigo Orem Date: Mon Apr 25 01:06:35 2016 -0300 Primeiro commit diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..7aa9547 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright (c) 2016 Rodrigo Orem + +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 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. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..cff25df --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# burlesco + +Extensão para o Google Chrome que remove de maneira transparente o paywall de grandes sites de notícia. + +[Obtenha a extensão **burlesco** na Chrome Web Store.](https://chrome.google.com/webstore/detail/lpamnanbhgpgkkpmilbifikmikfghlgh) + +## Como funciona? + +Paywall é um sistema de assinatura usado por jornais e outros veículos de comunicação digitais que restringe o acesso aos não assinantes. É uma maneira desses veículos aumentarem suas receitas, seguindo uma tendência internacional que criou a medida depois da diminuição das tiragens impressas. + +Se o veículo deseja lucrar mais com a paywall, existem alguns ônus, entre eles a perda de classificação no Google. Isso ocorre porque muitos textos deixam de ser indexados, já que requerem uma assinatura para serem lidos (e os robôs do Google não são assinantes). + +Assim, alguns sites obtêm vantagem indevida: para não perder ranking no Google, abrem propositalmente brechas para que os robôs dos mecanismos de busca possam entrar e fazer o seu trabalho. Quando o usuário chega na notícia, no entanto, algum truque feio é realizado para dificultar o acesso. + +Essa extensão quer desarmar esses truques feios. + + +## burlesco + +adj. (1647) +1 relativo a comédia; **cômico** […] +4 **burlador**, zombeteiro, trocista + +Burlamos os métodos de bloqueio, que são verdadeiramente cômicos. \ No newline at end of file diff --git a/background.js b/background.js new file mode 100644 index 0000000..e0a0969 --- /dev/null +++ b/background.js @@ -0,0 +1,11 @@ +chrome.webRequest.onBeforeRequest.addListener( + function(details) { return {cancel: true}; }, + { + urls: [ + "*://*.estadao.com.br/paywall/*", + "*://*.folha.uol.com.br/folha/furniture/paywall/*" + ], + types: ["script"] + }, + ["blocking"] +); diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..d3b6c87 --- /dev/null +++ b/manifest.json @@ -0,0 +1,19 @@ +{ + "manifest_version": 2, + "name": "burlesco", + "version": "1.0", + "description": "Remove transparentemente o paywall de grandes sites de notícia", + + "author": "Rodrigo Orem (rodorgas)", + + "background": { + "scripts": ["background.js"] + }, + "permissions": [ + "webRequest", + "webRequestBlocking", + + "*://*.estadao.com.br/", + "*://*.folha.uol.com.br/" + ] +}