Firefox Customs

3 readers
1 users here now

Chat with us!

Post your unsupported Firefox customizations here!

From the makers of r/FirefoxCSS

Links

Related

Rules

  1. Posts must have flair!
  2. Posts cannot be memes/shitposts. They should be about Firefox customization with CSS.
  3. Please be civil. Bear in mind that many users come here for help and would be turned off by insults and rudeness.
  4. When posting large amount of code use a service dedicated to hosting text snippets, such as pastebin, hastebin, github gist or equivalent. Relatively short snippets can be wrapped in code-block for inline viewing.
  5. Do NOT use url-shorteners or link to compressed downloads (such as zip or rar) when sharing code.

founded 1 year ago
MODERATORS
26
 
 

A very thin line has reappeared under the Active Tab in Firefox 123.0 when using CSS to create 'connected tabs' (i.e. no boundary between Active Tab and the Nav Bar).

This line had previously been removed in my own CSS styling by using your suggested fix in r/FirefoxCSS topic 'Connected tabs - Proton Tabs Tweaks'..."That's probably solved by simply adding .tabbrowser-tab[selected]{ position: relative; z-index: 1 }" ... however, this fix no longer works in Fx123.0... and not obvious what has changed from my efforts with the Browser Toolbox?

A hint of the problem had reappeared in Fx122... in which, when the browser window did not have focus, the Tab Bar darkened AND a thin line appeared under the active tab... until window focus was restored.

(EDIT - The reappeared Active Tab underline problem only existed if using the 'out-of-date' 25Oct23 version of MrOtherGuy's 'non_floating_sharp_tabs.css' style... the problem had already been fixed... and is NOT present in the current 24Jan24 version.)

The attached image shows the same problem also exists in your 'non_floating_sharp_tabs.css' AFAICS? The LH image is Firefox 123.0 + RH image of LibreWolf 122.0.1-2. (Both browser windows have focus. Both images of clean test profiles on Win10 with only your latest 'non_floating_sharp_tabs.css' style and the Gradient Blue theme added. The UI size has been increased by setting pref 'layout.css.devPixelsPerPx' = 2.5 to improve the image clarity o the two toolbars.)

27
 
 

I have a folder of bookmarklets. They all have the same favicon, i.e. the default (globe) icon. It would be useful to change at least two of them to distinctive icons.

I copied code posted recently on another forum. It is only partly effective in that the default icon disappears but, instead of the icon I have named, there is a faint orange blur. The icon I have named is the Facebook icon, a white f letter on a blue background. I began with an .ico file but changed it to a .jpg file, hoping that would help; it didn't. I also tried changing the size from 1616 to 2424 and 50*50, to no avail.

The code is below.

#personal-bookmarks .bookmark-item[scheme="javascript"][label="zap fb"] .toolbarbutton-icon, #personal-bookmarks .bookmark-item[scheme="javascript"][label="zap fb"] .menu-iconic-icon { width: 0 !important; padding-right: 16px !important; background-image: url ("fb16.jpg") !important; }

28
 
 

I used this code which places the tab above the vertical bookmarks bar, but in this new Firefox-beta v.123 the code stop working, I tried a bigger number and don't work, I tried to put a lower index to the bookmark-bar and a bigger number to the selected tab and didn't work. I need a beautiful help. my theme is this Firefox-gx

29
 
 

Personally I'm pretty frustrated with the way it works. I've noticed all of the following , and at least some of these apply to dev tools too. I don't like the way Google controls the internet with Chrome, but at least its dev tools just work.

  • Sometimes when I try to use the element picker tool it actually clicks the element instead of selecting it in the toolbox
  • I can't change selectors in CSS files in the sidebar, I have to go the style editor (Chrome lets me do this)
  • I can't easily copy HTML attributes, if I double click on an attribute, the text is selected but when I press CMD C, it copies the entire tag with all of its attributes.
  • A lot of the time CSS properties I write just don't apply and isn't crossed out. Its like it just has a hard time doing that.
30
 
 

I would like to change this preference to something like this: AccentColor: red !important; but don't work.

31
 
 

Anyone else having problems reading older comments on the fedia.io Firefox Customs pages (https://fedia.io/m/FirefoxCSS)?

Tried logged-out and logged-in... no comments on posts older than 1 month... although the index pages show many posts have comments?

However, access Firefox Customs pages via lemmy.world (https://lemmy.world/c/[email protected]?dataType=Post&page=1&sort=New)... and all the comments are available right back to first post by MrOtherGuy 5 months ago 'How to set up userChrome.css' (https://lemmy.world/post/1055304).

Am I missing some setting on the direct fedia.io page or link?

32
 
 

For years I've been using MrOtherGuy's multi-row_tabs_below_content.css script, ever since XUL add-ons became obsolete, and I had to give up the wonderful TabMixPlus. I have tab width set to 100px, which shows the favicon and the beginning of the tab title, from which I can identify a tab 95% of the time without hovering to see the full title. At this width, I have fifteen tabs per row, so with three rows set I can see 45 tabs at a time. I like to be able to see as many tabs at once as possible, while still being able to identify them, unlike many current users (especially Chrome refugees) who like to scrunch tabs down so narrow as to show only the favicon. :-)

But today the rave seems to be vertical tabs, in part largely, I think, to the 'cool' factor. But when every available browser has vertical tabs available, either natively or via add-on, that cool factor will soon disappear. And yes, there are serious advantages, such as making best use of the available horizontal screen space while freeing up vertical space. And so Firefox has available several vertical-tab add-ons. And now there is MrOtherGuy's vertical_tabs.css script. What I think is cool about this script is that, unlike all the add-ons that I'm aware of, this script doesn't use the sidebar, leaving the sidebar free for other uses. So one can have both the vertical tabs, and the sidebar visible at the same time, even on opposite sides of the window, which leaves the page content centred between them.

Which brings me to the idea: multi-column vertical tabs! Consider, the vertical_tabs.css script creates a vertical-tabs sidebar that is 220px wide, including a vertical scrollbar of perhaps 20px. With my preferred tab width of 100px, I could have two columns of tabs in that same space. At 20 tabs per column, that would give me a total of 40 tabs visible at one time, nearly equal to 45 tabs I now have visible.

How it works: the current multi-row horizontal tab bar shows the number of rows the user has set, and has a narrow (doesn't use much space) vertical scrollbar on the right edge. When the tab bar is scrolled vertically, the top row of tabs scrolls out of view, and the next lower row of tabs scrolls into view at the bottom. So scrolling shows 15 new tabs at a time (in my case).

In like manner, the multi-column vertical tab bar would show the number of columns the user has set, and would have a narrow (doesn't use much space) horizontal scrollbar at the bottom edge. This would free up all of that space used by the current vertical scrollbar, making the entire vertical tab bar narrower (depending on the user's choice of tab width and number of columns). When the tab bar is scrolled horizontally, the left column of tabs scrolls out of view, and the next column of tabs scrolls into view at the right, showing 20 new tabs at a time (depending on the height of the user's window). If the user prefers narrower tabs, as many seem to do, one could have more columns is the same space, or have the same number of columns use even less space.

That's it. But no browser or add-on that I am aware of, currently provides multi-column vertical tabs. If a .css script could be made to do so, that would make Firefox the only browser with such a feature. Now that's cool! :-)

33
 
 

Hello! In about:profiling, if you go to the bottom of the page there's a box, if you click that box a blue border appears but I don't know how to change it. It is this one:

Thanks!

34
 
 

Hello!
I was wondering how am i able to change the tree background color (Some treechildren have gray background and others have black) and also the gray bottom border-color? I think it has to do with a shadow command but I'm not sure.

Thanks!

35
 
 

Hey

I want to change this gray background in about:preferences in import data from another browser, I've tried but cant seem to get it to work, I don't know if it's the popup "shadow" or what could it be.

Thanks!

36
 
 

Hi. I've been experimenting with MrOtherGuy's vertical tabs script. I found that the tab bar could be moved to the right side of the window with just two simple changes:

change line 19 from: margin-left: var(--uc-vertical-tabs-width); to margin-right: var(--uc-vertical-tabs-width);
and

change line 31 from: left: 0; to right: 0;
Works for me.

37
 
 

I use some code that use the position of the tab to give some style but when that Firefox-view tab is active create a invisible tab that makes the code wrong. I would like to have that tab visible, and work with that or I don't know jeje

38
 
 

First, a big thank you to Mr. Other Guy for all his great work!

The following issue is on FF 115 ESR on Windows 10, using a fresh clean profile, using compact mode, with title bar enabled, and static menu bar enabled, and creating a bunch of new tabs in order to fill four rows. Using the July 18 commit of multi-row_tabs_below_content (set for three rows) and trying the March 11 and September 9 commits of fake_statusbar_w_bookmarks_bar.

With userChrome.css containing only the import of multi-row_tabs_below_content, the three rows of tabs appear correctly at the bottom of the window, and they scroll properly--all good. Interestingly, the bookmark bar now appears at the very bottom of the window, below the tab bar (why?). When the bookmark bar is toggled off/on (Shift-Control-B), the tab moves down/up as it should.

When the import of fake_statusbar_w_bookmarks_bar (either commit) is added after the tab bar import, the tab bar background appears to be four rows tall rather than three (with the bottom row hidden by the bookmark bar), the top row is empty so that only two rows of tabs are showing, and when the bookmark bar is toggled off, the third row of tabs appears at the bottom. With the bookmark bar visible, there is no indication anywhere of link address or activity when a link is clicked.

When I follow this same testing procedure on my working profile, with just the tabs bar import, the tabs at the bottom work fine, and the bookmarks bar still appears but this time it has all of my extension icons in it (there were no extensions in the clean profile), toward the left end. The link activity is shown in the bottom left corner of the main client area, above the tab bar.

When I add the status bar import, the behavior is the same as with the clean profile, but now the extension icons are at the right end of the status bar, and the link activity appears at the left end of the status bar (the desired behavior).

If I instead import the old version (from FF 99) of the fake status bar, now the tab bar is correct, and the status bar has the extension icons to the right, but the link activity is back in the client area rather than in the status bar.

Any assistance would be greatly appreciated.

39
 
 

Hello!

How could I change the separator color in about:preferences in the translation section?

When I put my code in userContent in @ -moz-document url("about:preferences#general")

It doesn't work, I guess that it's because it opens up in a new window, but when I put it outside of it it works, the only problem with that is that I don't know if it will also affect webpages.

Thanks!

40
 
 

Hello! I have a problem with the hamburger menu when I shrink the window. Normally it looks like this: https://imgur.com/a/qU0mpqz

but when I shrink the window it's like it's floating and looks like this:

https://imgur.com/a/JpsdT7k

I was wondering if there's a way to make it not float or to change it's position to the urlbar or something.

Thanks!

41
 
 

Hello, I was wondering if there's any program and style you recommend me to indent all of my codes (By style I mean if putting titles in someway, creating a lot of css files for individual things instead of joining all of the code in one file, etc).

And also when I started creating my code I didn't put any "Names" or whatever this: /* */ is called to the mayority of my code lines.
I was thinking if there was a webpage or a program or AI to do that, or if I have to do it all by myself.

Thanks a lot!

42
 
 

Hello! I want to know if it's possible to change the gray border in the print screen.
It currently looks like this:

Thanks!

43
1
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]
 
 

I've been playing around with a little CSS code for curved tabs recently, inspired by this style by MrOtherGuy.

It seems to work reasonbly well so far - still a work in progress - but one issue I just can't figure out - when the tabs are overflowing, the additional bottom corners I created for the outer tabs are cut off, unless they are the very first or last tab (which are taken care of).

I've tried every selector and element in this area, to change the cutoff/clipping points of these outer visible tabs in overflow, or the width/padding etc. of the scrollbox "window", but to no avail.

Any ideas would be much appreciated.

The code can be found here, a screenshot is attached showing the issue.

I hope the .svg code in the CSS file works, if not this is it:

<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 32 32">

  <path d="M0 33 L3 32.5 A16 16 0 0 0 15.5 16 L 16 16 L 16 33 Z" fill="context-fill"/>

  <path d="M3 32.5 A16 16 0 0 0 15.5 16" fill="rgba(155,122,0,0)" stroke="context-stroke" stroke-width="1px"/>

  <path d="M0 16 L16 16 A15.5 15.5 0 0 1 32 0 L 32 0 L 32 16 Z" fill="rgba(155,122,0,0)"/>

  <path d="M15.5 16 A18.5 18 0 0 1 35.5 -0.5" fill="transparent" stroke="context-stroke" stroke-width="1" />
</svg>

44
 
 

Hello!

When I first open Firefox after I turn on my computer this “image” appears and I was wondering if it’s possible to change it.

Thanks!

45
 
 

Hello! Id like to know how can I change the background color when dragging an item in the sidebar menu, like this:

https://imgur.com/a/tBjLx2l

When dragging an item and putting it in another folder and when dragging an item to change its place.

Thanks!

46
 
 

I see a double separator below the "Copy link" option in the link context menu seen when you right-click a link. I tried commenting out all the code I have relating to context menus and it's still there.

I have tried adding the separator id (#context-sep-copylink) to code I have to hide various context menu items and that was ineffective.

The text in the menu isn't as large as the screenshot suggests.

SOLVED. It was the separator sendlinktodevice. The other code was hiding the separator below copy link in the image context menu. The double line was just an irritant, not a practical problem, but I'm glad it's gone. Thanks to those who replied.

47
 
 

An issue has been opened in the kbin repo: #868 - Unable to load specific kbin magazine from any other kbin instance - kbin-core - Codeberg.org

Any idea from @MrOtherGuy or
@yoasif what is going on here? Nobody seems to know.

What instances are people here from, and did you have any trouble?

48
 
 

there is a way to distinguish between themes (in firefox add-ons store) that use one image and the themes that use 2 or 3? there are a lot of themes with additional_backgrounds but use 1 or more images without distinction. I would like to make code css that affect different in each case.

49
 
 

We'll have to find a way without media queries.

50
 
 

Hello!
I was wondering how can I change the background color of the search bar in the history and download menu? (ctrl+j)

Thanks!

view more: ‹ prev next ›