Skip to content

Commit

Permalink
v1.5.0 - 2018-04-24
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornstar committed Apr 24, 2018
1 parent 21efa07 commit 9db074d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
14 changes: 9 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# Intercept Redirect

## 1.4.0
## v1.5.0 - 2018-04-24
- `disq.us` adds some extraneous data to the url, we need to strip it
- Add dates and `v` to changelog

## v1.4.0 - 2018-04-24
- Add `disq.us`

## 1.3.0
## v1.3.0 - 2018-04-23
- Add `news.url.google.com`

## 1.2.0
## v1.2.0 - 2018-04-22
- Reorganize list of sites so each site is listed once
- Add gitignore

## 1.1.0
## v1.1.0 - 2018-03-22
- Add plus.url.google.com
- Update CHANGELOG format

## 1.0.0
## v1.0.0 - 2018-03-13
- Initial Release
7 changes: 5 additions & 2 deletions background.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
const sites = {
'disq.us': {
pathname: 'url',
key: 'url'
key: 'url',
extra: function (s) {
return s.substring(0, s.lastIndexOf(':'));
}
},
'exit.sc': {
pathname: '',
Expand Down Expand Up @@ -69,7 +72,7 @@ chrome.webRequest.onBeforeRequest.addListener(function(request) {
return o;
}, {});

const redirectUrl = q[site.key];
const redirectUrl = q[site.key] && site.extra && site.extra(q[site.key]);

if (redirectUrl) {
return { redirectUrl };
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"https://vk.com/",
"https://www.youtube.com/"
],
"version": "1.4.0"
"version": "1.5.0"
}

0 comments on commit 9db074d

Please sign in to comment.