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 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?
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
### Chrome
The extension is available on [the chrome web store](https://chromewebstore.google.com/detail/rfd-redirect-stripper/npnhoaofocjfjcjlglaihlhkbgaokmpa?authuser=0&hl=en).
### Firefox
The extension is available [here](https://addons.mozilla.org/en-US/firefox/addon/rfd-redirect-stripper/).
@@ -48,3 +46,9 @@ For example:
```text
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,
"name": "rfd-redirect-stripper",
"description": "Strip tracking redirects on rfd",
"version": "0.4",
"version": "0.5.1",
"content_scripts": [
{
"matches": ["*://forums.redflagdeals.com/*"],
"js": ["js/content.js"],
"matches": [
"*://forums.redflagdeals.com/*"
],
"js": [
"js/content.js"
],
"run_at": "document_end"
}
],
@@ -15,12 +19,16 @@
"default_popup": "html/popup.html"
},
"background": {
"scripts": ["js/background.js"],
"scripts": [
"js/background.js"
],
"service_worker": "js/background.js",
"type": "module"
},
"permissions": ["scripting", "storage", "alarms"],
"host_permissions": ["*://forums.redflagdeals.com/*"],
"permissions": [
"storage",
"alarms"
],
"browser_specific_settings": {
"gecko": {
"id": "davegallant@gmail.com",