From 39410184147159f176035b5c7345fcb29076525b Mon Sep 17 00:00:00 2001 From: CaioWzy Date: Tue, 8 May 2018 20:25:22 -0300 Subject: [PATCH] Adiciona suporte ao Pioneiro (#102) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Inclui options.html para desativação por site (#92) * Alguns sites estavam fora da lista, deixa em ordem alfabética * Modifica background.js para respeitar prefrências * Content script respeita opções, autoreload background Recarrega os listeners do background script ao mudar opções. * Remove código para debugging * Padroniza nome de variável * Bugfix: content não funcionava com opções nula * Adiciona suporte ao Pioneiro * Adiciona o Pioneiro ao arquivo de opções * Respeita a ordem alfabética * Permitir a desativação por site na webextension (#100) * Inclui options.html para desativação por site (#92) * Alguns sites estavam fora da lista, deixa em ordem alfabética * Modifica background.js para respeitar prefrências * Content script respeita opções, autoreload background Recarrega os listeners do background script ao mudar opções. * Remove código para debugging * Padroniza nome de variável * Bugfix: content não funcionava com opções nula --- webext/background.js | 5 +++++ webext/manifest.json | 3 ++- webext/options.html | 6 ++++++ webext/options.js | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/webext/background.js b/webext/background.js index 89cc8c4..ac6ba08 100644 --- a/webext/background.js +++ b/webext/background.js @@ -108,6 +108,11 @@ const BLOCKLIST = { '*://ogjs.infoglobo.com.br/*/js/controla-acesso-aux.js', ] }, + pioneiro: { + scriptBlocking: [ + '*://www.rbsonline.com.br/cdn/scripts/SLoader.js', + ] + }, quatrorodas: { scriptBlocking: [ '*://cdn.tinypass.com/api/tinypass.min.js', diff --git a/webext/manifest.json b/webext/manifest.json index ef16cba..85070e9 100644 --- a/webext/manifest.json +++ b/webext/manifest.json @@ -79,7 +79,8 @@ "*://tm.jsuol.com.br/*", "*://www.uol/*", "*://*.gramophone.co.uk/*", - "*://www.folhadelondrina.com.br/*/fivewall.js*" + "*://www.folhadelondrina.com.br/*/fivewall.js*", + "*://pioneiro.clicrbs.com.br/*" ], "applications": { diff --git a/webext/options.html b/webext/options.html index e66e234..00f72ee 100644 --- a/webext/options.html +++ b/webext/options.html @@ -127,6 +127,12 @@ O Globo +
+ +