User:Senemmar/monobook.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
The accompanying .css page for this skin can be added at User:Senemmar/monobook.css. |
/*<pre>*/
importScript('MediaWiki:Gadget-HotCat.js');
importScript("MediaWiki:UserMessages.js");
importScript("MediaWiki:Quick-delete.js");
// add Dupe-template using a parameter parsed from the current URL
document.write('<script type="text/javascript" src="/w/index.php?title=User:OsamaK/DupesScript.js&action=raw&ctype=text/javascript"><\/script>');
function InsertButtonsToToolBar()
{
tooly = document.getElementById('toolbar');
if (tooly != null)
{
nld= " | <a href=\"javascript:insertTags('{{subst:nld}}','','');\">nld</a>";
PS= " | <a href=\"javascript:insertTags('{{speedydelete|[[COM:PS]]}}','','');\">PS</a>";
tooly.innerHTML = nld+PS;
}
}
addOnloadHook(InsertButtonsToToolBar);
/*</pre>*/