Wikipedia talk:WikiProject User scripts/Scripts/CleanupTab.js
Usage edit
To link to this script for automatic updates, insert the following code in your monobook.js file:
document.write( "<script type='text/javascript' " + "src='http://en.wikipedia.org/w/index.php?title=Wikipedia:WikiProject_User_scripts/Scripts/CleanupTab.js" + "&action=raw&ctype=text/javascript&dontcountme=s'></script>" );
Otherwise, just copy and paste the entire code, though you'll have to check back periodically or watch the page for updates.
Discussion edit
Kind of ironic that the project page seems to require some clean up.... Andrewski 17:05, 9 June 2006 (UTC)
Vector edit
How about compatibility with Vector skin? --Smihael (talk) 12:35, 28 June 2011 (UTC)
Legacy JavaScript edit
Hello! This script has been detected as using deprecated parameters that need to be replaced with the updated version. Examples include addOnloadHook( ... )
needs to be replaced with $( ... )
or $( function() { ... } )
(depending on use); all wgGlobalVariables need to be properly gotten with mw.config.get( 'wgGlobalVariable' )
; and addPortletLink
needs to be called with mw.util.addPortletLink
. Please see MW:ResourceLoader/Legacy JavaScript for details. Thank you. — {{U|Technical 13}} (e • t • c)
22:35, 19 January 2015 (UTC)