mirror of
https://github.com/davegallant/rfd-redirect-stripper.git
synced 2026-01-14 14:14:11 +00:00
Compare commits
3 Commits
3d1c99f713
...
30e148bb1b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30e148bb1b | ||
|
|
7b95eb5b3c | ||
|
|
65776f1f51 |
39
README.md
39
README.md
@@ -1,26 +1,35 @@
|
|||||||
# rfd-redirect-stripper
|
# rfd-redirect-stripper
|
||||||
|
|
||||||
rfd-redirect-stripper strips affiliate redirects from deal links posted on https://forums.redflagdeals.com.
|
<a href="https://chromewebstore.google.com/detail/rfd-redirect-stripper/npnhoaofocjfjcjlglaihlhkbgaokmpa?authuser=0&hl=en"><img src="https://user-images.githubusercontent.com/585534/107280622-91a8ea80-6a26-11eb-8d07-77c548b28665.png" alt="Get rfd-redirect-stripper for Chrome"></a>
|
||||||
|
<a href="https://addons.mozilla.org/en-US/firefox/addon/rfd-redirect-stripper/"><img src="https://user-images.githubusercontent.com/585534/107280546-7b9b2a00-6a26-11eb-8f9f-f95932f4bfec.png" alt="Get rfd-redirect-stripper for Firefox"></a>
|
||||||
|
|
||||||
|
Strips affiliate redirects from deal links posted on <https://forums.redflagdeals.com>.
|
||||||
|
|
||||||
|
On every page load, it transforms a link with tracking such as
|
||||||
|
|
||||||
|
```
|
||||||
|
http://www.amazon.ca/gp/redirect.html?ie=UTF8&location=https%3A%2F%2Fwww.amazon.ca%2Fdp%2FB09YXY3DKN%3Fref%3Dcm_sw_r_apan_dp_NX4HJ8HZ3XX2YK1J900A%26ref_%3Dcm_sw_r_apan_dp_NX4HJ8HZ3XX2YK1J900A%26social_share%3Dcm_sw_r_apan_dp_NX4HJ8HZ3XX2YK1J900A%26starsLeft%3D1%26skipTwisterOG%3D1&tag=redflagdealsc-20&linkCode=ur2&camp=15121&creative=330641
|
||||||
|
```
|
||||||
|
|
||||||
|
into
|
||||||
|
|
||||||
|
```
|
||||||
|
https://www.amazon.ca/dp/B09YXY3DKN
|
||||||
|
```
|
||||||
|
|
||||||
## 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 [here](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 add-on is available [here](https://addons.mozilla.org/en-US/firefox/addon/rfd-redirect-stripper/).
|
||||||
|
|
||||||
Ensure that permissions are granted. If this is not done, the extension will not have permission to execute.
|
|
||||||
|
|
||||||
<img width="712" alt="image" src="https://user-images.githubusercontent.com/4519234/231030083-5ff5156a-deec-4e4d-8f35-ebba84a24be8.png">
|
|
||||||
|
|
||||||
### Building the extension
|
### Building the extension
|
||||||
|
|
||||||
@@ -48,3 +57,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.
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user