GhostInTheMachineTalkAllHelpMiscModulesOtherLayoutPhotosProjectsScriptsTidyingTidyingSDTODOUBXWIP2024-08-11 12:50:42

Purpose

edit

The script adjusts the Vector skin to suit my personal preferences.

  • remove the Wikipedia logo to save space in the sidebar
  • remove the logout link to make things safer and to save some space
  • add a "My pages" menu to the sidebar and populates it with links to some of my subpages
  • add a "My gadgets" menu to the sidebar and populates it with assorted handy gadgets and tool
  • remove some of the other menus from the sidebar

The script changes the layout of the "standard" menus and adds extra menus.

Prerequisites

edit

This script was written to move existing menu items added by other scripts and gadgets such as Twinkle.

If the menu items do not exist, then this script will handle that without any fuss.

Installing

edit

Add the following line to your common.js file.

{{subst:Lusc|User:GhostInTheMachine/UI.js'}}

Notes

edit
  • remove the Wikipedia logo from the top of the sidebar
    • phab:T268157 removed the portal-first class ("The portal-first class is redundant in the modern Vector...") and instead suppressed the first sidebar heading via CSS
    • This change caused the first heading to be lost again
    • Fixed by removing the logo ID after it has been hidden
  • remove the Logout link to make things safer (and save a little space)
    • from a discussion in the Village pump in September and October 2020
  • move the Mobile link to the end of the footer row
  • add CSS to make the menu headings stand out more clearly
  • add CSS to use bull characters in hlists
  • create a new menu — My pages
    •   T290280 changed the H3 to a label with class "vector-menu-heading"
    • add menu items for some of my subpages
  • create a new menu — My gadgets
    • add go to top — simple scroll
    • add sub-pages — display a list of subpages of the current page
    • add go to end — simple scroll
    • add Refill — process the current page using Refill
    • move some existing gadget menu items from their current menus
  • copy the Main page link into the standard Tools menu
  • delete all of the standard menus except Tools
  • Short-term workaround for the 2024-06-06 bug in the edit diffs preview  T366845 – see VP discussion
  • Short-term workaround for the 2024-06-20 bug in the diffs display —   T361717

Alternatives

edit

Possible improvements

edit

This script tends to collect small changes all the time

Fix the sub-heading styling broken by   T290280 and probably by   T13555

See also

edit