User:PleaseStand/Hide Vector sidebar

Hide Vector sidebar is a user script by PleaseStand 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 Wikipedia

Add the following code to Special:MyPage/vector.js:

importScript("User:PleaseStand/hide-vector-sidebar.js");

Installation on other Wikimedia projects

Add the following code to your vector.js file on your project:

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PleaseStand/hide-vector-sidebar.js&action=raw&ctype=text/javascript');

Hiding only when editing

To hide the sidebar only while in edit mode, using the following instead:

if ( document.getElementById( 'editform' ) ) {
    importScript( 'User:PleaseStand/hide-vector-sidebar.js' );
}

Source code

The source code is available at User:PleaseStand/hide-vector-sidebar.js.

Any questions?

If you have any questions, please leave a message on my talk page.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.