Skip to content
TheChatArchiveThe Chat Archive
chatgpt-4o-latest-20250326· OpenAIHugging Face LMArena Human Preference 140K

this is not working; in firefox userchrome.css #context-setDesktopBackground { display:…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Metallama-3.3-70b-instruct’s answer.
  1. User

    this is not working; in firefox userchrome.css

    #context-setDesktopBackground { display: none !important; }

  2. Assistant

    If your Firefox userChrome.css customization to hide the "Set Desktop Background" context menu item is not working, here are several steps and checks to troubleshoot and fix the issue:


    ✅ 1. Confirm userChrome.css is Enabled in Firefox

    By default, Firefox disables userChrome.css. You need to explicitly enable it.

    Steps to enable:

    1. Open a new tab and go to about:config
    2. Search for:
      toolkit.legacyUserProfileCustomizations.stylesheets
      
    3. Make sure it’s set to true. If not, double-click to toggle it.

    ✅ 2. Confirm Correct File Location and Structure

    Your userChrome.css file should be placed in the correct directory inside your Firefox profile.

    Structure should look like:

    C:\Users\<YourName>\AppData\Roaming\Mozilla\Firefox\Profiles\<YourProfile>.default-release\chrome\userChrome.css
    
    • If chrome folder doesn't exist, create it.
    • Make sure the filename is exactly: userChrome.css (not .txt or userChrome.css.css)

    ✅ 3. Confirm CSS Syntax is Correct

    You're trying to hide:

    #context-setDesktopBackground {
        display: none !important;
    }
    

    This selector is correct as of older versions of Firefox, but it's possible that the ID has changed in recent versions (especially post-Firefox 89+ UI changes).

    To find the current ID:

    1. Use Firefox’s Browser Toolbox:

      • Open DevTools on the browser UI (not page content).
      • Menu > More Tools > Browser Toolbox
      • Inspect the right-click context menu to find the exact ID of items.
    2. The Set Desktop Background menu item might now use a different ID or might not even appear in all contexts (e.g., depending on image type or permissions).


    ✅ 4. Add Some Debug Styling to See if CSS is Applying

    Try something like this in userChrome.css to check if it’s being applied at all:

    #context-setDesktopBackground {
        color: red !important;
        display: none !important;
    }
    

    If nothing changes — your CSS isn’t getting picked up at all → backtrack to step 1/2.

    If the color changes but it doesn’t hide — the ID might not be correct anymore.


    ✅ 5. Restart Firefox (Full Restart)

    Changes to userChrome.css only take effect after a full restart of Firefox. Close all browser windows and reopen Firefox.


    ✅ 6. Firefox Version Compatibility

    New Firefox versions sometimes change the context menu structure, so the internal ID of this item might have changed or the menu might be generated dynamically (e.g., via JavaScript).


    🔍 Alternative: Use Attribute or Partial Match

    If inspecting shows a different attribute or label, try something like:

    menuitem[label="Set Desktop Background"] {
        display: none !important;
    }
    

    ⚠️ Note: Label-based hiding is language-dependent (e.g., it won't work if using Firefox in a non-English language).


    ✅ Final Working Example

    Try this full CSS (in case of language/localization differences):

    menuitem[label="Set Desktop Background"],
    #context-setDesktopBackground {
      display: none !important;
    }
    

    Let me know your Firefox version, and I can check the latest internal menu ID as of that version.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.