User:NguoiDungKhongDinhDanh/Gadget-markadmins.js: Difference between revisions
From Test Wiki
Content deleted Content added
m - |
For attribution: MediaWiki:Gadget-markadmins.js |
||
| Line 1: | Line 1: | ||
// For attribution: [[MediaWiki:Gadget-markadmins.js]] |
|||
// rewritten by [[m:User:Hoo man]]; 2012-08-26, adapted by [[User:Obersachse]], optimized by [[User:Jack who built the house]] |
|||
(function () { |
(function () { |
||
| Line 90: | Line 90: | ||
matches = /^User:(.+)|Talk:(.+)/.exec(link.title); |
matches = /^User:(.+)|Talk:(.+)/.exec(link.title); |
||
if (!matches) return; |
if (!matches) return; |
||
if |
if (matches[2]) { |
||
if ($(link).parent().hasClass('mw-usertoollinks') || link.textContent.match(/обс/i)) return; |
if ($(link).parent().hasClass('mw-usertoollinks') || link.textContent.match(/обс/i)) return; |
||
matches[1] = matches[2]; |
matches[1] = matches[2]; |
||