Skip to content

Commit

Permalink
Added useless-params.js
Browse files Browse the repository at this point in the history
  • Loading branch information
adokseo committed May 3, 2021
1 parent a2cfa2b commit 9c4f6f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ function cacheHistory() {
var decoded_url = item.url;
}

decoded_url = decoded_url.replace(USELESS_PARAMS_REGEX, '');

var url_parts = decoded_url.match(URL_PARTS_REGEX);

if (url_parts) {
Expand Down
1 change: 1 addition & 0 deletions data/useless-params.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
USELESS_PARAMS_REGEX = /[?&](ei)=[^&]+/g;
1 change: 1 addition & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"scripts": [
"data/categories.js",
"data/params.js",
"data/useless-params.js",
"background.js"
]
},
Expand Down

0 comments on commit 9c4f6f5

Please sign in to comment.