mirror of
https://github.com/davegallant/rfd-redirect-stripper.git
synced 2025-10-11 11:36:02 +00:00
Compare commits
11 Commits
8aef9b158c
...
renovate/s
Author | SHA1 | Date | |
---|---|---|---|
|
ecd7a78b1c | ||
|
acb1c9c210 | ||
|
1febba64bb | ||
|
db08fe947e | ||
|
2b9592c3a6 | ||
|
24b085277f | ||
|
d36b5a8109 | ||
|
04b6233e01 | ||
|
e5bf4ba2eb | ||
|
f70db48946 | ||
|
b8f9f77e91 |
6
.github/workflows/build.yaml
vendored
6
.github/workflows/build.yaml
vendored
@@ -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 }}
|
||||
|
6
.github/workflows/lint.yaml
vendored
6
.github/workflows/lint.yaml
vendored
@@ -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
|
||||
|
4
.github/workflows/tamper-monkey.yaml
vendored
4
.github/workflows/tamper-monkey.yaml
vendored
@@ -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
|
||||
|
12
README.md
12
README.md
@@ -1,11 +1,9 @@
|
||||
# rfd-redirect-stripper
|
||||
# rfd-affiliate-stripper
|
||||
|
||||
> ⚠️ Unfortunately Google decided to remove this extension from the Chrome Web Store. It can still be built from source and added to chrome.
|
||||
<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>
|
||||
|
||||
<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://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>
|
||||
|
||||
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
|
||||
|
||||
@@ -45,7 +43,7 @@ New config can be tested by pointing the config url of the extension to your own
|
||||
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
|
||||
|
@@ -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>
|
||||
|
@@ -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;
|
||||
|
@@ -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",
|
||||
});
|
||||
}
|
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "rfd-redirect-stripper",
|
||||
"name": "rfd-affiliate-stripper",
|
||||
"description": "Strip tracking redirects on rfd",
|
||||
"version": "0.5.2",
|
||||
"version": "0.5.3",
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches": [
|
||||
|
1278
package-lock.json
generated
1278
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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-10-26
|
||||
// @updateURL https://raw.githubusercontent.com/davegallant/rfd-affiliate-stripper/main/script.js
|
||||
// @version 2025-09-06
|
||||
// ==/UserScript==
|
||||
|
||||
(function() {
|
||||
|
@@ -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==
|
||||
|
||||
|
Reference in New Issue
Block a user