dependabot[bot] 45c6a1083d Bump tmp and web-ext (#48)
Bumps [tmp](https://github.com/raszi/node-tmp) to 0.2.5 and updates ancestor dependency [web-ext](https://github.com/mozilla/web-ext). These dependencies need to be updated together.


Updates `tmp` from 0.2.3 to 0.2.5
- [Changelog](https://github.com/raszi/node-tmp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/raszi/node-tmp/compare/v0.2.3...v0.2.5)

Updates `web-ext` from 8.8.0 to 8.10.0
- [Release notes](https://github.com/mozilla/web-ext/releases)
- [Commits](https://github.com/mozilla/web-ext/compare/8.8.0...8.10.0)

---
updated-dependencies:
- dependency-name: tmp
  dependency-version: 0.2.5
  dependency-type: indirect
- dependency-name: web-ext
  dependency-version: 8.10.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-12 23:59:21 -04:00
2024-10-30 07:40:21 -04:00
2024-10-30 07:40:21 -04:00
2024-10-09 07:32:49 -04:00
2024-10-09 07:32:49 -04:00
2024-10-09 07:43:20 -04:00
2023-09-30 21:20:53 -04:00
2024-10-30 07:40:21 -04:00
2025-10-12 23:59:21 -04:00
2025-10-12 23:59:21 -04:00
2024-10-30 07:40:21 -04:00
2024-06-28 12:02:03 -04:00
2025-10-13 03:25:40 +00: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.

Description
a browser extension that strips affiliate redirects on redflagdeals.com
Readme MIT 2.5 MiB
Languages
JavaScript 82.6%
CSS 12.5%
HTML 4.9%