Skip to content

Commit fef7ce5

Browse files
committed
auto hide toolbar for all sites by default
1 parent 346222b commit fef7ce5

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

injection/injection.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ var toolbar_hide = `
7979

8080
function init() {
8181

82-
8382
var hide_toolbar = localStorage.getItem('h4ck3r.hide');
8483
if (!hide_toolbar){
8584
localStorage.setItem('h4ck3r.hide', true);
@@ -96,7 +95,7 @@ function init() {
9695

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

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

@@ -129,7 +128,18 @@ function init() {
129128

130129
(function () {
131130

132-
init();
131+
var toolbar_needed = localStorage.getItem('h4ck3r.toolbar.needed');
132+
if (!toolbar_needed) {
133+
localStorage.setItem('h4ck3r.toolbar.needed', false);
134+
toolbar_needed = false;
135+
}
136+
console.log(toolbar_needed, toolbar_needed == 'true');
137+
138+
if (toolbar_needed == 'true') {
139+
140+
init();
141+
142+
}
133143

134144
})()
135145

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "h4ck3r",
4-
"version": "0.0.7",
4+
"version": "0.0.8",
55
"description": "All in one Red Team Developer Tool Kit",
66

77
"browser_action": {

0 commit comments

Comments
 (0)