User:Deltaneos/monobook.js

// install wikipedia:User:Cacycle/wikEdDiff enhanced diff view using ajax importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEdDiff.js&action=raw&ctype=text/javascript');

// "File - " -> "File:" if (document.getElementsByClassName('ns-6')) if (document.getElementById('firstHeading')) { document.getElementById('firstHeading').innerHTML = document.getElementById('firstHeading').innerHTML.replace('File - ','File:'); document.title = document.title.replace('File -', 'File:'); }

// add history link to new message box if ( document.getElementsByClassName('usermessage')[0] ) document.getElementsByClassName('usermessage')[0].innerHTML += ' (history)';

// Get one of the search buttons to only search in the mainspace if (document.getElementsByClassName('default-tab-value')[1]) for (i = 1; i < document.getElementsByClassName('default-tab-value').length; i++) document.getElementsByClassName('default-tab-value')[i].setAttribute('value', '');

// Fix nested hlists without HTMLTidy if (document.getElementsByClassName('hlist')[0]) { var hlists = document.getElementsByClassName('hlist'); for (var i = 0; i < hlists.length; i++) { var items = hlists[i].getElementsByTagName('li'); for (var j = 0; j < items.length; j++) items[j].innerHTML = items[j].innerHTML.trim; } }

// Get rid of odd tab var tabs = document.getElementsByClassName('pBody')[0].getElementsByTagName('li'); for (var i in tabs) if (tabs[i].innerHTML == '&amp;lt;class&amp;gt;') tabs[i].style.display='none';