18 Commits

Author SHA1 Message Date
renovate[bot]
ecd7a78b1c Update stefanzweifel/git-auto-commit-action action to v6 2025-09-06 01:42:33 +00:00
renovate[bot]
acb1c9c210 Update actions/setup-node action to v5 (#45)
* Update actions/setup-node action to v5

* Apply automatic changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-05 21:41:25 -04:00
renovate[bot]
1febba64bb Update actions/checkout action to v5 (#44)
* Update actions/checkout action to v5

* Apply automatic changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-15 21:35:51 -04:00
renovate[bot]
db08fe947e Update dependency node to v22 (#43)
* Update dependency node to v22

* Apply automatic changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-10 10:43:43 -04:00
renovate[bot]
2b9592c3a6 Update dependency web-ext to v8.8.0 (#41)
* Update dependency web-ext to v8.8.0

* Apply automatic changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-21 08:00:38 -04:00
renovate[bot]
24b085277f Update dependency web-ext to v8.7.1 (#39)
* Update dependency web-ext to v8.7.1

* Apply automatic changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-30 22:36:21 -04:00
renovate[bot]
d36b5a8109 Update dependency web-ext to v8.7.0 (#38)
* Update dependency web-ext to v8.7.0

* Apply automatic changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-23 21:55:42 -04:00
renovate[bot]
04b6233e01 Update dependency web-ext to v8.6.0 (#37)
* Update dependency web-ext to v8.6.0

* Apply automatic changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-25 21:49:14 -04:00
renovate[bot]
e5bf4ba2eb Update dependency web-ext to v8.5.0 (#35)
* Update dependency web-ext to v8.5.0

* Apply automatic changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-18 17:07:29 -04:00
davegallant
f70db48946 Apply automatic changes 2024-10-30 11:40:35 +00:00
Dave Gallant
b8f9f77e91 Rename to rfd-affiliate-stripper 2024-10-30 07:40:21 -04:00
Dave Gallant
8aef9b158c Update README.md 2024-10-25 23:19:49 -04:00
davegallant
0f08686d03 Apply automatic changes 2024-10-26 03:19:35 +00:00
Dave Gallant
4ff1a4dd65 Update README.md 2024-10-25 23:19:23 -04:00
Dave Gallant
558834eef3 Add icon-64x64.png 2024-10-09 07:43:20 -04:00
Dave Gallant
7975241b04 Remove subheadings to stores 2024-10-09 07:36:30 -04:00
davegallant
fbf4023b97 Apply automatic changes 2024-10-09 11:34:01 +00:00
Dave Gallant
4bc87302a0 Update icon 2024-10-09 07:32:49 -04:00
14 changed files with 420 additions and 924 deletions

View File

@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Install jq
run: sudo apt-get install jq
@@ -29,11 +29,11 @@ jobs:
with:
cmd: build
source: .
filename: "rfd-redirect-stripper-${{steps.vars.outputs.version}}-${{steps.vars.outputs.sha_short}}.xpi"
filename: "rfd-affiliate-stripper-${{steps.vars.outputs.version}}-${{steps.vars.outputs.sha_short}}.xpi"
ignoreFiles: '[ "package.json","package-lock.json","yarn.lock" ]'
- name: "Upload Artifact"
uses: actions/upload-artifact@v4
with:
name: "rfd-redirect-stripper-${{steps.vars.outputs.version}}-${{steps.vars.outputs.sha_short}}.xpi"
name: "rfd-affiliate-stripper-${{steps.vars.outputs.version}}-${{steps.vars.outputs.sha_short}}.xpi"
path: ${{ steps.web-ext-build.outputs.target }}

View File

@@ -12,10 +12,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 16
node-version: 22
cache: 'npm'
cache-dependency-path: package-lock.json
- run: npm ci

View File

@@ -14,7 +14,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Install gomplate
run: |
@@ -25,4 +25,4 @@ jobs:
- name: Run gomplate
run: gomplate < script.js.tmpl > script.js
- uses: stefanzweifel/git-auto-commit-action@v5
- uses: stefanzweifel/git-auto-commit-action@v6

View File

@@ -1,11 +1,11 @@
# rfd-redirect-stripper
# rfd-affiliate-stripper
<a href="https://chromewebstore.google.com/detail/rfd-redirect-stripper/npnhoaofocjfjcjlglaihlhkbgaokmpa?authuser=0&hl=en"><img src="https://user-images.githubusercontent.com/585534/107280622-91a8ea80-6a26-11eb-8d07-77c548b28665.png" alt="Get rfd-redirect-stripper for Chrome"></a>
<a href="https://addons.mozilla.org/en-US/firefox/addon/rfd-redirect-stripper/"><img src="https://user-images.githubusercontent.com/585534/107280546-7b9b2a00-6a26-11eb-8f9f-f95932f4bfec.png" alt="Get rfd-redirect-stripper for Firefox"></a>
<a href="https://addons.mozilla.org/en-US/firefox/addon/rfd-redirect-stripper/"><img src="https://user-images.githubusercontent.com/585534/107280546-7b9b2a00-6a26-11eb-8f9f-f95932f4bfec.png" alt="Get rfd-affiliate-stripper for Firefox"></a>
<a href="https://chromewebstore.google.com/detail/rfd-affiliate-stripper/nhjomcijhonhoggkckbjjfnjdcefbblo?authuser=0&hl=en"><img src="https://user-images.githubusercontent.com/585534/107280622-91a8ea80-6a26-11eb-8d07-77c548b28665.png" alt="Get rfd-affiliate-stripper for Chrome"></a>
Strips affiliate redirects from deal links posted on <https://forums.redflagdeals.com>.
Strips affiliate redirects from deal links posted on RFD.
On every page load, it transforms a link with tracking such as
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
@@ -21,17 +21,7 @@ https://www.amazon.ca/dp/B09YXY3DKN
This helps navigate around broken links when using certain adblockers.
## Browser Extensions
### Chrome
The extension is available [here](https://chromewebstore.google.com/detail/rfd-redirect-stripper/npnhoaofocjfjcjlglaihlhkbgaokmpa?authuser=0&hl=en).
### Firefox
The add-on is available [here](https://addons.mozilla.org/en-US/firefox/addon/rfd-redirect-stripper/).
### Building the extension
## Building the extension
To build the extension, run:
@@ -50,12 +40,10 @@ 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.
![image](https://user-images.githubusercontent.com/4519234/230703252-a7e09cf6-d0e5-4f54-8973-3b93d4a4a5a2.png)
For example:
```text
https://raw.githubusercontent.com/davegallant/rfd-redirect-stripper/my-new-branch/redirects.json
https://raw.githubusercontent.com/davegallant/rfd-affiliate-stripper/my-new-branch/redirects.json
```
## Tampermonkey Script

View File

@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8" />
<title>rfd-redirect-stripper</title>
<title>rfd-affiliate-stripper</title>
<link rel="stylesheet" href="../css/popup.css" />
</head>
<body>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
icon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

BIN
icons-64x64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -5,7 +5,7 @@ const saveButton = document.getElementById("save-button");
const resetButton = document.getElementById("reset-button");
const defaultConfig =
"https://raw.githubusercontent.com/davegallant/rfd-redirect-stripper/main/redirects.json";
"https://raw.githubusercontent.com/davegallant/rfd-affiliate-stripper/main/redirects.json";
chrome.storage.local.get("config").then((result) => {
const value = result.config;

View File

@@ -20,6 +20,6 @@ export function updateRedirects() {
export function setDefaultConfig() {
chrome.storage.local.set({
config:
"https://raw.githubusercontent.com/davegallant/rfd-redirect-stripper/main/redirects.json",
"https://raw.githubusercontent.com/davegallant/rfd-affiliate-stripper/main/redirects.json",
});
}

View File

@@ -1,8 +1,8 @@
{
"manifest_version": 3,
"name": "rfd-redirect-stripper",
"name": "rfd-affiliate-stripper",
"description": "Strip tracking redirects on rfd",
"version": "0.5.1",
"version": "0.5.3",
"content_scripts": [
{
"matches": [

1278
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,13 +1,13 @@
// ==UserScript==
// @name RedFlagDeals Redirect Stripper
// @name RedFlagDeals Affiliate Stripper
// @author Dave Gallant
// @description Strip redirect links on forums.redflagdeals.com
// @downloadURL https://raw.githubusercontent.com/davegallant/rfd-redirect-stripper/main/script.js
// @downloadURL https://raw.githubusercontent.com/davegallant/rfd-affiliate-stripper/main/script.js
// @grant none
// @match *://forums.redflagdeals.com/*
// @namespace http://tampermonkey.net/
// @updateURL https://raw.githubusercontent.com/davegallant/rfd-redirect-stripper/main/script.js
// @version 2024-09-21
// @updateURL https://raw.githubusercontent.com/davegallant/rfd-affiliate-stripper/main/script.js
// @version 2025-09-06
// ==/UserScript==
(function() {

View File

@@ -1,12 +1,12 @@
// ==UserScript==
// @name RedFlagDeals Redirect Stripper
// @name RedFlagDeals Affiliate Stripper
// @author Dave Gallant
// @description Strip redirect links on forums.redflagdeals.com
// @downloadURL https://raw.githubusercontent.com/davegallant/rfd-redirect-stripper/main/script.js
// @downloadURL https://raw.githubusercontent.com/davegallant/rfd-affiliate-stripper/main/script.js
// @grant none
// @match *://forums.redflagdeals.com/*
// @namespace http://tampermonkey.net/
// @updateURL https://raw.githubusercontent.com/davegallant/rfd-redirect-stripper/main/script.js
// @updateURL https://raw.githubusercontent.com/davegallant/rfd-affiliate-stripper/main/script.js
// @version {{ (time.Now).Format "2006-01-02" }}
// ==/UserScript==