Skip to content

Commit

Permalink
v3.7.0 - 2018-08-19
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornstar committed Aug 19, 2018
1 parent f49b88a commit b7b5420
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Intercept Redirect

## v3.7.0 - 2018-08-19
- Add `curseforge.com`'s linkout

## v3.6.2 - 2018-06-22
- [CircleCI] Restore badge, they [rolled back the badge change](https://discuss.circleci.com/t/add-way-to-clear-1-0-is-sunsetting-on-status-badge/23085/13)

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": "3.6.2",
"version": "3.7.0",
"description": "Skip tracking redirects that serve no purpose other than to waste your valuable time.",
"main": "webextension/index.js",
"dependencies": {},
Expand Down
3 changes: 3 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const { analyzeURL, subdomain } = webExtension;

const urls = [
'https://bjornstar.digidip.net/visit?url=https%3A%2F%2Fbjornstar.com%2Fintercept-redirect',
'https://wow.curseforge.com/linkout?remoteUrl=https%3A%2F%2Fbjornstar.com%2Fintercept-redirect',
'https://disq.us/url?url=https%3A%2F%2Fbjornstar.com%2Fintercept-redirect%3AzjHJ9CS7YTS6D6-FWtZRTF8swk4',
'https://exit.sc/?url=https%3A%2F%2Fbjornstar.com%2Fintercept-redirect',
'https://l.facebook.com/l.php?u=https%3A%2F%2Fbjornstar.com%2Fintercept-redirect',
Expand Down Expand Up @@ -134,10 +135,12 @@ describe('Subdomain', function () {
it(`For supported domains returns *.domain`, function () {
assert.equal(subdomain('foobar.digidip.net'), '*.digidip.net');
assert.equal(subdomain('foo.bar.digidip.net'), '*.digidip.net');
assert.equal(subdomain('wow.curseforge.com'), '*.curseforge.com');
});

it('Does not apply to domain host', function () {
assert.equal(subdomain('digidip.net'), 'digidip.net');
assert.equal(subdomain('curseforge.com'), 'curseforge.com');
});

it('Returns host when not supported', function () {
Expand Down
7 changes: 7 additions & 0 deletions webextension/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ const googlePathnames = {
};

const sites = {
// 2018-08-19 -- https://wow.curseforge.com/linkout?remoteUrl=http%253a%252f%252fi.imgur.com%252f1AjSgEH.png
'*.curseforge.com': {
pathnames: {
'/linkout': ['remoteUrl']
}
},
'*.digidip.net': {
pathnames: {
'/visit': ['url']
Expand Down Expand Up @@ -94,6 +100,7 @@ const sites = {
};

const domains = [
'curseforge.com',
'digidip.net'
];

Expand Down
3 changes: 2 additions & 1 deletion webextension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"permissions": [
"webRequest",
"webRequestBlocking",
"*://*.curseforge.com/",
"*://*.digidip.net/",
"*://disq.us/",
"*://exit.sc/",
Expand All @@ -26,5 +27,5 @@
"*://workable.com/",
"*://www.youtube.com/"
],
"version": "3.6.2"
"version": "3.7.0"
}

0 comments on commit b7b5420

Please sign in to comment.