User:PleaseStand/Hide Vector sidebar

Source: Wikipedia, the free encyclopedia.

Hide Vector sidebar is a user script by

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.