a browser extension that strips affiliate redirects on RFD
  • JavaScript 87.7%
  • CSS 4.5%
  • Go Template 4.2%
  • Nix 2.2%
  • HTML 1.4%
Find a file
2026-06-30 01:13:55 +00:00
.github/workflows Update kewisch/action-web-ext action to v2 (#68) 2026-04-24 18:48:35 -04:00
css Remove need for storage permission (#63) 2026-03-12 21:42:01 -04:00
html Remove need for storage permission (#63) 2026-03-12 21:42:01 -04:00
js Remove need for storage permission (#63) 2026-03-12 21:42:01 -04:00
.envrc Update manifest with new icons 2026-03-12 19:55:44 -04:00
.gitignore Update manifest with new icons 2026-03-12 19:55:44 -04:00
CHANGELOG.md Update CHANGELOG.md 2026-03-12 21:50:26 -04:00
flake.lock Update manifest with new icons 2026-03-12 19:55:44 -04:00
flake.nix Update manifest with new icons 2026-03-12 19:55:44 -04:00
icon-16x16.png Add icons to manifest 2026-03-12 19:33:21 -04:00
icon-32x32.png Add icons to manifest 2026-03-12 19:33:21 -04:00
icon-48x48.png Add icons to manifest 2026-03-12 19:33:21 -04:00
icon-64x64.png Add icons to manifest 2026-03-12 19:33:21 -04:00
icon-128x128.png Add icons to manifest 2026-03-12 19:33:21 -04:00
icon.png Update icon 2024-10-09 07:32:49 -04:00
LICENSE Create LICENSE 2023-09-30 21:20:53 -04:00
manifest.json Bump to 0.6.1 to avoid release immutability issue 2026-03-12 21:46:51 -04:00
package-lock.json Bump js-yaml from 4.1.1 to 4.3.0 (#75) 2026-06-29 21:13:46 -04:00
package.json Bump uuid and web-ext (#70) 2026-05-22 07:31:05 -04:00
README.md Rename to rfd-affiliate-stripper 2024-10-30 07:40:21 -04:00
redirects.json Remove need for storage permission (#63) 2026-03-12 21:42:01 -04:00
renovate.json Change Renovate schedule to after 5pm on Friday 2026-04-19 08:01:06 -04:00
script.js Apply automatic changes 2026-06-30 01:13:55 +00:00
script.js.tmpl Rename to rfd-affiliate-stripper 2024-10-30 07:40:21 -04:00
stripRedirect.test.js Remove need for storage permission (#63) 2026-03-12 21:42:01 -04:00

rfd-affiliate-stripper

Get rfd-affiliate-stripper for Firefox Get rfd-affiliate-stripper for Chrome

Strips affiliate redirects from deal links posted on RFD.

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?

This helps navigate around broken links when using certain adblockers.

Building the extension

To build the extension, run:

npm install
npm run build

Updating redirects

The browser extension will update the list of redirects by periodically fetching the latest redirects.json.

Open a pull request to this repo to update the redirects.

An easy way to test regex: regex101.com.

New config can be tested by pointing the config url of the extension to your own branch.

For example:

https://raw.githubusercontent.com/davegallant/rfd-affiliate-stripper/my-new-branch/redirects.json

Tampermonkey Script

This was originally a Tampermonkey userscript before evolving into a browser extension.

To use as a tampermonkey script, copy script.js into Tampermonkey.