MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
var $text = $(this).text(); | var $text = $(this).text(); | ||
return $text.match(/^\d{1,3}:\d{1,3}/); | return $text.match(/^\d{1,3}:\d{1,3}/); | ||
}).parent( | }).parent().css({'display': 'none'}); | ||
})(jQuery); | })(jQuery); | ||
Revision as of 12:48, 21 July 2014
/* Размещённый здесь код JavaScript будет загружаться пользователям при обращении к каждой странице */
(function($) {
$('.mw-allpages-table-chunk a').filter(function() {
var $text = $(this).text();
return $text.match(/^\d{1,3}:\d{1,3}/);
}).parent().css({'display': 'none'});
})(jQuery);