Skip to content

Commit

Permalink
v8.10.0 - 2023-02-24
Browse files Browse the repository at this point in the history
- Add `linkedin.com/redir/redirect` (Fixes #50)
- Add `prod.outgoing.prod.webservices.mozgcp.net/v1/` (Fixes #51)
- Add `statics.teams.cdn.office.net/evergreen-assets/safelinks/1/atp-safelinks` (Fixes #49)
  • Loading branch information
bjornstar committed Feb 24, 2023
1 parent 193098b commit eed33fd
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Intercept Redirect

## v8.10.0 - 2023-02-24
- Add `linkedin.com/redir/redirect` (Fixes #50)
- Add `prod.outgoing.prod.webservices.mozgcp.net/v1/` (Fixes #51)
- Add `statics.teams.cdn.office.net/evergreen-assets/safelinks/1/atp-safelinks` (Fixes #49)

## v8.9.0 - 2023-02-17
- Handle all subdomains of `safelinks.protection.outlook.com`
- Improve logic for handling subdomains
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ This extension does not modify any of the pages that you visit. Its sole purpose
- www.linkedin.com
- l.messenger.com
- outgoing.prod.mozaws.net
- prod.outgoing.prod.webservices.mozgcp.net
- static.teams.cdn.office.net
- onlyfans.com
- *.safelinks.protection.outlook.com
- slack-redir.net
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bjornstar/intercept-redirect",
"version": "8.9.0",
"version": "8.10.0",
"description": "Skip tracking redirects that serve no purpose other than to waste your valuable time.",
"main": "webextension/index.js",
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,14 @@ const urls = [
{ url: `https://r.klar.na/?to=${encodedURL}` },
{ url: `https://www.kraken.com/redirect?url=${encodedURL}` },
{ url: `https://t.lever-analytics.com/email-link?dest=${encodedURL}` },
{ url: `https://www.linkedin.com/redir/redirect?url=${encodedURL}` },
{ url: `https://www.linkedin.com/safety/go?url=${encodedURL}` },
{ url: `https://l.messenger.com/l.php?u=${encodedURL}` },
{ url: `https://outgoing.prod.mozaws.net/v1/08aa3089688d4b6ec460e6c402e78eba305c36fb81287197e4ae3f5a5c60f22d/${encodedURL}` },
// https://github.com/bjornstar/intercept-redirect/issues/22
{ url: 'https://outgoing.prod.mozaws.net/v1/08aa3089688d4b6ec460e6c402e78eba305c36fb81287197e4ae3f5a5c60f22d/https%3A//bjornstar.com/intercept-redirect' },
{ url: `https://prod.outgoing.prod.webservices.mozgcp.net/v1/7176181ce0be365332182027434f1c97339ca065a8806d89da8aa656385edcee/${encodedURL}` },
{ url: `https://static.teams.cdn.office.net/evergreen-assets/safelinks/1/atp-safelinks.html?url=${encodedURL}` },
{ url: `https://onlyfans.com/away?url=${encodedURL}` },
{ url: `https://eur03.safelinks.protection.outlook.com/?url=${encodedURL}` },
{ url: `https://gcc01.safelinks.protection.outlook.com/?url=${encodedURL}` },
Expand Down
10 changes: 10 additions & 0 deletions webextension/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ const sites = {
'/email-link': searchParam('dest')
},
// 2022-06-01 - https://www.linkedin.com/safety/go?url=https%3A%2F%2Fchoco.com%2Fus%2Fstories%2Flife-at-choco%2Fengineering-managers
// 2023-02-24 - https://www.linkedin.com/redir/redirect?url=https%3A%2F%2Fwww%2Epopdaily%2Ecom%2Etw%2F&urlhash=KIy6&trk=about_website
'www.linkedin.com': {
'/redir/redirect': searchParam('url'),
'/safety/go': searchParam('url')
},
'l.messenger.com': {
Expand All @@ -134,6 +136,14 @@ const sites = {
'outgoing.prod.mozaws.net': {
'/v1/': ({ pathname }) => decode(pickAfterHash(pathname))
},
// 2023-02-24 - https://prod.outgoing.prod.webservices.mozgcp.net/v1/7176181ce0be365332182027434f1c97339ca065a8806d89da8aa656385edcee/https%3A//intercept-redirect.github.bjornstar.com
'prod.outgoing.prod.webservices.mozgcp.net': {
'/v1/': ({ pathname }) => decode(pickAfterHash(pathname))
},
// 2023-02-24 - https://statics.teams.cdn.office.net/evergreen-assets/safelinks/1/atp-safelinks.html?url=https%3A%2F%2Fnoise.getoto.net
'static.teams.cdn.office.net': {
'/evergreen-assets/safelinks/1/atp-safelinks.html': searchParam('url')
},
'onlyfans.com': {
'/away': searchParam('url')
},
Expand Down
5 changes: 4 additions & 1 deletion webextension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@
"*://r.klar.na/",
"*://www.kraken.com/redirect",
"*://t.lever-analytics.com/email-link",
"*://www.linkedin.com/redir/redirect",
"*://www.linkedin.com/safety/go",
"*://l.messenger.com/l.php",
"*://outgoing.prod.mozaws.net/v1/*",
"*://prod.outgoing.prod.webservices.mozgcp.net/v1/*",
"*://static.teams.cdn.office.net/evergreen-assets/safelinks/1/atp-safelinks.html",
"*://onlyfans.com/away",
"*://*.safelinks.protection.outlook.com/",
"*://slack-redir.net/link",
Expand All @@ -63,5 +66,5 @@
"*://workable.com/nr",
"*://www.youtube.com/redirect"
],
"version": "8.9.0"
"version": "8.10.0"
}

0 comments on commit eed33fd

Please sign in to comment.