javascript - Can I put a button on the tab header using Firefox Add-on? -
in firefox browser window, put button on tab header next web page title. possible firefox add-on? far still unsure call part of tab. sorry duplicates!
edit: didn't have reputation add images. here clarity (desired button in red)
the short answer is: "yes."
firefox add-ons have ability have complete control of user interface. in instance, first level of xul content want @ contained in chrome://browser/content/browser.xul
. file contained within omni.ja
archive in browser directory within firefox release directory. omni.ja
files zip archives can view extracting files using program understands .zip
archives. depending on os, may easier change extension omni.zip
. within archive file chrome\browser\content\browser\browser.xul
.
however content need modify located in chrome://browser/content/tabbrowser.xml
file (in same directory). files defines tab stack looks like. how go changing depend on type of add-on creating (e.g. overlay, restartless, add-on sdk) , if want change apply tabs, or some.
you want @ browser.css
in subdirectory of skin
directory.
the xul structure element looks like:
the hbox
class="tab-content"
want modify.
in tabbrowser.xml
(firefox 38.0.5) defined as:
<xul:hbox xbl:inherits="pinned,selected,titlechanged" class="tab-content" align="center"> <xul:image xbl:inherits="fadein,pinned,busy,progress,selected" class="tab-throbber" role="presentation" layer="true" /> <xul:image xbl:inherits="src=image,fadein,pinned,selected,busy,crashed" anonid="tab-icon-image" class="tab-icon-image" validate="never" role="presentation"/> <xul:image xbl:inherits="crashed,busy" class="tab-icon-overlay" role="presentation"/> <xul:label flex="1" anonid="tab-label" xbl:inherits="value=visiblelabel,crop,accesskey,fadein,pinned,selected" class="tab-text tab-label" role="presentation"/> <xul:toolbarbutton anonid="close-button" xbl:inherits="fadein,pinned,selected" class="tab-close-button close-icon"/> </xul:hbox>
Comments
Post a Comment