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.
// <pre><nowiki>
(function() {
	var responses = {}, inline = false, indentation = ":", templateName = "", defaultPrompt = "", anew = false, spi = false, unresolved;
	
	$(document).ready(function() {
		mw.loader.using( ['mediawiki.util'], function() {
			// show shortcuts if not editing
			if (!mw.config.get('wgEditMessage')) {
				mw.util.addPortletLink('p-variants', mw.config.get( 'wgServer' ) + '/wiki/Template:Admin dashboard', "Dashboard");
				mw.util.addPortletLink('p-variants', mw.config.get( 'wgServer' ) + '/wiki/Category:Candidates for speedy deletion', "Deletion");
				mw.util.addPortletLink('p-variants', mw.config.get( 'wgServer' ) + '/wiki/User:Alex Shih/Essays/Guide', "Guide");
				mw.util.addPortletLink('p-variants', mw.config.get( 'wgServer' ) + '/wiki/User:Alex Shih/Noticeboards', "Noticeboards");
				mw.util.addPortletLink('p-variants', mw.config.get( 'wgServer' ) + '/wiki/Template:Did you know/Queue', "Queue");
				mw.util.addPortletLink('p-variants', mw.config.get( 'wgServer' ) + '/wiki/User:Alex Shih/SPI', "SPI");
				mw.util.addPortletLink('p-variants', mw.config.get( 'wgServer' ) + '/wiki/User:Alex Shih/Watchlist', "Watchlist");
				mw.util.addPortletLink('p-variants', mw.config.get( 'wgServer' ) + '/wiki/User:Alex Shih/Workspace', "Workspace");
				return;
			}
		});
	});
}());
// </nowiki></pre>