MediaWiki:Group-sysop.js:修订间差异
MediaWiki界面页面
更多操作
// Edit via Wikiplus |
// Edit via Wikiplus |
||
| 第28行: | 第28行: | ||
href = self.attr('href'), | href = self.attr('href'), | ||
userName = decodeURI(href.substring(href.indexOf('User_talk') === -1 ? href.indexOf('%E7%94%A8%E6%88%B7%E8%AE%A8%E8%AE%BA:') : href.indexOf('User_talk'), href.indexOf('&action=edit'))); | userName = decodeURI(href.substring(href.indexOf('User_talk') === -1 ? href.indexOf('%E7%94%A8%E6%88%B7%E8%AE%A8%E8%AE%BA:') : href.indexOf('User_talk'), href.indexOf('&action=edit'))); | ||
if ( | if (!userName.includes('index.php') && href.includes('redlink=1') && href.includes('action=edit') && !userName.includes('/')) list.push(self.addClass('sendWelcomeMessageLink unsend').bind('click.sendWelcomeMessage', function () { | ||
if ($('#welcomeAskFinished')[0]) $('#welcomeClear').click(); | if ($('#welcomeAskFinished')[0]) $('#welcomeClear').click(); | ||
if ($('#welcomeAsk')[0]) { | if ($('#welcomeAsk')[0]) { | ||