diff --git a/background.js b/background.js index aee2954..bcb87fa 100644 --- a/background.js +++ b/background.js @@ -3,4 +3,5 @@ chrome.webRequest.onBeforeRequest.addListener(function (d) { }, { urls: ["https://www.basingstokegazette.co.uk/resources/shared/responsive-sync/*"] }, - ["blocking"]); \ No newline at end of file + ["blocking"] +); \ No newline at end of file diff --git a/basingstoke_gazette_new.gif b/basingstoke_gazette_new.gif new file mode 100644 index 0000000..abc113c Binary files /dev/null and b/basingstoke_gazette_new.gif differ diff --git a/content.js b/content.js new file mode 100644 index 0000000..6f5103a --- /dev/null +++ b/content.js @@ -0,0 +1,3 @@ +var images = document.getElementsByTagName('img'); + +images[2].src = 'https://i.ibb.co/cQQBZM8/basingstoke-gazette-new.gif' \ No newline at end of file diff --git a/manifest.json b/manifest.json index e4eca16..418cf0a 100644 --- a/manifest.json +++ b/manifest.json @@ -3,6 +3,10 @@ "name": "Basingstoke Gazette UnBlock", "description": "Bypass Basingstoke Gazette Paywall", "version": "1.0", + "browser_action": { + "default_ison": "icon.png", + "default_popup": "popup.html" + }, "background": { "scripts": [ "background.js" @@ -12,5 +16,9 @@ "webRequest", "*://www.basingstokegazette.co.uk/*", "webRequestBlocking" - ] + ], + "content_scripts": [{ + "js": ["content.js"], + "matches": ["https://www.basingstokegazette.co.uk/*"] + }] } \ No newline at end of file