Dave Gallant 4b35aa7246 Add calendar versioning to gomplate (#33)
* Use calendar versioning for the Tampermonkey script

* Apply automatic changes
2024-07-27 08:11:20 -04:00
2024-01-01 15:56:55 -05:00
2024-01-01 15:56:55 -05:00
2024-01-14 16:31:12 -05:00
2023-09-30 21:20:53 -04:00
2024-07-23 08:05:43 -04:00
2024-06-28 12:02:03 -04:00

rfd-redirect-stripper

Get rfd-redirect-stripper for Chrome Get rfd-redirect-stripper for Firefox

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?

This helps navigate around broken links when using certain adblockers.

Browser Extensions

Chrome

The extension is available here.

Firefox

The add-on is available here.

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.

image

For example:

https://raw.githubusercontent.com/davegallant/rfd-redirect-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 1.9 MiB
Languages
JavaScript 82.6%
CSS 12.5%
HTML 4.9%