-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathtoolbarSpace.js
More file actions
23 lines (20 loc) · 787 Bytes
/
Copy pathtoolbarSpace.js
File metadata and controls
23 lines (20 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// https://github.com/Infocatcher/Custom_Buttons/tree/master/Toolbar_Space
// Toolbar Space button for Custom Buttons
// (code for "initialization" section)
// (c) Infocatcher 2014
// version 0.1.0 - 2014-05-12
this.tooltipText = ""; // Remove tooltip
this.style.cssText = '\
/* styles for toolbarspacer from chrome://global/skin/toolbar.css */\n\
width: 15px;\n\
/* Remove button styles */\n\
-moz-appearance: listitem !important; /* Hack, try use "none" in case of wrong appearance */\n\
list-style-image: none !important;\n\
margin: 0 !important;\n\
padding: 0 !important;\n\
';
setTimeout(function() { // Force hide icon
var icon = self.icon
|| self.ownerDocument.getAnonymousElementByAttribute(self, "class", "toolbarbutton-icon");
icon.style.display = "none";
}, 50);