User:Sideswipe9th/V22FloatingToolsMenu

Vector 2022 Floating Tools Menu
DescriptionA script that moves the floating Tools menu to the left hand side of the screen
Author(s)Sideswipe9th
Statusactive
First releasedFebruary 18, 2023; 13 months ago (2023-02-18)
UpdatedDecember 12, 2023
    (3 months ago)
Skin supportVector (2022)
Source
Beta
User:Sideswipe9th/V22FloatingToolsMenu.js
User:Sideswipe9th/V22FloatingToolsMenu-debug-copy.js

Information edit

Vector 2022 Floating Tools Menu is a userscript which takes Vector 2022 (V22)'s Tools menu, and moves it from the right hand side of the page to the left hand side of the page. Like the Table of Contents (ToC), when the Tools Menu is docked to the left side of the screen it will be a floating menu that scrolls independently from the main content area of the page.

How to Use edit

Just add the following to your vector-2022.js page:

importScript( 'User:Sideswipe9th/V22FloatingToolsMenu.js' ); // Backlink: [[User:Sideswipe9th/V22FloatingToolsMenu.js]]

Known Issues edit

Like any good piece of software, there are a few known issues. Thankfully there's also a few workarounds while I figure out how to fix these bugs.

  • Hiding the Main Menu, on a page that does not have a ToC will also hide the tools menu from the sidebar and its dropdown
    This is a result of a bugfix made on 4 March 2023. If your Main Menu is hidden and you want to re-access the tools bar, click on the Hamburger menu on the top left corner of the screen, and then click on the "Move to Sidebar" button.
  • If the Tools Menu is not hidden, it will only appear on the right hand side of the page
    This can be worked around for how by clicking the Hide button on the Tools menu and reloading the page. Once you reload the page, it will now be docked to the left side of the page.
  • The Table of Contents has a built in "jump to" event, which causes the sidebar to "jump" whenever you scroll past headers in the main content area. This can be annoying if you've scrolled down the ToC sidebar to the tools menu before scrolling through the pain content area.
    No workaround for the moment, other than only scrolling the ToC sidebar after you've scrolled the main content area to the place you want on the page.

Bug reports edit

Like any good piece of software, there will be bugs. While I use this script, I unfortunately cannot test every unique hardware or software setup that each user might have. If you do run into bugs, please report them on the talk page and I will endeavour to try and fix them. Also because V22 is still in active development by the Foundation, this may temporarily break at any time if the Foundation rollout any breaking changes to the skin. I'll try to fix these as soon as I can, as it will be bothering me when it happens, but as with any other bug feel free to leave a note on the script's talk page.

Unfortunately I'm only active on enwiki. In theory this script should work on any wiki that uses the V22 skin, however if the CSS class and ID fields are localised for each language then this script will not work out of the box. If this script doesn't work on your Wiki, leave me a message on the talk page with the details and a link to your wiki, and I'll see if I can make a modified version that will work for you.