User:机智的小鱼君/personal-sandbox-header-warning

/ '; //他人沙盒警告 var UserSandboxHeaderNormal = ' '; //添加头部 if (wgNamespaceNumber == '2' && wgPageName == 'User:' + wgUserName + '/sandbox' || wgPageName == 'User:' + wgUserName + '/沙盒' ) { //本人 $('#mw-content-text').prepend(UserSandboxHeaderSelf); } else if (wgNamespaceNumber == '2' && wgPageName.substring(wgPageName.length - 8) == '/sandbox' || wgPageName.substring(wgPageName.length - 3) == '/沙盒' ) { //他人 $('#mw-content-text').prepend(UserSandboxHeaderNormal); } //END });