Remove scripting permission and host_permissions and publish to chrome web store (#31)

* Remove scripting permission

* Remove host permissions

* Add chrome web store link
This commit is contained in:
Dave Gallant
2024-07-23 07:39:29 -04:00
committed by GitHub
parent 3d1c99f713
commit 65776f1f51
2 changed files with 25 additions and 13 deletions

View File

@@ -1,19 +1,17 @@
# rfd-redirect-stripper # rfd-redirect-stripper
rfd-redirect-stripper strips affiliate redirects from deal links posted on https://forums.redflagdeals.com. rfd-redirect-stripper strips affiliate redirects from deal links posted on <https://forums.redflagdeals.com>.
## Why? ## Why?
This helps navigate around broken links when using certain adblockers. This helps navigate around broken links when using certain adblockers.
## Tampermonkey Script
This was originally a [Tampermonkey](https://www.tampermonkey.net/) userscript before evolving into a browser extension.
Copy [script.js](./script.js) into Tampermonkey.
## Browser Extensions ## Browser Extensions
### Chrome
The extension is available on [the chrome web store](https://chromewebstore.google.com/detail/rfd-redirect-stripper/npnhoaofocjfjcjlglaihlhkbgaokmpa?authuser=0&hl=en).
### Firefox ### Firefox
The extension is available [here](https://addons.mozilla.org/en-US/firefox/addon/rfd-redirect-stripper/). The extension is available [here](https://addons.mozilla.org/en-US/firefox/addon/rfd-redirect-stripper/).
@@ -48,3 +46,9 @@ For example:
```text ```text
https://raw.githubusercontent.com/davegallant/rfd-redirect-stripper/my-new-branch/redirects.json https://raw.githubusercontent.com/davegallant/rfd-redirect-stripper/my-new-branch/redirects.json
``` ```
## Tampermonkey Script
This was originally a [Tampermonkey](https://www.tampermonkey.net/) userscript before evolving into a browser extension.
To use as a tampermonkey script, copy [script.js](./script.js) into Tampermonkey.

View File

@@ -2,11 +2,15 @@
"manifest_version": 3, "manifest_version": 3,
"name": "rfd-redirect-stripper", "name": "rfd-redirect-stripper",
"description": "Strip tracking redirects on rfd", "description": "Strip tracking redirects on rfd",
"version": "0.4", "version": "0.5.1",
"content_scripts": [ "content_scripts": [
{ {
"matches": ["*://forums.redflagdeals.com/*"], "matches": [
"js": ["js/content.js"], "*://forums.redflagdeals.com/*"
],
"js": [
"js/content.js"
],
"run_at": "document_end" "run_at": "document_end"
} }
], ],
@@ -15,12 +19,16 @@
"default_popup": "html/popup.html" "default_popup": "html/popup.html"
}, },
"background": { "background": {
"scripts": ["js/background.js"], "scripts": [
"js/background.js"
],
"service_worker": "js/background.js", "service_worker": "js/background.js",
"type": "module" "type": "module"
}, },
"permissions": ["scripting", "storage", "alarms"], "permissions": [
"host_permissions": ["*://forums.redflagdeals.com/*"], "storage",
"alarms"
],
"browser_specific_settings": { "browser_specific_settings": {
"gecko": { "gecko": {
"id": "davegallant@gmail.com", "id": "davegallant@gmail.com",