Skip to content

Commit

Permalink
auto hide toolbar for all sites by default
Browse files Browse the repository at this point in the history
  • Loading branch information
4nkitd committed Apr 9, 2021
1 parent 346222b commit fef7ce5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions injection/injection.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ var toolbar_hide = `

function init() {


var hide_toolbar = localStorage.getItem('h4ck3r.hide');
if (!hide_toolbar){
localStorage.setItem('h4ck3r.hide', true);
Expand All @@ -96,7 +95,7 @@ function init() {

var elmnt = document.getElementById("toolbar_id_");
elmnt.style.top = localStorage.getItem('h4ck3r_position_top') ?? '10px';
elmnt.style.left = localStorage.getItem('h4ck3r_position_bottom') ?? '-120px';
elmnt.style.left = localStorage.getItem('h4ck3r_position_bottom') ?? '0px';

var reload_config = localStorage.getItem('h4ck3r.reload');

Expand Down Expand Up @@ -129,7 +128,18 @@ function init() {

(function () {

init();
var toolbar_needed = localStorage.getItem('h4ck3r.toolbar.needed');
if (!toolbar_needed) {
localStorage.setItem('h4ck3r.toolbar.needed', false);
toolbar_needed = false;
}
console.log(toolbar_needed, toolbar_needed == 'true');

if (toolbar_needed == 'true') {

init();

}

})()

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "h4ck3r",
"version": "0.0.7",
"version": "0.0.8",
"description": "All in one Red Team Developer Tool Kit",

"browser_action": {
Expand Down

0 comments on commit fef7ce5

Please sign in to comment.