↓
 

A Pipe and a Keyboard

A sort of Linux scrapbook

  • Home
  • About
  • Software
  • List of posts

Category Archives: Tech stuff

Post navigation

1 2 3 4 … 27 28 >>

Tab bar broken again in Firefox 133

A Pipe and a Keyboard Posted on November 29, 2024 by RichardNovember 29, 2024

Firefox has updated and once again the Tab Bar is on top!

Why they keep doing this is beyond me. It is damned irritating.

The fix is detailed HERE.

In case that link disappears the technique and code are as follows.

Locate your userChrome.css

  • First, you need to enable the userChrome.css file. If you’ve done this before, you’re probably already muttering, “Here we go again…”
  • Click ‘Help’ > ‘More troubleshooting information’ > Profile folder – ‘Open folder’
  • Navigate to your Firefox profile folder.
  • Inside, create a folder named chrome if it doesn’t exist.

Add the Magic Code

  • Inside the chrome folder, create a file named userChrome.css. (Feel free to mumble, “Thanks for the extra work, Mozilla.”)
  • Paste the following code into your userChrome.css file:
  • SAVE and exit Firefox.
  • Restart Firefox

Celebrate Victory

The Code:

/*Additions by Codehaven - Mike to change specific sizes*/

/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_on_bottom_v2.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */

/* This reorders toolbar to place tabs below other toolbars. Requires Firefox 133+ */

@media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"){
  #nav-bar > .titlebar-buttonbox-container{
    order: -1 !important;
    > .titlebar-buttonbox{
      flex-direction: row-reverse;
    }
  }
}
@media not (-moz-bool-pref: "sidebar.verticalTabs"){
  .global-notificationbox,
  #tab-notification-deck,
  #TabsToolbar{
    order: 1;
  }
  #TabsToolbar > :is(.titlebar-spacer,.titlebar-buttonbox-container){
    display: none;
  }
  :root[sizemode="fullscreen"] #nav-bar > .titlebar-buttonbox-container{
    display: flex !important;
  }
  :root[tabsintitlebar] #toolbar-menubar:not([autohide="false"]) ~ #nav-bar{
    > .titlebar-buttonbox-container{
      display: flex !important;
    }
    :root[sizemode="normal"] & {
      > .titlebar-spacer{
        display: flex !important;
      }
    }
    :root[sizemode="maximized"] & {
      > .titlebar-spacer[type="post-tabs"]{
        display: flex !important;
      }
      @media (-moz-bool-pref: "userchrome.force-window-controls-on-left.enabled"),
        (-moz-gtk-csd-reversed-placement),
        (-moz-platform: macos){
        > .titlebar-spacer[type="post-tabs"]{
          display: none !important;
        }
        > .titlebar-spacer[type="pre-tabs"]{
          display: flex !important;
        }
      }
    }
  }
}

/* Adjust the height of the Tabs Toolbar */
#TabsToolbar {
    height: 32px !important; /* Neater toolbar height */
    min-height: 32px !important;
    max-height: 32px !important;
    margin: 10px 0 -5px 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
}

/* Adjust tab height to match the toolbar */
#TabsToolbar .tabbrowser-tab {
    height: 36px !important; /* Matches toolbar for a balanced look */
    padding: 0 4px !important; /* Adds slight spacing between tabs */
}

/* Center align tab content */
#TabsToolbar .tab-label {
    line-height: 34px !important; /* Align text with tab height */
    margin: 0 !important;
}

/* Smaller close button for a cleaner appearance */
#TabsToolbar .tab-close-button {
    height: 14px !important; /* Smaller close button */
    width: 14px !important; /* Proportional width */
    margin: 0 2px !important; /* Adjust spacing around the button */
    padding: 0 !important;
}

/* Prevent overflow and ensure neat alignment */
.tabbrowser-tab .tab-stack {
    margin: 0 !important;
    padding: 0 !important;
}

/* Adjust tab icon size */
#TabsToolbar .tab-icon-image {
    height: 18px !important; /* Matches the smaller close button */
    width: 18px !important;
}

Incidentally, There was already a userChrome.css file [probably from a previous fix] so I replaced the entire contents with the above code.

It works!

Posted in Linux, Tech stuff | Leave a reply

WP phpMyAdmin Session mismatch

A Pipe and a Keyboard Posted on February 19, 2024 by RichardFebruary 19, 2024

I recently installed “WP phpMyAdmin” plugin on another WordPress site.

It’s an excellent plugin and saves the tedious business of logging into the hosting server to access the database.

On the second attempt to run the plugin however I ran into a problem –

Session mismatch.
Go back and click Enter phpMyAdmin button again. If you still experience issue, try to open a ticket at Support pages and provide some details.

After a fair bit of a search I came across a fix. Simply enter plugins/wp-phpmyadmin-extension/lib/phpMyAdmin_[followed by string of random characters] and delete the three files starting “_session_temp“

My next task is to write a small batch file to delete these without having to use FTP!

Posted in Blogging, Tech stuff | Leave a reply

Firefox broken again

A Pipe and a Keyboard Posted on May 13, 2023 by RichardMay 13, 2023

The latest update to Firefox broke the display once more by moving Tabs to the top.

I searched and eventually found a fix on Mac’s site – The Foggy Mirror.

After a couple of failed attempts I eventually found how to do it.

  1. Copy the code provided in Mac’s link’
  2. Type about:profiles in the address bar.
  3. At “Preofile: default -> Root directory” click on “Open Directory”.
  4. Enter folder “chrome” or create it if it doesn’t exist.
  5. Save the copied content as a file “userChrome.css” or replace an existing file.
  6. Restart Firefox.

This fixed the Tabs location but I wanted the Toolbar on top. I found the fix for that on Mac’s link too.

  1. Copy the code provided here.
  2. Paste the code at the end of the userChrome.css file [as above]
  3. Restart Firefox.

I did try the second block of code on its own but that broke the site again. With the two blocks together my Firefox is back to its original appearance.

Posted in Tech stuff | Leave a reply

Dell Inspiron 3000 intermittent boot problem

A Pipe and a Keyboard Posted on March 10, 2021 by RichardMarch 10, 2021

I recently acquired a Dell Inspiron 17 3000.

I was very happy with it and straight away went about installing Linux Mint as a dual boot.

That’s when the problems started.

Windows 10 works perfectly (I use the word in the sense that it did what it was supposed to do albeit very slowly) as did Mint. I had split the main 1Tb disk in two and all was fine except for the boot process.

Switching on from a cold start was generally fine. Mint (my default, of course) ran perfectly. The problem would arise on a reboot. The boot loader would fail and I would either get a blank screen with a GRUB curser – “C:grub>” – or the bootloader showing the two operating systems but neither choice would work and just display an “error: command failed”. A soft reboot (Ctrl+Alt+Del) just brought me the the start of the loop again. A hard reboot (switch off/on) wasn’t much better. Eventually after several soft or hard reboots I would be able to get into either OS.

I tried many things to fix this problem. I had scanned the hard drive from both systems so I knew there were no flaws there. I did a factory restore but that didn’t fix anything. I reloaded Mint. I ran Boot Repair with varying options. I mucked around in the bewildering settings in the Dell Boot Setup. Nothing worked.

I resigned myself to a lot of future frustration but at least I could eventually get into the OS I wanted.

Then I got an email from an old friend in the States – Thanks KirkM – giving a link to the solution.

So, for my own future reference –

sudo cp /etc/grub.d/40_custom /etc/grub.d/06_notpm
sudo bash -c 'echo "rmmod tpm" >> /etc/grub.d/06_notpm'
sudo update-grub

I’m naturally wary of code like this just copied off the Web but frustration got the better of me. I tried it.

It works!

Posted in Tech stuff | Leave a reply

Weaver Extreme Info Bar Spacing

A Pipe and a Keyboard Posted on December 16, 2018 by RichardDecember 17, 2018

I am a great fan of Weaver Extreme and its almost limitless variables and customisations.

One problem that irritated me though was the Info Bar, and in particular the Breadcrumbs.

Example 1 => Home→Books→Short Story Collections→Blackjack

To my eye, that looks cramped.  I needed a space each side of the arrows.  I tried a load of things such as trying CSS, searching forums and anywhere else I could think of.  No one else seemed to have the same problem.

Eventually I resorted to the sledgehammer approach: I changed the coding within Weaver.  I don’t like doing that as it has to be redone in the event of an update.  

The file is “themes/weaver-xtreme/includes/lib-runtime.php”.

The line to be changed ( search for ‘weaverx_breadcrumb’ ) is

$delimiter = apply_filters('weaverx_breadcrumb_delimiter', '→'); //' » ';

In fact a fix is almost in place there as there a commented alternative.  Either insert a space each side of  ‘& rarr’ or use the alternative supplied.  I chose the alternative.

Example 2 => Home » Books » Short Story Collections » Blackjack

I’m happy with that.

Posted in Blogging, Tech stuff | Leave a reply

Post navigation

1 2 3 4 … 27 28 >>

Recent Posts

  • GRUB problems
  • Tab bar broken again in Firefox 133
  • WP phpMyAdmin Session mismatch
  • When Linux slows down
  • Firefox broken again

Categories

  • Blogging
  • General
  • Linux
  • Media
  • Tech stuff
  • Writing

Blogroll

  • Head Rambles
  • Kirk M's Just Thinkin'
  • Wordpress Beginner
  • Wordpress Development

Archives

©2025 - A Pipe and a Keyboard - Weaver Xtreme Theme
↑