MediaWiki:Gadget-mySandbox.js: Difference between revisions

Undid revision 177872 by Zhuyifei1999 (talk)
(discourage the anon sandboxes)
(Undid revision 177872 by Zhuyifei1999 (talk))
 
(2 intermediate revisions by the same user not shown)
Line 32: Line 32:
// Use Special:MyPage (as opposed to mw.user.getName()) so that it
// Use Special:MyPage (as opposed to mw.user.getName()) so that it
// works for logged-out users as well.
// works for logged-out users as well.
if (mw.user.isAnon()) {title = new mw.Title( 'Project:Sandbox' )}else{title = new mw.Title( 'Special:MyPage/' + conf.subpageName )};
title = new mw.Title( 'Special:MyPage/' + conf.subpageName );


url = new mw.Uri( title.getUrl() );
url = new mw.Uri( title.getUrl() );
checkuser, Administrators
2,635

edits