user:js/bottomSidebar
bottomSidebar | |
---|---|
Browsers | . |
Skins | Monobook, Simple |
Languages | * |
Code | . |
Released | 2008-03-07 |
Updated | 2009-07-26 |
Developer | AlexSm |
Script moves Sidebar to the bottom of the page, like this:
- Main page
- Content
- …
- About Wikipedia
- …
- What links
- Related
- …
Try it out now: copy-paste this into browser address field and press Enter:
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:
<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>