a browser extension that strips affiliate redirects on RFD
  • JavaScript 90.4%
  • CSS 3.9%
  • Go Template 2.5%
  • Nix 2%
  • HTML 1.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
dependabot[bot] bebc90798d
Bump brace-expansion from 1.1.11 to 1.1.18 (#83)
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.11 to 1.1.18.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.18)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.18
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-07 21:10:15 -04:00
.github/workflows Update actions/checkout action to v7 (#73) 2026-07-18 14:45:48 -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 fix(strip): block javascript: hrefs and de-duplicate strip logic 2026-07-22 22:44:41 -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 docs: update CHANGELOG.md for 0.7.0 2026-07-22 23:30:56 -04:00
flake.lock chore(nix): update flake.lock (nixpkgs 2026-03-10 -> 2026-07-19) 2026-07-22 22:49:19 -04:00
flake.nix fix(nix): pin nodejs_24, nodejs_25 removed upstream (EOL) 2026-07-22 22:49:19 -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.7.0 2026-07-22 23:30:56 -04:00
package-lock.json Bump brace-expansion from 1.1.11 to 1.1.18 (#83) 2026-08-07 21:10:15 -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 feat(redirects): add njih.net, subId1 cleanup, and Amazon ref_/social_share rules 2026-07-22 23:28:13 -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-08-08 00:28:56 +00:00
script.js.tmpl fix(strip): block javascript: hrefs and de-duplicate strip logic 2026-07-22 22:44:41 -04:00
stripRedirect.test.js feat(redirects): add njih.net, subId1 cleanup, and Amazon ref_/social_share rules 2026-07-22 23:28:13 -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.