From c36b8189069f00bdbc1dc1701d38efffc5eb2ec8 Mon Sep 17 00:00:00 2001 From: Rodrigo Orem Date: Thu, 17 Aug 2017 23:11:27 -0300 Subject: [PATCH] =?UTF-8?q?Prepara=20vers=C3=A3o=20para=20o=20chrome=20em?= =?UTF-8?q?=20build.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 2 +- src/manifest-chrome.json | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 src/manifest-chrome.json diff --git a/build.sh b/build.sh index 226acdf..b29e530 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #!/bin/bash DIST="dist" -BROWSERS=("firefox" "opera") +BROWSERS=("firefox" "opera" "chrome") for i in "${BROWSERS[@]}" diff --git a/src/manifest-chrome.json b/src/manifest-chrome.json new file mode 100644 index 0000000..af369ed --- /dev/null +++ b/src/manifest-chrome.json @@ -0,0 +1,33 @@ +{ + "manifest_version": 2, + "name": "burlesco", + "version": "2.16", + "description": "Leia notícias sem ser assinante, burle o paywall", + "homepage_url": "http://burles.co", + "author": "rodorgas", + + "icons": { + "128": "icone.png" + }, + + "background": { + "scripts": ["background.js"] + }, + + "content_scripts": [{ + "js": ["content.js"], + "run_at": "document_idle", + "matches": [ + "*://*.oglobo.globo.com/*", + "*://www.economist.com/*", + "*://foreignpolicy.com/*" + ] + }], + + "permissions": [ + "webRequest", + "webRequestBlocking", + "cookies", + "" + ] +}