User:Untold Cacoethes/wikia.js

var recentChangesHighlightAnonymous = function { $('.mw-userlink').each(function (index, $link) {       var username = $link.title;        var isIPAddress = function (username) {            if (mw.util.isIPv4Address(username))                return true;            if (mw.util.isIPv6Address(username))                return true;            return false;        };        // figure out if it is a contributions page or user page link        username = username.split('/');        // if it contains a / it is a contributions link        if (username.length > 1) {            username = username[1];        } else {            username = (username[0].split(':'))[1];        }

if (isIPAddress(username)) { $($link).parent .parent .parent .parent .css('background-color', 'rgba(255, 0, 0, 0.5)'); }   }); };

window.ajaxCallAgain = window.ajaxCallAgain || []; window.ajaxCallAgain.push(recentChangesHighlightAnonymous);

importArticles({   type: 'script',    articles: [        'u:dev:AjaxRC/code.js'    ] });