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++ ) { document.getElementsByClassName("mw-contributions-list")[contribution_day].getElementsByTagName("li")[contribution_count].querySelector(".mw-changeslist-links").appendChild(document.createElement("span")); document.getElementsByClassName("mw-contributions-list")[contribution_day].getElementsByTagName("li")[contribution_count].querySelector(".mw-changeslist-links").lastElementChild.classList.add("mw-changeslist-edit"); document.getElementsByClassName("mw-contributions-list")[contribution_day].getElementsByTagName("li")[contribution_count].querySelector(".mw-changeslist-links").lastElementChild.innerHTML="edit"; }

}

console.log("contribution_day","contribution_count");

}

/* User contributions edit shortcut */