Content deleted Content added
initial version. |
m +crude timestamp, tweak a bit |
||
Line 1:
/* Special:Contributions CIDR lookup, version [0.0.
Originally from: http://en.wikipedia.org/wiki/User:Splarka/contribsrange.js
Line 8:
* Only currently works if submitted.
* Due to URI length restrictions at Wikimedia, it has to split long queries (123.123.123.0/24 will show in two results).
To do:
* Pagination via timestamp of last listed contribution. Should be possible?
** Sortable by address? (not useful until pagination is available).
* More like normal Special:Recentchanges (hist)(diff) blah blah blah (except talk page existence for red/blue link
* Option to have /23 /22 /21 etc. Require more flexible regex and smarter start/end handling.
* Option to refresh on page? (not really needed, but might be more handy than onload action only).
Line 65:
return;
}
res.appendChild(document.createTextNode(cidr.length + ' matches in the CIDR range specified (chronologically): '));
if(cidr.length == parseInt(cidrlimit)) {
res.appendChild(document.createElement('br'));
Line 71:
}
res.appendChild(document.createElement('hr'));
res.appendChild(document.createTextNode('List of the contribs found:'));▼
for(var i=0;i<cidr.length;i++) {
▲ res.appendChild(document.createTextNode('
addlinkchild(res, wgScript + '?title=Special:Contributions/' + cidr[i].user, cidr[i].user);
res.appendChild(document.createTextNode(' edited ('));
|