User:Deskana/AbuseFilterCheckuserLink.js

// Only do all this if you're on the Special:AbuseLog page if (mw.config.get('wgNamespaceNumber') == -1 && mw.config.get('wgTitle') == 'AbuseLog') {	// Get the list containing the log actions var ul = document.getElementsByClassName('plainlinks')[0]; // Get the items in the list var items = ul.getElementsByTagName("li");

// Iterate over the list and add the items for (i = 0; i < items.length; i++) {		// Get the IP or username for this list entry var username = jQuery(items[i].getElementsByClassName('mw-userlink')[0].innerHTML).text; // Get the HTML that contains the links var useractionshtml = items[i].getElementsByClassName('mw-usertoollinks')[0]; // Make the checkuser link var culink = ' (check) '; // Add the checkuser link to the other links useractionshtml.innerHTML += culink; } }