User:Abelmoschus Esculentus/Userspace.js

// function usearch { mw.util.addPortletLink('p-tb', '#', 'Search own userspace', 'aca-usearch', null, null); var username = mw.config.get('wgUserName'); $('#aca-usearch').click(function {		var input = prompt("Enter the subpage you wish to open (User:"+username+"/??)");		if (input === null) return;		window.location.href = "https://en.wikipedia.org/wiki/User:"+username+"/"+input;	}); } mw.loader.using(['mediawiki.util', 'mediawiki.api', 'mediawiki.Title', 'mediawiki.RegExp'], function {	usearch; }); //