Skip to content

Commit

Permalink
Change preface value to " " and bump to v0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
irvinm committed Mar 11, 2024
1 parent 00ae2c1 commit aa6b713
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let hideTabBar = JSON.parse(localStorage.getItem('hideTabBar')) || false;
function setPrefaceAndIcon() {
// Set Preface for all open windows
browser.windows.getAll().then((windows) => {
let titlePreface = hideTabBar ? "XXX" : "";
let titlePreface = hideTabBar ? " " : "";
windows.forEach((window) => {
browser.windows.update(window.id, { titlePreface: titlePreface });
});
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": "Toggle Native Tab Bar",
"version": "0.9.0",
"version": "0.9.1",
"description": "Shows or hides the native tab bar",
"homepage_url": "https://github.com/irvinm/Toggle-Native-Tab-Bar",
"permissions": [
Expand Down
6 changes: 3 additions & 3 deletions options.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ <h2>(REQUIRED) Entering CSS to hide or show the native tab bar into userChrome.c
}

/* Hidden state: Hide native tabs strip */
#main-window[titlepreface*="XXX"] #titlebar { height: 0 !important; }
#main-window[titlepreface*=" "] #titlebar { height: 0 !important; }

/* Hidden state: Fix z-index of active pinned tabs */
#main-window[titlepreface*="XXX"] #tabbrowser-tabs { z-index: 0 !important; }</code>
#main-window[titlepreface*=" "] #tabbrowser-tabs { z-index: 0 !important; }</code>
</pre>
<li>This addon populate\removes "XXX" to the titlepreface property which is then acted on by your
<li>This addon populate\removes " " to the titlepreface property which is then acted on by your
userChrome.css</li>
<li>Mozilla reference: <a
href="https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/windows/update">https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/windows/update</a>
Expand Down

0 comments on commit aa6b713

Please sign in to comment.