Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
proginosko committed Feb 13, 2022
2 parents 003df19 + 20dd7b2 commit 0fe61a4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions VERSIONS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### Version 1.3.1 (13 Feb 2022)
* Fix security issue (updated jQuery libraries).

### Version 1.3 (16 Jan 2022)
* Added "Move Set" buttons for easy reordering of block sets.
* Added "Add Page" menu (like "Add Site" but includes full path).
Expand Down
3 changes: 2 additions & 1 deletion common.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ function getParsedURL(url) {
// Clean list of sites
//
function cleanSites(sites) {
sites = sites.replace(/\s+/g, " ").replace(/(^ +)|( +$)|(\w+:\/+)/g, "");
sites = sites.replace(/\s+/g, " ").replace(/(^ +)|( +$)/g, ""); // remove extra whitespace
sites = sites.replace(/^\w+:\/+/, "").replace(/ \w+:\/+/g, " "); // remove protocols
sites = sites.split(" ").sort().join(" "); // sort alphabetically
return sites;
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@
"webNavigation"
],

"version": "1.3"
"version": "1.3.1"

}
8 changes: 4 additions & 4 deletions options.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@
</select>
</div>
</p>
<p>
<input id="countFocus1" type="checkbox">
<label for="countFocus1">Count time spent on these sites only when browser tab is active</label>
</p>
<p>
<label>Select when to block these sites:</label>
<select id="conjMode1">
Expand Down Expand Up @@ -169,10 +173,6 @@
<input id="activeBlock1" type="checkbox">
<label for="activeBlock1">Immediately block pages on these sites once blocking conditions are met</label>
</p>
<p>
<input id="countFocus1" type="checkbox">
<label for="countFocus1">Count time spent on these sites only when browser tab is active</label>
</p>
<p>
<input id="showKeyword1" type="checkbox">
<label for="showKeyword1">Show matched keyword on blocking page</label>
Expand Down

0 comments on commit 0fe61a4

Please sign in to comment.