user:js/bottomSidebar

From OpenWetWare
Jump to: navigation, search
bottomSidebar
Browsers .
Skins Monobook, Simple
Languages *
Code .
Released 2008-03-07; 9 years ago
Updated 2009-07-26; 8 years ago
Developer   AlexSm

Script moves Sidebar to the bottom of the page, like this:

(Content)
navigation
  • Main page
  • Content
interaction
  • About Wikipedia
search
 
toolbox
  • What links
  • Related




Try it out now: copy-paste this into browser address field and press Enter:</br> javascript:importScript('user:js/bottomSidebar.js');void 0


To access Sidebar, either scroll to the bottom of the page,
or click anywhere on the left edge of the window, which makes Sidebar appear on the left again.


Installation: add this to your monobook.js:</br> <source lang=javascript> importScript('user:js/bottomSidebar.js') //user:js/bottomSidebar </source>


Customization:

  • Set the width of the left clickable edge (default is '1em'):

<source lang=javascript> bottomSidebarPanel = '15px' //width of clickable edge on the left </source>

  • Make sidebar appear by hovering your mouse instead of clicking:

<source lang=javascript> bottomSidebarMode = 1 //switch on mouseover </source>

  • You can call the script only on certain pages, where extra horizontal width is especailly useful. The following example calls the script on all special pages (like Wachlist and Recent Changes), on History page and on Edit page.

<source lang=javascript> if (wgCanonicalNamespace=='Special' || /edit|submit|history/.test(wgAction))

importScript('user:js/bottomSidebar.js')

</source>


ru:user:js/bottomSidebar