This gadget will pull the user accounts and IPs from the history page and will strike out the users that are currently blocked.
This gadget will pull the user accounts and IPs from the history page and will strike out the users that are currently blocked.
*/
*/
function markBlocked( container ) {
function markBlocked( container ) {
var ipv6Regex = /^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i;
var ipv6Regex = /^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i;
// Collect all the links in the page's content
// Collect all the links in the page's content
var contentLinks = $( container ).find( 'a' );
var contentLinks = $( container ).find( 'a' );
var mbTooltip = window.mbTooltip || '; blocked ($1) by $2: $3 ($4 ago)';
var mbTooltip = window.mbTooltip || '$1; blocked ($2) by $3: $4 ($5 ago)';
// Get all aliases for user: & user_talk:
// Get all aliases for user: & user_talk:
var userNS = [];
var userNS = [];
for ( var ns in mw.config.get( 'wgNamespaceIds' ) ) {
for ( var ns in mw.config.get( 'wgNamespaceIds' ) ) {