User:Also-Happy-melon/monobook.js

//Toolbox links

if (wgNamespaceNumber >= 0){ $(function{ mw.util.addPortletLink('p-tb', mw.config.get('wgServer')+mw.config.get('wgScript')+'?title=Special:Log&page='+wgPageName, 'Page logs', 't-pagelog', 'View logs for this page', '', document.getElementById('t-upload')) })}

if (wgNamespaceNumber == 2){ $(function{ mw.util.addPortletLink('p-tb', mw.config.get('wgServer')+mw.config.get('wgScript')+'?title=Special:Listusers&limit=1&username='+wgTitle.split('/')[0], 'User rights', 't-userrights', 'View rights for this user', '', document.getElementById('t-upload')) })}

if (wgNamespaceNumber > 0){ $(function{ mw.util.addPortletLink('p-tb', mw.config.get('wgServer')+mw.config.get('wgScript')+'?title=Special:Prefixindex/'+wgPageName+'&limit=100', 'Subpages', 't-prefix', 'View subpages of this page', '', document.getElementById('t-upload')) })}

//Collapse FAQ on Village pump (technical)

function HideVPFAQ{ var t=document.getElementById('villagepumpfaq'); if(!t) return; t=t.getElementsByTagName('TABLE'); if(!t || t.length==0 || t[0].id.substr(0,16)!='collapsibleTable') return; collapseTable(t[0].id.substr(16)); } if(doneOnloadHook) HideVPFAQ; //if imported dynamically else addOnloadHook(HideVPFAQ);

//Move search bar up

$(function {   document.getElementById("column-one").insertBefore(document.getElementById("p-search"), document.getElementById("p-interaction")) })

/* Hide things in the edit window */

if (wgAction == "edit"){ function cleanEditWindow{ document.getElementById('siteSub').style.cssText = 'display: none'; }   addOnloadHook(cleanEditWindow); }

importScript('User:Happy-melon/previewtemplatelastmod.js'); // Linkback: User:Anomie/previewtemplatelastmod.js

function testBorders { if (document.getElementById('bodyContent').className=="css-borders") { document.getElementById('bodyContent').className=(""); } else { document.getElementById('bodyContent').className=("css-borders") } }