User:Shahadat/Hide Vector sidebar
Hide Vector sidebar is a user script by Shahadat that hides the sidebar of the Vector skin. To access the navigation links, you can temporarily show the sidebar by choosing "Show sidebar" from Vector's drop-down menu. Firefox users should be able to press alt-shift-a to hide/show the sidebar, but users of other browsers such as Internet Explorer are out of luck. If you use one of those web browsers, I would appreciate it if you could suggest an alternative accesskey (alt-a conflicts with the shortcut for the Favorites menu). Alt-a appears to work with Chrome. Ctrl-opt-a for Safari.
A screenshot is coming soon, but it is not here yet. The script, however, should work exactly as I describe—I successfully have tested it on most of the big five web browsers. I don't know whether or not it works on Chrome, but if it works for you, please tell me.
Installation on the English Justapedia
Add the following code to Special:MyPage/vector.js:
importScript("User:Shahadat/hide-vector-sidebar.js");
Hiding only when editing
To hide the sidebar only while in edit mode, using the following instead:
if ( document.getElementById( 'editform' ) ) {
importScript( 'User:Shahadat/hide-vector-sidebar.js' );
}
Source code
The source code is available at User:Shahadat/hide-vector-sidebar.js.
Any questions?
If you have any questions, please leave a message on my talk page.
Script Attribution
![]() | This script was manually imported from Wikipedia in compliance with their CC-BY-SA license. This script is utilized either partially or in full, incorporating corrections, modifications, or imported from the original script. For details regarding the original script and its creator, please refer to the following link: https://en.wikipedia.org/wiki/User:PleaseStand/Hide_Vector_sidebar |