mirror of
https://github.com/davegallant/rfd-redirect-stripper.git
synced 2025-08-06 08:43:40 +00:00
51 lines
1.5 KiB
Markdown
51 lines
1.5 KiB
Markdown
# rfd-redirect-stripper
|
|
|
|
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
|
|
|
|
### Firefox
|
|
|
|
The extension 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
|
|
|
|
To build the extension, run:
|
|
|
|
```sh
|
|
npm install
|
|
npm run build
|
|
```
|
|
|
|
## Updating redirects
|
|
|
|
The browser extension will update the list of redirects by periodically fetching the latest [redirects.json](redirects.json).
|
|
|
|
Open a pull request to this repo to update the redirects.
|
|
|
|
An easy way to test regex: [regex101.com](https://regex101.com/).
|
|
|
|
New config can be tested by pointing the config url of the extension to your own branch.
|
|
|
|

|
|
|
|
For example:
|
|
|
|
```text
|
|
https://raw.githubusercontent.com/davegallant/rfd-redirect-stripper/my-new-branch/redirects.json
|
|
```
|