Skip to content

Commit

Permalink
fix link, add version
Browse files Browse the repository at this point in the history
  • Loading branch information
edge committed Nov 7, 2023
1 parent 375d95a commit 437a13b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
3 changes: 1 addition & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"name": "nurl",
"description": "A Neo URL Resolver",
"version": "0.2.4",
"version": "0.2.5",
"manifest_version": 3,
"permissions": [
"alarms",
"webRequest",
"webNavigation",
"declarativeNetRequest"
],
"host_permissions": [
Expand Down
5 changes: 3 additions & 2 deletions popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ <h2>nurl resolver</h2>
<button id="reset">Reset rules</button>
<div id="status"></div>
<footer>
thanks for using nurl <br>
<a href="https://chrome.google.com/webstore/detail/nurl/eganmcnjhaccfjgcanblacklelhpggno">leave a rating</a>
thanks for using nurl<br>
<div id="version">version: </div><br>
<a id="rateLink" href="https://chrome.google.com/webstore/detail/nurl/eganmcnjhaccfjgcanblacklelhpggno" target="_blank">leave a rating</a><br>
</footer>
<script src="popup.js"></script>
</body>
Expand Down
10 changes: 10 additions & 0 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,14 @@ function updateStatus(message, isError) {
}, 5000);
}

document.addEventListener('DOMContentLoaded', function() {
var link = document.getElementById('rateLink');
link.addEventListener('click', function(event) {
event.preventDefault();
chrome.tabs.create({url: this.href});
});
});


document.getElementById("version").innerHTML += chrome.runtime.getManifest().version;
document.getElementById("reset").addEventListener("click", deleteAllRules);

0 comments on commit 437a13b

Please sign in to comment.