mirror of
https://github.com/davegallant/rfd-redirect-stripper.git
synced 2025-10-04 17:26:00 +00:00
Compare commits
4 Commits
c46cb885bc
...
0741662660
Author | SHA1 | Date | |
---|---|---|---|
|
0741662660 | ||
|
4f8daa5842 | ||
|
c1c9ad14a4 | ||
|
cea44bc9b6 |
16
.github/workflows/tamper-monkey.yaml
vendored
16
.github/workflows/tamper-monkey.yaml
vendored
@@ -1,16 +1,20 @@
|
|||||||
name: "Generate Tampermonkey script"
|
name: "Generate Tampermonkey script"
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
gomplate:
|
gomplate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
ref: ${{ github.event.pull_request.head.ref }}
|
|
||||||
|
|
||||||
- name: Install gomplate
|
- name: Install gomplate
|
||||||
run: |
|
run: |
|
||||||
@@ -21,10 +25,4 @@ jobs:
|
|||||||
- name: Run gomplate
|
- name: Run gomplate
|
||||||
run: gomplate < script.js.tmpl > script.js
|
run: gomplate < script.js.tmpl > script.js
|
||||||
|
|
||||||
- name: Commit and push changes
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
run: |
|
|
||||||
git config --global user.name "GitHub Actions"
|
|
||||||
git config --global user.email "actions@users.noreply.github.com"
|
|
||||||
git add .
|
|
||||||
git commit -m "Update script.js using gomplate" || true
|
|
||||||
git push
|
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "Amazon",
|
"name": "Amazon",
|
||||||
"pattern": "www.amazon.ca/gp/redirect.html\\?ie=UTF8&location=(?<baseUrl>.*?)(&|ref%3D|%3F)"
|
"pattern": ".*amazon\\.(?:ca|com)\/gp\/redirect\\.html\\?ie=UTF8&location=(?<baseUrl>.*?)(?:&|ref%3D|%3F)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Best Buy",
|
"name": "Best Buy",
|
||||||
"pattern": "bestbuyca.(.*).net(.*)\\?u=(?<baseUrl>.*)"
|
"pattern": "bestbuyca.(.*).net(.*)\\?u=(?<baseUrl>.*)\\?.*"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "HP",
|
"name": "HP",
|
||||||
@@ -28,8 +28,8 @@
|
|||||||
"pattern": "go.redirectingat.com(.*)?url=(?<baseUrl>.*)"
|
"pattern": "go.redirectingat.com(.*)?url=(?<baseUrl>.*)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "adidas-canada",
|
"name": "sjv.io",
|
||||||
"pattern": "adidas-canada.sjv.io(.*)?u=(?<baseUrl>.*)"
|
"pattern": ".*sjv\\.io.*\\?u=(?<baseUrl>.*)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "canadiantire",
|
"name": "canadiantire",
|
||||||
@@ -78,5 +78,45 @@
|
|||||||
{
|
{
|
||||||
"name": "staples",
|
"name": "staples",
|
||||||
"pattern": ".*staplescanada\\.4u8mqw\\.net.+\\?u=(?<baseUrl>.*)"
|
"pattern": ".*staplescanada\\.4u8mqw\\.net.+\\?u=(?<baseUrl>.*)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pjtra.com",
|
||||||
|
"pattern": ".*pjtra\\.com.*\\?url=(?<baseUrl>.*)&sid.*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pjatr.com",
|
||||||
|
"pattern": ".*pjatr\\.com.*\\?url=(?<baseUrl>.*)&sid.*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pntra.com",
|
||||||
|
"pattern": ".*pntra\\.com.*\\?url=(?<baseUrl>.*)&sid.*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pntrs.com",
|
||||||
|
"pattern": ".*pntrs\\.com.*\\?url=(?<baseUrl>.*)&sid.*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pntrac.com",
|
||||||
|
"pattern": ".*pntrac\\.com.*\\?url=(?<baseUrl>.*)&sid.*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "shareasale.com",
|
||||||
|
"pattern": ".*shareasale\\.com.*&urllink=(?<baseUrl>.*)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "mkr3.net",
|
||||||
|
"pattern": ".*mkr3\\.net.*\\?u=(?<baseUrl>.*)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "fintelconnect.com",
|
||||||
|
"pattern": ".*fintelconnect\\.com.*\\?u=(?<baseUrl>.*)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "c2ukkg.net",
|
||||||
|
"pattern": ".*c2ukkg\\.net.*\\?u=(?<baseUrl>.*)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "dodxnr.net",
|
||||||
|
"pattern": ".*dodxnr\\.net.*\\?u=(?<baseUrl>.*)"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
48
script.js
48
script.js
@@ -18,11 +18,11 @@
|
|||||||
const REDIRECT_REGEX = [
|
const REDIRECT_REGEX = [
|
||||||
{
|
{
|
||||||
"name": "Amazon",
|
"name": "Amazon",
|
||||||
"pattern": "www.amazon.ca/gp/redirect.html\\?ie=UTF8&location=(?<baseUrl>.*?)(&|ref%3D|%3F)"
|
"pattern": ".*amazon\\.(?:ca|com)\/gp\/redirect\\.html\\?ie=UTF8&location=(?<baseUrl>.*?)(?:&|ref%3D|%3F)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Best Buy",
|
"name": "Best Buy",
|
||||||
"pattern": "bestbuyca.(.*).net(.*)\\?u=(?<baseUrl>.*)"
|
"pattern": "bestbuyca.(.*).net(.*)\\?u=(?<baseUrl>.*)\\?.*"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "HP",
|
"name": "HP",
|
||||||
@@ -45,8 +45,8 @@
|
|||||||
"pattern": "go.redirectingat.com(.*)?url=(?<baseUrl>.*)"
|
"pattern": "go.redirectingat.com(.*)?url=(?<baseUrl>.*)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "adidas-canada",
|
"name": "sjv.io",
|
||||||
"pattern": "adidas-canada.sjv.io(.*)?u=(?<baseUrl>.*)"
|
"pattern": ".*sjv\\.io.*\\?u=(?<baseUrl>.*)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "canadiantire",
|
"name": "canadiantire",
|
||||||
@@ -95,6 +95,46 @@
|
|||||||
{
|
{
|
||||||
"name": "staples",
|
"name": "staples",
|
||||||
"pattern": ".*staplescanada\\.4u8mqw\\.net.+\\?u=(?<baseUrl>.*)"
|
"pattern": ".*staplescanada\\.4u8mqw\\.net.+\\?u=(?<baseUrl>.*)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pjtra.com",
|
||||||
|
"pattern": ".*pjtra\\.com.*\\?url=(?<baseUrl>.*)&sid.*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pjatr.com",
|
||||||
|
"pattern": ".*pjatr\\.com.*\\?url=(?<baseUrl>.*)&sid.*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pntra.com",
|
||||||
|
"pattern": ".*pntra\\.com.*\\?url=(?<baseUrl>.*)&sid.*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pntrs.com",
|
||||||
|
"pattern": ".*pntrs\\.com.*\\?url=(?<baseUrl>.*)&sid.*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pntrac.com",
|
||||||
|
"pattern": ".*pntrac\\.com.*\\?url=(?<baseUrl>.*)&sid.*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "shareasale.com",
|
||||||
|
"pattern": ".*shareasale\\.com.*&urllink=(?<baseUrl>.*)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "mkr3.net",
|
||||||
|
"pattern": ".*mkr3\\.net.*\\?u=(?<baseUrl>.*)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "fintelconnect.com",
|
||||||
|
"pattern": ".*fintelconnect\\.com.*\\?u=(?<baseUrl>.*)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "c2ukkg.net",
|
||||||
|
"pattern": ".*c2ukkg\\.net.*\\?u=(?<baseUrl>.*)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "dodxnr.net",
|
||||||
|
"pattern": ".*dodxnr\\.net.*\\?u=(?<baseUrl>.*)"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
;
|
;
|
||||||
|
Reference in New Issue
Block a user