MediaWiki:Gadget-markadmins.js: Difference between revisions
From Test Wiki
Content deleted Content added
import |
No edit summary |
||
| Line 32: | Line 32: | ||
var $links = $content.find('a[title^=" |
var $links = $content.find('a[title^="User"], a[title^="Talk"]'); |
||
| Line 67: | Line 67: | ||
var matches, user, flags = [], tips = [], flag; |
var matches, user, flags = [], tips = [], flag; |
||
matches = /^ |
matches = /^User:(.+)|Talk:(.+)/.exec(link.title); |
||
if (!matches) return; |
if (!matches) return; |
||
if (matches[2] && users_talkLinkOnly.indexOf(matches[2]) !== -1) { |
if (matches[2] && users_talkLinkOnly.indexOf(matches[2]) !== -1) { |
||