From 156d8ac9852bf94935cd9947abed360e739f98e6 Mon Sep 17 00:00:00 2001 From: "karl.hudgell" Date: Wed, 14 Apr 2021 13:53:01 +0100 Subject: [PATCH] initial commit --- background.js | 6 ++++++ manifest.json | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 background.js create mode 100644 manifest.json diff --git a/background.js b/background.js new file mode 100644 index 0000000..aee2954 --- /dev/null +++ b/background.js @@ -0,0 +1,6 @@ +chrome.webRequest.onBeforeRequest.addListener(function (d) { + return { cancel: true }; +}, { + urls: ["https://www.basingstokegazette.co.uk/resources/shared/responsive-sync/*"] +}, + ["blocking"]); \ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..e4eca16 --- /dev/null +++ b/manifest.json @@ -0,0 +1,16 @@ +{ + "manifest_version": 2, + "name": "Basingstoke Gazette UnBlock", + "description": "Bypass Basingstoke Gazette Paywall", + "version": "1.0", + "background": { + "scripts": [ + "background.js" + ] + }, + "permissions": [ + "webRequest", + "*://www.basingstokegazette.co.uk/*", + "webRequestBlocking" + ] +} \ No newline at end of file