Custom buttons not recognized, do not appear on toolbar

  • Firefox-Version
    148.02
    Betriebssystem
    Windows 10

    I originally posted here Custom toolbars buttons have no icons, and thanks to all who responded, but the problems were never resolved,

    Up until FF148, two buttons were recognized & still working, but not now

    Here one that was still working before FF148.

    Here's the other one, but I don't know which .js file by name that represents it. I reverted back to v147..04 so I could post the image. Of course, we see all the other scripts were in use at one time.

    I was ask to publish the scripts last time, but there are 15 of them. Instead of posting their contents, can I upload the .js files somehow?:)

  • Zur hilfreichsten Antwort springen
  • Compress the JS files into a ZIP file, then you can upload them.


    Mit <3lichem Gruß

    Mira

  • There are several discussion that might be related to your issues, here or here.

    You could give this a try.
    It's your script with a rough attempt for a fix; if it works in 149+, while your old version worked until 148 (did it?), the onclick (or oncommand) handlers in this and your other scripts might no longer be recognized by the latest Firefox versions.

    Btw., onclick is not to be confused with onClick (capital C ), which in this case is just a random name for the function.

    Or try this one:

    3 Mal editiert, zuletzt von Horstmann (16. März 2026 um 15:37)

  • JavaScript
    // Restart_Firefox.uc.js
    
                    button.style.color = '#ff0000'; // Farbe für das SVG-Icon setzen
                    button.style.paddingLeft = '5px';
                    button.style.paddingTop = '3px';

    Vorschlag:

    Das hier mal kurz in die userChrome.css packen zum testen, das zeigt den sichtbaren Teil der meisten Buttons (zB bei hover):

    CSS
    .toolbarbutton-icon {
        outline: 1px solid green !important;
        outline-offset: -1px !important;
    }

    Dann deinen Button in die Lesezeichenleiste ziehen, und schauen was mit der Leistehöhe passiert, danach auch mal in das Überhangmenü schieben, her dann auch die Textfarbe beachten. :/
    Nicht so dolle, oder? ;)

    Für das Icon würde ich button.style.fill statt button.style.color empfehlen, um das Icon zu verschieben reines CSS, zB sowas (outline nur zum testen):

    CSS
    toolbar #restart-button2a .toolbarbutton-icon {
        outline: 1px solid red !important;
        outline-offset: -1px !important;        
        padding-block: calc(var(--toolbarbutton-inner-padding) + 1px) 
                       calc(var(--toolbarbutton-inner-padding) - 1px) !important;
    }
  • Für das Icon würde ich button.style.fill statt button.style.color empfehlen,

    Danke, habe ich übernommen.

    und schauen was mit der Leistehöhe passiert,

    Nichts.

    Das CSS habe ich bewusst aus dem Skript herausgelassen.
    Ich nutze für die "Umrandung" der Button eine eigenes CSS.

    Mit <3lichem Gruß

    Mira

  • Compress the JS files into a ZIP file, then you can upload them.


    Sorry I didn't respond earlier. Firefox has been randomly crashing. I'm trying to solve that as well. Having a Restart button would be helpful with that as well.

    Is there a way to fully translate these pages to English? I tried to use your script, and Horstmann's script, but the don't appear. Perhaps I'm doing something wrong?

    Here is the .js collection CHROME.zip

    Einmal editiert, zuletzt von juzzlukin (19. März 2026 um 01:29)

  • JavaScript
    // Restart_Firefox.uc.js
    
                    button.style.color = '#ff0000'; // Farbe für das SVG-Icon setzen
                    button.style.paddingLeft = '5px';
                    button.style.paddingTop = '3px';

    Vorschlag:

    Das hier mal kurz in die userChrome.css packen zum testen, das zeigt den sichtbaren Teil der meisten Buttons (zB bei hover):

    I tested the first script. Unsuccessful for me. Should I test it in 149 beta?

    CSS
    .toolbarbutton-icon {
        outline: 1px solid green !important;
        outline-offset: -1px !important;
    }

    Dann deinen Button in die Lesezeichenleiste ziehen, und schauen was mit der Leistehöhe passiert, danach auch mal in das Überhangmenü schieben, her dann auch die Textfarbe beachten. :/
    Nicht so dolle, oder? ;)

    Für das Icon würde ich button.style.fill statt button.style.color empfehlen, um das Icon zu verschieben reines CSS, zB sowas (outline nur zum testen):

    CSS
    toolbar #restart-button2a .toolbarbutton-icon {
        outline: 1px solid red !important;
        outline-offset: -1px !important;        
        padding-block: calc(var(--toolbarbutton-inner-padding) + 1px) 
                       calc(var(--toolbarbutton-inner-padding) - 1px) !important;
    }
    • Hilfreichste Antwort

    juzzlukin
    Auf der Page von Aris => https://github.com/Aris-t2/CustomJSforFx/tree/master/scripts
    gibt es schon einige Skripte, in aktualisierter Form, die Du nutzt.
    Zum Beispiel das "restart_button.uc.js", also der Restartbutton.

    CustomJSforFx/scripts/restart_button.uc.js at master · Aris-t2/CustomJSforFx
    custom scripts. Contribute to Aris-t2/CustomJSforFx development by creating an account on GitHub.
    github.com


    Und alice hat auch das eine oder andere Skript in aktualliesierte Form vorligen.

    Hier die "userChrome.js"
    Diese ist ab Version 141 => https://github.com/alice0775/user…1/userChrome.js
    und jene ab Version 150 => https://github.com/alice0775/user…0/userChrome.js

    Bitte Testen, welche bei Dir funktioniert!
    ------------------------------------------------------------------------------------------------------------------------------------

    On Aris's page => https://github.com/Aris-t2/CustomJSforFx/tree/master/scripts
    there are already several updated scripts that you can use.
    For example, “restart_button.uc.js,” which is the restart button.

    CustomJSforFx/scripts/restart_button.uc.js at master · Aris-t2/CustomJSforFx
    custom scripts. Contribute to Aris-t2/CustomJSforFx development by creating an account on GitHub.
    github.com

    And Alice also has a few scripts available in their updated versions.

    Here is the “userChrome.js” file

    This applies starting with version 141 => https://github.com/alice0775/user…1/userChrome.js
    and that one is for version 150 => https://github.com/alice0775/user…0/userChrome.js

    Please try them out and see which one works for you!

    I'll take a closer look at your other scripts this weekend and test them as well.

    Mit <3lichem Gruß

    Mira

  • Is there a way to fully translate these pages to English? I tried to use your script, and Horstmann's script, but the don't appear. Perhaps I'm doing something wrong?

    Do any Scripts work for you in your updated Firefox versions, or does any CSS work?
    As Mira suggested, make sure to use current versions of your scripts and script loader.

    Btw., the replies #4 and #5 are about a different matter, please ignore.

  • juzzlukin
    On Aris's page => https://github.com/Aris-t2/CustomJSforFx/tree/master/scripts
    there are already several updated scripts that you can use.

    And Alice also has a few scripts available in their updated versions.

    Here is the “userChrome.js” file

    Mira_Belle

    All of my .js button scripts, except for two, come from Aris. Those other two are the only ones that worked, up until the release of FF148: RestartFirefoxButton_Movable.uc.js by xiaoxiaoflood, and rebuild_userChrome.uc.js, By Sporif.

    Please see attachment

    CHROME ACTIVE BUTTONS.zip

    i tried the userChrome.js scripts, with the replaceAndGoSearch.uc.js button. I saw no change. Can you suggest a button that would you know should work?

    Is there a way to fully translate these pages to English? I tried to use your script, and Horstmann's script, but they don't appear. Perhaps I'm doing something wrong?

    Do any Scripts work for you in your updated Firefox versions, or does any CSS work?
    As Mira suggested, make sure to use current versions of your scripts and script loader.

    Btw., the replies #4 and #5 are about a different matter, please ignore.

    Those image I posted are examples of my CSS.

  • All of my .js button scripts, except for two, come from Aris. Those other two are the only ones that worked, up until the release of FF148: RestartFirefoxButton_Movable.uc.js by xiaoxiaoflood, and rebuild_userChrome.uc.js, By Sporif.

    Neither of the userChrome.js scripts worked. I don't see any "Alice" scripts that are under seven years old.

    I only took a quick look at your scripts from #7; most of them are outdated, contain code that is no longer working, a few link to non-existing icons, etc..

    As Mira suggested, go to the Aris repo and replace all your scripts coming from there with the latest versions.
    For Scripts that haven't been updated for a long time, there's a chance you can find a fix in this forum, or you can open a new thread about a specific one; sometimes the related Github discussions contain fixes.

    Make sure to remove the old js files, don't just rename them, eg there is an ID conflict between the two RestartFirefoxButton_Movable scripts, you can't run both without changes.
    It's best to not have several scripts doing the same in general.

    As for userChrome.js, I use a different script loader, I assume you'll need to follow Mira's advice above for that.

    As always, make sure to do a restart with Clear StartUp Cache => about:support after script changes.
    In some cases, it can also help to start Fx in troubleshoot mode, than just quit and restart normally.
    But do not click Refresh Firefox at any point!

  • Aris announced his decision to no longer maintain his CSS website on 12/23/25

    https://github.com/Aris-t2/CustomCSSforFx/discussions/790

    His support for https://github.com/Aris-t2/CustomJSforFx/tree/master/scripts ended a long time before that, and the "Last commit dates" haven't changed for quite some time, so they do not actually reflect how old they are.

    I think I need to start from scratch, perhaps with someone's proven, working sample script loader and and a button script that I can test.

    Rumor has it, someone else has been maintaining some of Aris' JS for a while, but what do I know.

    Either way, a bunch of his scripts have been updated 5 months or less ago, as you can see in that repo, and a bunch of your scripts - those which you uploaded - are outdated versions that no longer work.

    Most current JS codes should work fine with any functional script loading method.

    I'm using this simple script loader, as featured in that somewhat confusing local thread, which appears to be working fine with my stuff and has been for a long time, last tested on some 149 Nighlty.

    For more complex applications, which you also seem to use, you could take a look at this topic, but that's beyond my comprehension.

  • juzzlukin 1. April 2026 um 22:10

    Hat einen Beitrag als hilfreichste Antwort ausgewählt.
  • Rumor has it, someone else has been maintaining some of Aris' JS for a while, but what do I know.

    Either way, a bunch of his scripts have been updated 5 months or less ago, as you can see in that repo, and a bunch of your scripts - those which you uploaded - are outdated versions that no longer work.

    Most current JS codes should work fine with any functional script loading method.

    I'm using this simple script loader, as featured in that somewhat confusing local thread, which appears to be working fine with my stuff and has been for a long time, last tested on some 149 Nighlty.

    For more complex applications, which you also seem to use, you could take a look at this topic, but that's beyond my comprehension.

    Before I begin, please forgive me for not responding sooner. I did not realize that I had to activate notifications in "Manage Account". Sorry for the grammatical errors. The translator wasn't always kind.

    That said, your suggestions and Mira_Belle led me to precisely what I needed. I wish I had seen them sooner.

    Originally, my scripts source was xiaoxiaoflood firefox-scripts. Along with the collection of toolbar scripts, the user must configure the Firefox install directory. I moved the config-prefs.js and config.js files to their assigned locations, but the main difference between the xiaoxiaoflood and Endor collections is the userChromeJS folder, originally placed in the Chrome folder, must now be moved to the Firefox install folder. ***That was supposed to say "userChromeJS folder".

    I now have the return of my "Restart" and Chrome folder opener" buttons, and I will be testing a bunch more

    Unfortunately, the about addons button is on the toolbar, but does not work

    There has also been an unexpected side effect. All of my menus displays changed from this

    to this

    15 Mal editiert, zuletzt von juzzlukin (1. April 2026 um 23:56)

  • Unfortunately, the about addons button is on the toolbar, but does not work

    You could try this for about:addons:

  • juzzlukin 3. April 2026 um 01:57

    Hat einen Beitrag als hilfreichste Antwort ausgewählt.
  • Unfortunately, the about addons button is on the toolbar, but does not work

    You could try this for about:addons:

    Beautiful. Thanks.

    Do you have any instruction on the display changes I posted that happened after the custom button repairs?

    They dominated some of the my_userChrome.css settings. How do I edit my_userChrome.css to shorten the large spaces? I would also like to test a font change as well?

  • Do you have any instruction on the display changes I posted that happened after the custom button repairs?

    They dominated some of the my_userChrome.css settings. How do I edit my_userChrome.css to shorten the large spaces? I would also like to test a font change as well?

    Glad to hear you're making progress with the JS setup. :)

    As for the menu spacing, I don't know your CSS/JS that might be responsible for it.

  • Glad to hear you're making progress with the JS setup. :)

    As for the menu, I don't know your CSS/JS that might be responsible for it.

    It's actually the other way around. Some component of the custom button install has nullified certain portions of the my_userChrome.css file.

    This image is without the custom button install. The search field at the top has bold font

    This is with the custom buttons enabled. Now, as we see, the search field font is no longer bold, but many other areas are bold

    In general, I actually don't mind the bold, but I want that search that search field to remain bold, and would also like to change the font. Currently, It looks like Arial black. It's a little heavy. I would prefer something like Arial Bold,, Segoe UI Bold, or Tahoma Bold.

    This is an example my context menus without the custom buttons enabled, contrasting the other image I posted

    With the custom button enabled, all of my Firefox context menus have that large gap in space.

    2 Mal editiert, zuletzt von juzzlukin (3. April 2026 um 20:25)

  • juzzlukin 3. April 2026 um 20:26

    Hat einen Beitrag als hilfreichste Antwort ausgewählt.
  • I'll take a closer look at your other scripts this weekend and test them as well.

    Hi,

    I just downloaded many of the Alice scripts. So far, the ones I have added to the Chrome folder are working.

    But some of their titles are in German. I tried to edit one of them, but did not see a reference to the title. Can you help?

  • Please post the script in question for reference.

    That's called a tooltip, in the button code it's an entry called tooltiptext .

    tooltiptext might use a variable, in that case you'd need to find that as well.
    However, that JS code schould contain the exact phrase about Seiten öffnen, which shouldn't be too hard to find.
    That's the one you want to change.

    There is also a label ; that would be the name of the button, as displayed in the customize window or the overflow popup.

    Einmal editiert, zuletzt von Horstmann (5. April 2026 um 11:53)