User:Larivact

From ArchWiki
Jump to: navigation, search

Quick links

Pending talks

Snippets

JavaScript function to sum changes from a MediaWiki contributions page:

function pmsum(suff){nodes=$('.mw-plusminus-'+suff); x=0; for(i=0;i<nodes.length;i++){ s=nodes[i].innerHTML; x+=parseInt(s.substr(1,s.length)) } return x}
net = pmsum('pos') + pmsum('neg')