User:Bob/script/portlets.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* All the extra portlet links I like */

addOnloadHook(function(){
 addPortletLink ('p-tb', 'http://en.wikipedia.org/wiki/Special:Newpages', 'New pages');
 addPortletLink ('p-tb', 'http://en.wikipedia.org/wiki/Special:Log/newusers', 'New users');
 addPortletLink ('p-personal', 'http://en.wikipedia.org/w/index.php?title=Special:MyPage/monobook.css&action=edit', 'css','pt-css','Edit css','',document.getElementById('pt-logout'));
 addPortletLink ('p-personal', 'http://en.wikipedia.org/w/index.php?title=Special:MyPage/monobook.js&action=edit', 'js','pt-js','Edit javascript','',document.getElementById('pt-logout'));
 addPortletLink ('p-navigation', 'http://en.wikipedia.org/wiki/Special:Random/image', 'Random image','n-randomimage','Load a random image','i',document.getElementById('n-randompage'));
});