Firefox Customs

3 readers
16 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
1
 
 

Mobile-Friendly-Firefox (Friendly-Fox) Updates:

Firefox-ESR 128 update! The Tab Manager Menu is better than ever, now featuring container tab indicators thanks to X-m7. Another wonderful development is that this new version of Firefox includes a fix for a pesky bug. With the new fix, the Tab Manager Menu is now stable, and with the addition of container tab indicators, Firefox on mobile Linux devices possesses yet another feature to show off which is not available on Android/iOS devices. I hope everyone enjoys the new update!

  • Modified true_mobile_landscape-alt.css, true_mobile_landscape.css, true_mobile_mode-alt.css, true_mobile_mode.css, single_tab_mode-alt.css, alt-single_tab_mode-alt.css, single_tab_mode.css, fenix_theme.css, fenix-alt.css, fenix.css, fenix_fox-alt.css, fenix_fox.css, fenix_one-alt.css, and fenix_one.css:

    • fixed Nav Bar
  • Modified tabmenu.css, true_mobile_landscape-alt.css, true_mobile_landscape.css, fenix_fox-alt.css, fenix_fox.css, fenix_one-alt.css, and fenix_one.css:

    • added container tab indicators to tab manager menu*
  • Modified tab_manager_button.css, true_mobile_landscape-alt.css, true_mobile_landscape.css, fenix_fox-alt.css, fenix_fox.css, fenix_one-alt.css, and fenix_one.css:

    • disabled tab manager menu tab counter
      • In order to allow container tab indicators to be shown to the left of tabs in the tab manager menu, the tab counter within that menu has been disabled instead of relocated.
  • Modified fenix_theme.css, fenix-alt.css, fenix.css, fenix_fox-alt.css, fenix_fox.css, fenix_one-alt.css, and fenix_one.css:

    • themed closeDuplicateTabs button
  • Modified fenix_colors.css, fenix_one-alt.css, and fenix_one.css:

    • colorized closeDuplicateTabs button
  • Modified appMenu.css:

    • fixed Main App Menu width
  • Modified custom_rules.css:

    • unhide container tab line by default
  • Modified (default-colors) userContent.css and (fenix-colors) userContent.css:

    • fixed addon toggle button and more options button positions
  • Modified (fenix-colors) userContent.css:

    • fixed addon toggle button color

*Thanks to X-m7 for submitting issue #8 which has been implemented in this release.

#MobileFriendlyFirefox #FriendlyFox

~ Emma ❤️

#FirefoxCSS

2
 
 

Mobile-Friendly-Firefox (Friendly-Fox) Updates:

Support for Firefox-ESR 115 ends with this release (Version 2.11.2).

  • Modified appMenu.css, iconized_main_menu.css, dynamic_popups.css, dynamic_popups_plus.css, dynamic_popups_max.css, dynamic_popups_pro.css, dynamic_popups_pro_max.css, true_mobile_landscape-alt.css, true_mobile_landscape.css, fenix_theme.css, fenix-alt.css, fenix.css, fenix_fox-alt.css, fenix_fox.css, fenix_one-alt.css, and fenix_one.css:

    • added CSS ID #appMenu-mainView to support renaming from #appMenu-protonMainView in Firefox 127*
  • Modified README.md:

    • fixed download links

*Thanks to 1peter10 (@[email protected]) for submitting a pull request which adds the CSS ID #appMenu-mainView (renamed from #appMenu-protonMainView) to ensure good user experience on Firefox 127 and Firefox-ESR 128.

#MobileFriendlyFirefox #FriendlyFox

~ Emma ❤️

#FirefoxCSS

3
 
 

Please would you explain why adding ' > slot' fixed Issue: toolbarbuttons_in_tabs_periphery.css makes some tabs jump several by pixels when hovered, resizing of tabs is weird #419?

What underlying change in Firefox 131 made this necessary?

Similarly, why adding ' > slot' to the 'scrollbox[orient="horizontal"] selector' also fixes this old tab-centering code broken by Fx131.0 update?

#tabbrowser-arrowscrollbox:not([overflowing]){ --uc-flex-justify: center; } scrollbox[orient="horizontal"]{ justify-content: var(--uc-flex-justify,initial); }

CSS userstyle from OP YOUBESEENUMBA1's post 'Update 131.0 broke tab-centering code': https://www.reddit.com/r/FirefoxCSS/comments/1fxb0wb/update_1310_broke_tabcentering_code/

(Note. Fedia's codebox not playing... '#tabbrowser' is always displayed as an unwanted circular link to this site?)

4
 
 

Hello,

I've already hided the preview of tab name on hover when they introduced it back then with: /* disable preview of a tab name as you hover over it */ #tabbrowser-tab-tooltip { display: none !important; }

but I can't seem to find the selector to hide this new feature as well, so I was wondering if I could get some help :D

Thanks in advance!

5
 
 

hi, I would like to know how to Apply margin to web content but not when a video is in fullscreen? and keep the margin when Firefox is in fullscreen. I mean I would like to apply a margin to web content that not affect when a video is in fullscreen. I used this code:

:root:not([chromehidden~="toolbar"]) {
        
        /* Web content */
        & #appcontent{
            margin-inline-start: var(--my-vertical-toolbar-width) !important;
        }

        /* Sidebar + sidebar content */
        & #sidebar-box[checked="true"] {
            margin-inline-start: var(--my-vertical-toolbar-width) !important;
        }

        /* Sidebar + sidebar content + web content */
        & #sidebar-box[checked="true"] ~ #appcontent {
            margin-inline-start: 0px !important;
        }
    }

but that applies a margin when a video is in fullscreen, I tried too this code but removes the margin when Firefox is in fullscreen:

:root:not([chromehidden~="toolbar"],[sizemode="fullscreen"]) {
     ...
}
6
 
 

Hello. When you open the browser toolbox theres a popup message that says if you want to allow the connection and there are three buttons: Accept, deactivate and Cancel. I'm trying to change the style of the deactivate button and I'm not being able to do it. I've tried with this:

button[dlgtype="accept"]:hover,
button[dlgtype="deactivate"]:hover,
button[dlgtype="cancel"]:hover {
 color: var(--color) !important;
 background-color: black !important;
}

And it looks like this:

I don't know if there's a way to disable that message so that it always enters the browser toolbox.

Thanks for any help!

7
 
 

Hey!

I am trying to make a line that goes from one side of the screen to the other under the navbar or the tabs, I have a gradient I'd like to use. I've tried with border bottom but haven't been able to achieve it.

Any suggestions? Thanks!

8
 
 

Hello! I am trying to move the windows buttons (min, max, close) in the top right corner. I changed my tabs to be under the urlbar. It looks like this:

Thanks for any help!

9
 
 

Hello,

I've been using this script for ages, up to the point I forgot that ctrl-f to open and close the findbar wasn't a native behavior. Today I noticed it doesn't work anymore and I think it's FF128 that broke it...but I can't seem to see how to fix it.

Anyone's got ideas?

10
 
 

I'm actually pissed. I and many other users on the forum got an email from Chris Hayes on this:

Hello,

This is a friendly email to make you aware that your personal email address is currently visible to the whole internet via Mozilla's Discourse forum. It will show up in Google Search results. The affected email is the one that this email was sent to.

Many users may not be aware that their email address is publicly visible and Mozilla has not done anything about it in the 4 years it has been known, so I've taken this into my own hands to inform you.

What can you do?

You can update your profile name to be something else (actually, profile name is completely optional, so you can leave it blank if you want).

Steps to update profile name:

  1. If you search for "Mozilla Discourse forum" it should be one of the first results.
  2. Login. (Top-right)
  3. Click on your profile picture at the top right.
  4. Then, click on your username, at the top of the dropdown menu.
  5. Click on the "Preferences" button.
  6. Change the "Name" field, and click "Save Changes".

How did this happen?

There's a misconfiguration with Mozilla's Discourse forum that when you sign up with your Firefox account, it will by default use your personal email address as your profile's public name.

This is not a new issue, and has been known since 2020. The Mozilla Discourse forum is not actively maintained by Mozilla, so this has yet to be fixed.

You are one of 4,630 other users impacted by this privacy issue. It impacts 19% of all forum users, and 28% of new users.

More information:

There's a Discourse discussion about this problem here: https://discourse.mozilla.org/t/email-is-displayed-by-default-for-the-new-account/92266

If you have connections to Mozilla, please help escalate this issue to the right people. This is a serious and long-standing privacy issue at an organization that should value "Privacy by default".

Sincerely,@chrisA fellow Mozillian

I am not Mozilla: This is not an official Mozilla email, I do not represent or work for Mozilla. This is an email from a fellow community member spreading awareness of this unaddressed privacy issue.

11
12
 
 

I tried to set the background colour for my urlbar with #urlbar-input-container { border: none !important; border-radius: 5px !important; background: light-dark(#ffffffff, #1b1e20ff) !important; } this works fine for the most part, except on focus it creates some corner effects, which I think might be from the border that gets overlapped somehow.

And this is how it looks on focus without my code

13
 
 

This colour does not follow my accent colour in KDE plasma. How do I customise it?

14
 
 

hi, I'm using window_control_force_linux_system_style.css and works fine to get the theme styles of the system, but the ':hover' is working bad, the ':hover' effect keep the image or background color even if I'm out of that buttons. with other system themes the effect is more noticeable.

15
 
 

Hey I have an svg of a color animation, it's basically a gradient that loops around. And was wondering if it's possible to change the font color of the active tab to that svg animation.

I've been trying to do it with:

.tabbrowser-tab[selected] .tab-content{ text-color: url(../icons/animation.svg) !important; }

but can't get it to work.

Thanks for any help!

16
 
 

Hello! I was wondering how can I change the colors that appear when you inspect an element. They look like this: And also was wondering how can I change the popup that appears when you right click the style sheets in the style editor in the toolbox. It looks like this: https://imgur.com/a/S47spyg

Thanks!

17
 
 

Hi, I used this code and it used to work perfectly, but I tried it just now and I'm having some visual issues like in the screenshot.
1.- the url border (not open, not focus) display 1px inside the url default border.
2.- when urlbar is open the border don't expand properly.

18
 
 

hi,
I wonder if is possible to fix this rare behavior when I apply the next css in the new-tab:

body{
backdrop-filter: brightness(99%);
}

if I don't add the filter there isn't a scroll.

19
 
 

hi, I'm asking for help to solve this inconvenient when I try to replace the default wallpapers in newtab page.
Fist of all I'm using the developer Firefox version that use beta version to do this.

I have activated this preference in about:config page:

browser.newtabpage.activity-stream.newtabWallpapers.enabled to true

after that I replaced the wallpapers thumbnails successfully with the next code:

/* Miniaturas de wallpapers */

/* Dark */

.wallpaper-input.dark-landscape { background-image: url("../newtab/wallpaper-dark.png") !important; }

.wallpaper-input.dark-panda { background-image: url("../newtab/wallpaper-dark2.png") !important; }

.wallpaper-input.dark-color { background-image: url("../newtab/wallpaper-dark3.png") !important; }

.wallpaper-input.dark-sky { background-image: url("../newtab/wallpaper-dark4.png") !important; }

.wallpaper-input.dark-mountain { background-image: url("../newtab/wallpaper-dark5.png") !important; }

.wallpaper-input.dark-beach { background-image: url("../newtab/wallpaper-dark6.png") !important; }

but when I try to replace the wallpaper for the first image in newtab page it don't work with the path I used to use, for example this code:

body:has(#dark-landscape[aria-checked="true"]){
--newtab-wallpaper-dark: url("../newtab/wallpaper-dark.png") !important;
    }

and only works when I use a url for the new image like this:

body:has(#dark-landscape[aria-checked="true"]){
--newtab-wallpaper-dark: url(https://i.imgur.com/It1Ugaa.png) !important;
}

so I wonder if is my mistake or is a Firefox bug, or maybe there is a trick to solve it? cause I would like to use local images and not urls.

20
 
 
21
 
 

Hello,

basically title.

I often found such icons in CSS snippets, but never truly understood where I could see them all and now that I'm trying to do stuff with icons for my style I would truly benefit understanding how to find all these icons and how I could properly use them.

Thanks in advance to anyone who will try to help me :D

22
 
 

Hello,

I used to open the browser toolbox (since the keyboard shortcut never worked for me on none of my 4 PCs) opening the hamburger menu, clicking more tools and there there was an entry for it, but it's now missing.

Did they move it or what?

23
 
 

Hello, guys. I am having trouble editing the New Tab.

for some reason, i am unable to edit the .logo image. not even in the inspector. the new image just doesnt load.

i tried .svg and .png files, neither worked.

i feared it could be where the new image location, but then i put the full path and it did load anyway.

everything else i did on the about:newtab work. i even managed to change the color of the "Firefox" trademark

what should i do?

the file is in /chrome/fb1.png

that is my code

.logo {
	background-image: url("fb1.svg") !important;
}
24
 
 

This one has been driving me crazy for ages...

When I use the Browser Toolbox - with the option Disable popup auto-hidebeing checked - and I hover over or select an element in the inspector , the info panels/tooltips that are usually displayed above and/or in front of the targeted/selected elements are covered by the open popups.

Also, the selected UI popup parts are not highlighted as they would be for other bits, there's only that dotted grid visible - again partially hidden - that gives you a general idea of what you are looking at.

This is on MacOs/Fx 115esr; I understand the issue is the same on Windows.

I've tried lots of css and javascript codes to find a way to target that thing, but to no avail.

The Fx popups in general have a silly high z-index, so that might be part of the issue; I'm wondering if there's any way to fix that.

Screenshot below.

Screenshot

25
 
 

EDIT 3 - The r/FirefoxCSS sub 'resurfaced' mid-afternoon today, Saturday 27Apr24... over 4 days after it had closed again due to the 2nd 'gone private' blackout incident triggered for unknown reasons by a person or persons unknown on Tuesday afternoon. Previous and only current Mod 'yawn_zz' reappeared alive and well and apparently back in sole control of "his" sub. Hmm? Mild flamewars and some Mod deleting of critics' and disbelievers' posts ensued.

The good news is that the r/FirefoxCSS sub's extensive and valuable back history appears to be recovered and fully searchable again. :D

No explanation(s) offered for the 2nd 4-day-long blackout period or how/who/why the silly and petulant 'PRIVATE SUB FOR STAR FOX FANS' notice got posted? Same credulity-straining story about Pro-Palestinian protestors hijacking Mod's unlocked phone offered for 1st half-day 'gone private' blackout incident last Monday. Novacula occami... "When you hear hoofbeats, think of horses not zebras"... Caveat emptor!


EDIT 2 - Regrettably the 'gone private' incident resumed pm Tue 23Apr24... this time with a silly 'PRIVATE SUB FOR STAR FOX FANS. BEST NINTENDO GAME EVER!' notice added... suggesting r/FirefoxCSS Mod has been hacked and is being trolled. An alternative suggestion is that sole Mod may be doing the trolling for unknown/unexplained reasons? :(


EDIT 1 - ~~Gone 'private' incident over~~ r/FirefoxCSS ~~reappeared a short while ago after >8 hours blackout no longer a 'private' sub.~~ ~~Phew!~~

~~Explanation of sorts was posted by Mod at:~~ https://www.reddit.com/r/FirefoxCSS/comments/1caovpr/why_was_this_subreddit_closed/ (this post and sceptical comments from users Re: Mod's bizarre blackout explanation was then deleted before the 2nd 'gone private' incident began. Unknown if this was just a coincidence or deliberate trolling?)


ORIGINAL POST - The r/FirefoxCSS sub suddenly went private this afternoon, Monday 22nd April 2024.

No warning, no discussion, no explanation.

A minor tragedy... all those years of questions and answers, thousands of CSS code snippets, and a myriad of other info about the inner workings of Firefox all now hidden from general view and no longer searchable. What a waste!

A 'private' CSS help sub is next to useless IMO. A sad loss. :(

See also: https://www.reddit.com/r/firefox/comments/1cafqvr/does_anyone_know_why_rfirefoxcss_is_closed/

view more: next ›