Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added fonts/fontawesome-webfont.eot
Binary file not shown.
Binary file added fonts/fontawesome-webfont.ttf
Binary file not shown.
Binary file added fonts/fontawesome-webfont.woff
Binary file not shown.
Binary file added fonts/fontawesome-webfont.woff2
Binary file not shown.
10 changes: 10 additions & 0 deletions js/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ $('.btn').click(function() {
alert(`${selectedItem} removed`);
})

//deleteall
$('.delall').click(function() {
for (var i = 0; i < localStorage.length; i++){
var key = localStorage.key(i);
localStorage.removeItem(key);
}
location.reload();
alert(`Removed all Keys`);
})

//extract domain name from URL
function extractHostname(url) {
var hostname;
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"matches":[
"<all_urls>"
],
"js": ["./js/results.js","./js/jquery.js","./js/content.js"]
"js": ["./js/jquery.js","./js/results.js","./js/content.js"]
}
],
"background": {
Expand Down
1 change: 1 addition & 0 deletions results.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ <h1 class="cover-heading">Result/s:</h1>
<tbody>

</table>
<button value="Delete All" class="delall"><i class="fa fa-trash"></i>Delete All</button>

<footer class="mastfoot mt-auto">
<div class="inner">keyFinder🔑 by <a href="https://twitter.com/momenbassel" target="_blank">@momenbassel </a>
Expand Down