MediaWiki:Gadget-mySandbox.js: Difference between revisions

discourage the anon sandboxes -- revert if you disagree
(Undid revision 172159 by Zhuyifei1999 (talk) -- no need, anon won't load this.)
(discourage the anon sandboxes -- revert if you disagree)
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.
title = new mw.Title( 'Special:MyPage/' + conf.subpageName );
title = new mw.Title( mw.user.isAnon() ? 'Project:Sandbox' : ( 'Special:MyPage/' + conf.subpageName ) );


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

edits