A dark indigo CSS theme for Firefox and a large collection of privileged scripts to add new buttons, menus, and behaviors and eliminate nuisances. The theme is similar to other userChrome stylesheets, but it's intended for use with an autoconfig loader like fx-autoconfig, since it uses JavaScript to implement its more functional features.
Hey, MS. privateTabs Script is causing Tabs to behave abruptly. Its been broken since Firefox v102.
Someone who uses your stylesheet and recently updated to v102 mentioned it to me. Reporting here, since you had mentioned you don't use that script yourself.
I installed everything (with a newly installed Firefox nightly version) according to your README as well as the fx-autoconfig and at first everything works great. Then I wished to remove the refresh button from the navbar but then it keeps coming back, even bringing two sets of backward/forward button back to navbar. So I kept removing those and then the whole window becomes this:
Any help would be appreciated! I'm on macOS Big Sur 11.4.
Describe the bug
Hi @aminomancer Again bothering you
I was testing various scripts from the repository and decided to try private tabs, however apparently the script does not work in Firefox 104.0.2.
Additional context
Beside those folders i didn't notice any other windows having this problem, also while i mainly use ESR with xiaoxiaoflood's loader the same thing happens on Nightly with fx-autoconfig (as seen on included videos).
left align content, make width proportional but clamped for portrait orientation. ugh.
check if you can use double nested fallback values in custom properties? see --final-content-width
Another humble suggestion, which most likely can't be done through javascript, if I had to take a guess: sometimes you close a tab accidentally, it would be interesting if the tab still remained open "hidden" for just a few seconds, like 5 seconds or so, in case you changed your mind, or had accidentally closed the tab to begin with, so that way when you opened, it would be instantaneously. I think some chromium browsers experimented with this feature but it seems that most decided to not go with it? Also there is a bugzilla report on this, but I think the discussion is somewhat stuck.
Again, I have no idea on how viable or hard this would be. Like, for instance, if you were watching a youtube video and closed that tab, it would be somewhat annoying having to deal with a delay of 5 seconds until the audio stopped playing because that tab was only then actually removed from memory, so probably when dealing with a tab playing a video or a song, the behavior would be like pause the video playing, hide the tab, wait 5 seconds, and then actually close it... Anyway, just some food for thought, sorry to bother you.
Describe the bug
In short, the display: block !important; in the .tab-throbber part of the uc-tabs.css file is causing my bookmarks to disappear.
To Reproduce
Steps to reproduce the behavior:
Install the theme (master or latest release, either one works)
Add a bookmark
Bookmark is not there
Expected behavior
Bookmark is there
Screenshots
You see the AniList text and icon? When the code I mentioned above is present, it's just not there. Completely empty blue bar.
Desktop (please complete the following information):
OS: Tested on Windows 10 and Windows 11
Firefox update channel: Tested moth main and nightly
Version: Bug has been here a while, currently on 98.0a1
Build ID: 20220122214838
Additional context
Maybe this bug is just for me? I'd assume you would've fixed it by now (been happening for weeks, just thought to report it now) if it was something you knew about. However, I've completely formatted my disk and reinstalled Windows and the bug hasn't been resolved by that.
Sorry if the title doesn't make much sense, I didn't know how to explain in a short manner. A better explanation would be, Firefox has the smart keyword thing, where you can associate some shortcuts and there are several codes you can apply to it. Like for instance, this one here, which searches the current site you are in on Google:
So for instance, if I'm on hackernews, and press "s" [my search term] + enter, the command automatically does a google search on that page.
The thing that is that, if instead "enter", I pressed "shit+enter", to do the same thing I wanted to do previously, but instead opening the that search on a new tab, it doesn't work, it ignores the "window.location.hostname" part, so therefore you end up with something like this:
02.mp4
I couldn't find any bugzilla report on this, actually, I'm not even sure if is a bug to be fair, but is something that it might break some people workflow. Anyway, I was wondering if it would be possible to make, sorta firefox use that "window.location.hostname" reference even when pressing shit+enter so that you can perform that search and open it on a new tab.
Or maybe you know some other workaround through this issue, like through some editing on the very smartkeywords that I'm not seeing. I would also be interesting on that.
Also, as always sorry to bother you. And thanks in advance for any help or advice.
Hi @aminomancer I recently found your repository and saw that it is possible to add some features to Firefox through javascripts (userchromejs). I am currently using the private tab script as there is no extension that provides such a feature.
Searching the web for a replacement for the tab scope extension that allows thumbnails on tabs I did not find anything similar.
Is there a possibility that a script could be written to show thumbnails on tabs? If so, could this script I found on the web be ported to work with the latest version of Firefox?
I'm an university student, and I'm part of a small international group of students who like to exchange Firefox CSS customizations for our own personal use (studies and jobs).
We also use several Firefox JavaScripts (uc.js). But, unfortunately neither I nor anyone in our group knows anything about JavaScript. We use JavaScripts that we find here on Github, or JavaScripts that kindly Devs on Reddit create and adapt for us.
At this moment we need a simple JavaScript to show a short tab-title or tab-url inside the urlbar when a tab is mouse-hovered. That's all!
As you know, in vanilla Firefox when a tab is mouse-hovered the tab-tooltip appears. We want to replace this tab-tooltip, and we want it to appear inside the urlbar. It doesn't matter if the JavaScript uses the tab-tooltip or tab-label or whatever, the only thing we need is that when any tab (pinned, unpinned, selected, unselected, active, not active etc) is mouse-hovered, a short tab-title or short tab-url will appear inside the urlbar. Please @aminomancer, could you help us?
We've already visited all the FF' JavaScripts repos, there is no such script. Also, we have already contacted all the Devs, in the past they always have already helped us a lot with other scripts, but unfortunately at this time we do NOT have anyone to help us.
This is apparently an old bug or issue, apparently, you can't refresh a URL that contains # somewhere in the in it, by just pressing enter (as it normally occurs). Here is an example:
Pressing enter on enter on urlbar on a normal URL:
The page is reloaded.
Pressing enter enter on a URL on containing # in it:
Nothing happens.
Apparently someone propose they addressed this some years, but Mozilla didn't thought it was a bug or an issue. In my noob opinion, this doesn't seem to be an issue too hard to solved, but what I know? Anyway, just a suggestion. https://bugzilla.mozilla.org/show_bug.cgi?id=778399
I'm really in need of a specific JS, and it would be great if you can help me. I'm using the latest version of Firefox Nightly + Windows 10 and, please, I need a JS where a mouse-hovered tab shows (below) the back - reload - forward buttons (inside a small tooltip or popup or container). If the mouse leaves the navigation buttons container or the tab, then the container disappears.
At reddit you offered me your help, and you asked me to remind you my request, so here we are, I'm sorry to bother you, but if by chance you can give me a hand... it'll be amazing!
Describe the bug
I'm not sure if we can consider this as a bug or more of a "intended behavior", but it looks like verticalTabsPane.uc.js really doesn't like when you remove the newTab button and simply doesn't load when it's not placed somewhere.
To Reproduce
Steps to reproduce the behavior:
Place the newtab button back in "customize toolbar"
Restart firefox
Expected behavior
VerticalTabsPane should load even without the newtab button being placed in the UI(?)
Screenshots
Desktop (please complete the following information):
i have used custom userChrome and userContent js with the instructions u gave. So everything else apart from that was downloaded. These are my userChrome css and userContent js.. Replace the text files with .css and this is my first time using firefox css.. So pls help :)
Bookmark button
It seems like the bookmark button in the tab context menu doesn't detect whether the current page has been bookmarked or not. Please see the screenshot attached. Not sure whether it's a feature or a potential bug.
Context menu padding
After loading the author style sheet, this happens:
The sound button (mute/unmute) does work in the vertical tab pane, just that when the pane is pinned (i.e., no expansion when during mouse hovering) it doesn't work any more.
Describe the bug
When a user presses left or right arrows in the urlbar/navbar, the browser switches between search engines/history,etc... albeit very randomly and seemingly unintended.
To Reproduce
Steps to reproduce the behavior:
1.Have multiple search engines/history/tabs search integrated into the urlbar.
2. Have a url in the navbar.
3. Try to use the arrowkeys to navigate to a certain part in the url
4. likewise, try to use the right arrowkey to activate an autocomplete suggestion given to you.
Expected behavior
Prior expected behavior would be that left and right arrows stay native to navigation through characters/autocomplete and up/down arrows change search engine.
Additionally I believe alt + left,right arrows should change search engine.
Screenshots
Desktop (please complete the following information):
OS: W11
Firefox update channel: Nightly
Version: latest
Build ID: 20211127092810
Additional context
I've seen your commits regarding this situation and I believe you may be still working on this. I'm not sure, also maybe this issue has something to do with my extensions/settings.
Hi, would it be possible to add a "Copy page title" option when dealing with the sidebar menu history panel? Like, so that in the same way you could copy the page URL you could also copy the page title. All the extension I tried so far didn't enable an option in that particular context menu. Something like this:
.
Thank you for your attention.
Hi!
I see some script to change to the urlbar, I think this would be a worthy addition.
Is your feature request related to a problem? Please describe.
Even explicitly opening tab in the background, the urlbar results are closed and the bar is reset.
Describe the solution you'd like
When opening tabs in the background the urlbar and results should remain as they are, so I can open more results, etc.
Which would be the main point in opening them in the background in the first place.
Additional context
This feature Mozilla failed to implement for years (136445...), there's even a patch for it in a never bug they didn't bother to do anything with.
On a related note, I need to use modifiers like (ctrl+)shift+alt+enter, shift+middle-button, (ctrl+)shift+left-button to get things from the urlbar to open in a background tab, even if browser.tabs.loadDivertedInBackground is enabled. Which is pretty much a bug they didn't bother to fix. Maybe the script could also avoid forcing me to use clumsy and inconsistent modifiers as well, and just open in background via plain middle click and ctrl enter (or alt+enter as it once did).
First of all sorry, I know the title doesn't make that much sense. Explaining it better: some pages show a number between parentheses to indicate that there is a new message on that given tab. Like this for instance, this is not a exclusively behavior of Firefox, practically all browsers have this behavior, Chrome, Brave, etc:
The problem is that if you pin that given tab this number won't appear, but rather you will receive some generic indication there is a new messages, but it won't show how many: is it 1, 2, 3, 10 new messages? You don't this see this information right away.
This problem though doesn't happen on Vivaldi, which always shows the number between parenthesis as a indication on the top of the favicon, like this, similar to the little icon that indicates whether or not that tab is playing a song. Actually it always shows the number between parenthesis as a flying favicon notification:
This way you can see how many messages there are on that tab even when you pinned that tab. I think it would be interesting a script that would change this functionality. I think this it shouldn't be that complicate to implement some feature like this, some script that extract the number between parenthesis in the beginning of the title and puts it and its own html element should do the trick, I think, but I might be wrong.
As always thank you very much for your consideration and time.
Sorry for opening another Issue, but I thought why not open a dedicated place to discuss the vertical tab pane. :-)
Could you please Integrate the private tab button into the vertical tab? If this is realized then I can pretty much discard the regular tab bar altogether!
Let us have the option to show/hide icons.
Personally, I'd like to hide both the pin and the toggle button.
As of now, pinned tabs are simply moved all the way up or down depending on whether or not the option "Reverse tab order" is selected or not. Personally, I think all pinned tabs should be moved to the top regardless. In addition, is it possible to give the pinned tab a different style, say, a slightly lighter background or so (or a divider line after the pinned group), so that it's very easy to distinguish the pinned tabs from the regular ones.
Please let the vertical tabs support "Tab Tooltip Navigation Buttons" as well!
Firstly, your tabTooltipNavButtons.uc.js is amazing. Thank you!
I believe I may have found a bug.
Unfortunately, when I right click the back or forward button, I can't see tabs history.
This bug appeared to me few days ago.
Just in case, I tried tabTooltipNavButtons.uc.js in a Nightly clean install, no CSS mods, no add-ons, untouched. And the tabTooltipNavButtons.uc.js bug is there... on right-mouse-click over back or forward, tabs history is not shown anymore.
Just to be clear I'm talking about line 49:
// When you right click one of the back or forward buttons, it opens a
// little context menu that shows up to 15 items in that tab's history.
Hold down alt+shift and click the mouse button to drag as usual
Still holding the mouse button, but release the alt+shift. You can still drag around the window as expected.
Release the mouse button. At this point, since no alt+shift button is pressed, the mouse shouldn't be able to drag the window. But it still can do so. This makes it impossible to normally interact with the UI, like click on the urlbar to enter a new url.
This JS script creates a kind of password screen when Firefox starts.
The original script was adapted to be compatible and to work with MrOtherGuy fx-autoconfig, following these simple rules:
Change @startup to masterPasswordPlus instead of UC.masterPasswordPlus.exec()
Rename exec to _startup (line 12)
Rename all instances of UC to _ucUtils.sharedGlobal
Rename all instances of _uc.windows to _ucUtils.windows.forEach
Line 29 }); -> },true)
Line 36 }); -> },true)
However, the script was updated to this new version. And it's not working with MrOtherGuy fx-autoconfig (the rules mentioned above are not working in the new version).
You have an incredible JS repo compatible with MrOtherGuy fx-autoconfig. So please, if possible, my requests are:
Can you adapt the latest updated version of the JS script in order to work with MrOtherGuy fx-autoconfig?
Even better: Please can you write a new JS script fully compatible with MrOtherGuy fx-autoconfig, having as main function the creation of a kind of password screen (or similar) when Firefox starts? It'll be great if you can do that, because that will help us (users of this JS script) to always keep the latest working and updated script.
When switching to the searchbar, if I want to edit the current url by using the arrow-keys to navigate through the url, it does not move cursor locations.
Instead it switches between search engines. I believe this feature is supposed to only happen when using alt+arrow key if I read the readme properly.
To Reproduce
Go to any website i.e. youtube.com
Switch to the urlbar, the entire url should be highlighted, then use left or right arrow to navigate through url as if you were to change the url slightly.
Cursor shouldn't move, instead we cycle through the search engines.
Expected behavior
arrow keys should navigate through the url-address via moving cursor. ALT+arrow keys should navigate through search engines.
Describe the bug
Very strange, I use this script with earthlng's aboutconfig module and when I try to go to "about:cfg", Firefox does not respond to anything and there is no error message from console in the browser toolbox.
Desktop (please complete the following information):
I think there should be two seperate user.js files. One with only required config changes and one with all of the config change recommendations.
Entering in all the about:config changes is tedious and time consuming. There may be some people who would like to just plug and play, like me when adding everything onto a new pc/os.
I have the new user.js file if you'd like to just use that. I think the descriptions of all the changes could be added, but this is a start.
There would also need to be a disclaimer that the defaults are for windows, and users need to comment out and uncomment the correct lines for their os.
This would probably be too hard to do, but it might be interesting. I think it could be done through an extension, anyway: Edge and now Chrome, I think, have this "sidebar search" where you can search something and it gets displayed to you as sidebar. I think this option is honestly amazing, it's pretty useful because you can get a glimpse of a given content without having to leave the page, and it's shame it didn't get implement on Firefox yet.
The closet thing I could found was this extension here, but it's not exactly like a search bar, more like a "preview sidebar" or something, but I think a huge chunk of the code could maybe be used, but I have no idea what I'm talking.
When you open extension panel UI, URL bar gets closed so you can't mouse click on anything within that extension popup (broken for every extension of course), clicks get passed through the panel popup to current page.
Only workaround is holding Alt+D for clicks to get passed to the popup
Running latest FF nightly on Linux with upstream userChrome changes.
Hi, it's me again bothering you. I was wondering about this weird margin when hovering a tab containing a single image. Like this:
I was wondering if would be possible to at least center the thumbnail on these cases, such as it happens on Microsoft Edge:
Although, truth be told, even the way Microsoft Edge deals with tab thumbnail on these cases isn't perfect. Ideally, maybe the best alternative here, I think, would to try to adjust the image accordingly, more or less like it happens when your OS tries to automatically adjusts an image too big to fit your monitor resolution. Something like this:
Hello, I just updated Firefox Developer to the 108 version, and Mozilla seems to have made some change that break the script. Especially when the page title is too long.
It seems to be some issue with #tabThumbBox part, I tried to fix by tweaking around with CSS, but hadn't have much success.
It could something due to my setup, but I think it is worth a look. Thank you very much for your attention
Update: Forget what I said about "tabThumbBox", I think the problem is the model "Max label character limit" isn't working, so it doesn't crop the page title when seeing the thumbnail,
Every time i try to load any folder that wasn't previously "previewed" it just throws the same error as on the screenshot. Opening single bookmarked links works without a problem.
Is your feature request related to a problem? Please describe.
I use a CSS config to keep notifications on-screen for a day (or when I manually click close on them or they expire by themselves).
It's really nice because then my Google Calendar notifications just stay on screen hour by hour... and help remind me what I am supposed to be doing. However, they get in the way on my primary monitor since Firefox notifications can only load on the primary monitor and there are no configs or CSS to change that.
Describe the solution you'd like
A script to change the location where notifications spawn or even create about:config to define X and Y coordinates for such.
Describe alternatives you've considered
Changing primary monitor. (not feasible since it's only these semi-permanent notifications I want to change location of)
Changing from Firefox Notifications to Windows 10 Action notifications (not desireable)
So, this is a little hard to explain, basically depending on the background of the page you are in, the highlighted color of the text (as well as the color of text you are highlighting in itself), when you use the findbar changes, it sorta inverters on darker backgrounds. This thread on FirefoxCSS better explained what I'm talking about: https://old.reddit.com/r/FirefoxCSS/comments/mfw002/keeping_uitexthighlightbackground_consistent_on/gspslgv/
I was wondering if there is any way to make the highlighted text cohesive and to always use to the same color no matter what, like it works on other browsers? As always, thank you very much and sorry to bother.
So, I have been scratching my head with this one and I think it could be a interesting script. When you press the hotkey to set a video you are watching to picture-in-picture mode, Firefox doesn't set that video to pip mode if it is running inside an iframe, like this for instance:
Like, if you went to youtube and pressed that key combination, firefox would set that video to picture in picture. I think it's something they changed recently cause I remember that until very recently this used to work. I think it could be some security issue or something dealing with content on iframes or something?
The curious thing is that, if you go and click on the flying pip button that appears on the video, that content is set to picture-in-picture mode even if is running inside an iframe, like this here. So I think it's probably some issue with Firefox just not "detecting" what content you are watching or so?
Maybe this could be a possible script, beside fixing this issue, the script could also allow user to choose other key combination to set the video you are watching to pip mode. Anyway, just an idea, thank you very much for your time..
Hello,
I use some of your helpful scripts, thank you.
Is it possible to add the menu of debugExtensionInToolbarContextMenu.uc.js also to the context menu of the addons in about:addons?
For many months I used your urlbarTabUrlIndicator.uc.js and tabTooltipNavButtons.uc.js.
My JS know-how is almost zero, but at tabTooltipNavButtons.uc.js I managed to delete (carefully) few lines here and there, and miraculously your two JS scripts worked together like a charm.
At my customization, when a tab was mouse-hovered, tabTooltipNavButtons.uc.js opened the mini popup/tooltip (under the tab), with the back-reload-forward buttons, but no url (only 3 buttons back-reload-forward, I removed the url). At the same time, when the same tab was mouse-hovered, urlbarTabUrlIndicator.uc.js showed the URL inside the urlbar.
It was just beautiful to see the two scripts working together automatically... I became addicted to them : )
Problems in paradise started when new versions of tabTooltipNavButtons.uc.js appeared.
My JS is really bad and I can't make compatible the newest tabTooltipNavButtons.uc.js v.1..2.3 with the tabTooltipNavButtons.uc.js 1.1.
Separately, both scripts are working perfectly.
But together, I have not JS know-how to make them compatible (as they were compatible in the past).
Time ago you and I exchanged messages in order to make the two scripts compatible. Here is our conversation. Specifically at this message you suggested two possible solutions, first by using a "Modifier Key" (to activate tabTooltipNavButtons), and second by deleting 8 lines. The "Modify Key" solution is not interesting to me, and I tried your second solution at tabTooltipNavButtons 1.2.3 but I couldn't make it work.
Please, if by chance you can help me, it'll be amazing.
Really, I became addicted to your two scripts, and I miss them a lot.
I know you are busy, so if you can help here, please take all the time you need.
Hi, I think enterInUrlbarToRefresh is not working on Firefox 106 (Firefox 106.0b2). You press enter and nothing happens, not even normal run-of-the-mill URLs without the # on them. It might be something wrong with my setup, but it's worth an investigation I think. As always, thank you very much for your attention and sorry to bother.
Hi. @aminomancer
I tried to use your Extension Stylesheet Loader script and it does not want to work for me.
Could you please explain step by step (or at least briefly) how to make it work without using DuskFox?
Sorry for the stupid questions.
By the way, I successfully use some of your scripts, for example, tooltips related ones (you helped me on Reddit 👍).
Thanks in advance..
Hi, first of all, thank you so much for your work!
Would it be possible to limit page title to a given number of characters? I don't actually want to limit the title page on firefox history settings, but only limit how much text is shown when I hover the tab thumbnail, like this:
So instead of : Sem acordo, conflito poderá ser comparado só à 2ª Guerra Mundia, diz jornalista brasileiro em Kiev | O Assunto | G1
I would see something like: Sem acordo, conflito poderá ser comparado só à 2ª Guerra Mundial...
In other words, on Firefox history settings, the page would still have its full page title, but when I hovered that tab I would only see a small snippet of the page title text.
Also, if possible, I was wondering if I could trigger this option of "limiting the page title text" to only when was I hovering a tab with a thumbnail available (some pages don't have thumbnail because they are on sleep mode/lazy mode). And on these cases, I would that Firefox shown the whole title, even if is it bigger, since there is no thumbnail available currently, like this:
As the title says, the vertical tab pane is not working completely as intended. While it's pinned at full width it seems to work perfectly. Though when I unpin it, it no longer collapses as it's supposed to, the text of the tabs and the icons to not show the pane and to pin or unpin it do collapse, but the rest of the pane is still just sitting there.
It was working perfectly for me yesterday and last night, and I usually use the Release channel of Firefox so I did try it on Nightly just to make sure it wasn't a version difference causing the issue and it is not, I get the exact same results on the Nightly version as I do on the Release version.
It's not the worst thing in the world and I can cope without it obviously, but I thought it would be good to bring it to your attention.