User:Anerisys/vector.js

var contribution_day = 0; var contribution_count = 0;

if (	mw.config.get("wgNamespaceNumber") == -1	&& mw.config.get("wgCanonicalSpecialPageName") == "Contributions"	// && // contributions list not empty	// && // not already added ) {

for ( contribution_day = 0; contribution_day < document.getElementsByClassName("mw-contributions-list").length; contribution_day++ ) {

for ( contribution_count = 0; contribution_count < document.getElementsByClassName("mw-contributions-list")[contribution_day].getElementsByTagName("li").length; contribution_count++ ) {

var contribution = document.getElementsByClassName("mw-contributions-list")[contribution_day].getElementsByTagName("li")[contribution_count]; if (contribution.querySelector(".mw-changeslist-links") ) { contribution.querySelector(".mw-changeslist-links").appendChild(document.createElement("span")); contribution.querySelector(".mw-changeslist-links").lastElementChild.classList.add("mw-changeslist-edit"); contribution.querySelector(".mw-changeslist-links").lastElementChild.innerHTML="edit"; }		}	}	console.log("contribution_day","contribution_count"); }

/* User contributions edit shortcut */