< User:Voice of All
Browse history interactively ← Previous edit Next edit → Content deleted Content addedInline
Revision as of 08:15, 4 August 2006 view source Aaron Schulz (talk | contribs )Extended confirmed users 26,051 edits &&← Previous edit
Revision as of 20:22, 5 August 2006 view source Aaron Schulz (talk | contribs )Extended confirmed users 26,051 editsm add per talkNext edit →
Line 502:
Line 502:
{
{
//notable edits
//notable edits
if (the_sum.search(/ created|create| creation|rastic addition|rastic edit|rastic cha|rastic mod|expansion |rewriting\)|rewriting\)|rewrote|(rewriting|rewrite|rewrote)(completely|page|article)/i) !=-1 || the_sum.search(/(add )(a | )(lot|large|tons|great|signif)|(write|create) (brand|new)|major (ed|ch|mod)|interim save|\(expand(ed|ing| )| expanded\)|contin(uing|ued) (addition|expand|expans|writ)/i) !=-1 || the_sum.search(/(\+|Add|add|more|create |another )(history|paragraph|section|references|sources|sourcing|citations|refs|photos|images|pictures)/i) !=-1 || the_sum.search(/\((.)(eferences|ources|itations|Refs|refs|photos|Images|images|ictures)\)/i) !=-1 || the_sum.search(/(create|created|creating|made|making|quick|\(new|started|starting) (stub|basic|initial|article|page|biog|section|paragr|draft)/i) !=-1 || the_sum.search(/(added|adding) (basic|initial|biog|section|paragr)|creat(e|ed|ing) (page|section|article|biog)/i) !=-1 || the_sum.search(/(references| sources| sourced|citations) add/i) !=-1 || the_sum.search(/(create|created|creation|bio|biography|\(article|\(page\))/i) !=-1)
if (the_sum.search(/ created|create| creation|rastic addition|rastic edit|rastic cha|rastic mod|expansion |rewriting\)|rewriting\)|rewrote|(rewriting|rewrite|rewrote)(completely|page|article)|(major|large|significant) (section|section|addition|rewrite )/i) !=-1 || the_sum.search(/(add )(a | )(lot|large|tons|great|signif)|(write|create) (brand|new)|major (ed|ch|mod)|interim save|\(expand(ed|ing| )| expanded\)|contin(uing|ued) (addition|expand|expans|writ)/i) !=-1 || the_sum.search(/(\+|Add|add|more|create |another )(history|paragraph|section|references|sources|sourcing|citations|refs|photos|images|pictures)/i) !=-1 || the_sum.search(/\((.)(eferences|ources|itations|Refs|refs|photos|Images|images|ictures)\)/i) !=-1 || the_sum.search(/(create|created|creating|made|making|quick|\(new|started|starting) (stub|basic|initial|article|page|biog|section|paragr|draft)/i) !=-1 || the_sum.search(/(added|adding) (basic|initial|biog|section|paragr)|creat(e|ed|ing) (page|section|article|biog)/i) !=-1 || the_sum.search(/(references| sources| sourced|citations) add/i) !=-1 || the_sum.search(/(create|created|creation|bio|biography|\(article|\(page\))/i) !=-1)
{Careful = 'yes'; Minor = 'no'; Minor_nonrv = -1; Notable = 'yes';}
{Careful = 'yes'; Minor = 'no'; Minor_nonrv = -1; Notable = 'yes';}
//significant edit pass 1
//significant edit pass 1
Revision as of 20:22, 5 August 2006
//]<pre><nowiki>
var undefined;
//Helper tools
//admin list
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/search/?title=User:VoABot/adminlist/monobook.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//END
//bot list
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/search/?title=User:VoABot/botlist/monobook.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//END
//History stats
addOnloadHook(addhiststats)
function addhiststats()
{
if (document.getElementById('ca-stats')){return;}
var target = document.title.split(" - ");
var c1 = document.getElementById('column-one');
var tabs = c1.getElementsByTagName('div').getElementsByTagName('ul');
if (location.href.indexOf('&action=history') != -1)
{
addTab("javascript:histstats()", "Stats", "ca-stats", "History statistics", "");
if (document.title.search('(Image:|Template:| talk:|Category:|Portal:|Misplaced Pages:|MediaWiki:|Help:|Talk:|User:)') == -1)
{addTab("http://tools.wikimedia.de/~tim/cgi-bin/contribution-counter?page=" + target + "&namespace=Articles&dbname=enwiki_p", "Editors", "ca-editors", "Editor statistics", "");}
}
else if (location.href.search('Special:Undelete') != -1 && location.href.search('×tamp=') == -1)
{
addTab("javascript:histstats()", "Stats", "ca-stats", "History statistics", "");
}
else if (document.title.indexOf('User contributions') == 0)
{
addTab("javascript:sumperentcuse()", "stats", "ca-sumuse", "User's edit statistics", "");
addTab("javascript:masterview(2000)", "last 2000", "ca-stats2", "view last 2000 edits", "");
addTab("javascript:masterview(5000)", "last 5000", "ca-stats5", "view last 5000 edits", "");
if (!window.ActiveXObject && location.href.search(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/) == -1)
{addTab("javascript:get_userlist_xml()", "rights", "ca-stats6", "Shows user groups", "");}
}
else if (document.title.indexOf('User:') == 0 && document.title.indexOf('/') == -1)
{addTab("javascript:get_userlist_xml()", "rights", "ca-stats6", "Shows user groups", "");}
}
//END
function masterview(number)
{
var c = document.getElementById('contentSub');
var a = c.getElementsByTagName('a');
vandal = a.href;
if (vandal.split("User:") != undefined)
{
vandalb = vandal.split("User:");
if (vandalb.split("&action=edi") != undefined)
{
vandalc = vandalb.split("&action=edit");
location.href = 'http://en.wikipedia.org/search/?title=Special:Contributions&target=' + vandalc + '&offset=0&limit=' + number;
}
else
{
location.href = 'http://en.wikipedia.org/search/?title=Special:Contributions&target=' + vandalb + '&offset=0&limit=' + number;
}
}
else if (vandal.split("User_talk:") != undefined)
{
vandalb = vandal.split("User_talk:");
if (vandalb.split("&action=edi") != undefined)
{
vandalc = vandalb.split("&action=edit");
location.href = 'http://en.wikipedia.org/search/?title=Special:Contributions&target=' + vandalc + '&offset=0&limit=' + number;
}
else
{
location.href = 'http://en.wikipedia.org/search/?title=Special:Contributions&target=' + vandalb + '&offset=0&limit=' + number;
}
}
}
//END
//***********************
//standard XML Support
function HTTPClient()
{
var gml_http;
if(window.XMLHttpRequest) {
gml_http = new XMLHttpRequest();
} else if (window.ActiveXObject) {
try {
gml_http = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
gml_http = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
gml_http = false;
}
}
}
return gml_http;
}
function gml_XMLParse(string) {
if (document.implementation.createDocument) {
return gml_xmlparser.parseFromString(string, "text/xml");
} else if (window.ActiveXObject) {
var gml_xmldoc = new ActiveXObject("Microsoft.XMLDOM");
gml_xmldoc.async = "false";
ret = gml_xmldoc.loadXML(string);
if (!ret)
return null;
return gml_xmldoc.documentElement;
}
return null;
}
//END
//**********
function get_userlist_xml()
{
document.getElementById('contentSub').innerHTML += '<br><strong>Searching for current usergroup information.' + '\n' + 'Please wait...</strong>';
gml_xmlhttp = HTTPClient();
if (!gml_xmlhttp)
return;
if (document.title.indexOf('User:') == 0)
{var user = document.title.split('User:').split(' - ');}
else
{var user = document.getElementById('contentSub').getElementsByTagName('a').innerHTML;}
var pageurl = '/search/?title=Special:Listusers&group=&username=' + user;
gml_xmlhttp.open("GET", pageurl, true);
gml_xmlhttp.onreadystatechange = alertget;
gml_xmlhttp.send(null);
}
function getusergroup()
{
gml_xmlhttp = HTTPClient();
if (!gml_xmlhttp)
return;
var pageurl = '/search/?title=Special:Listusers&group=sysop&limit=5000';
gml_xmlhttp.open("GET", pageurl, true);
gml_xmlhttp.onreadystatechange = userget;
gml_xmlhttp.send(null);
}
function alertget()
{
if (gml_xmlhttp.readyState != 4)
return;
xml = gml_xmlhttp.responseText.replace(/<body.*"ns-4">/, '<body class="ns-4">');
doc = gml_XMLParse(xml);
var l = doc.getElementsByTagName('li');
if (document.title.indexOf('User:') == 0)
{var user_name = document.title.split('User:').split(' - ');}
else
{var user_name = document.getElementById('contentSub').getElementsByTagName('a').innerHTML;}
if (user_name.indexOf('FAQ') != -1)
{user_name = document.getElementById('bodyContent').getElementsByTagName('a').innerHTML;}
document.getElementById('contentSub').innerHTML += '<br><span style="color:blue;"><strong>Usergroup list obtained. Seaching for ' + user_name + '.</strong></span>';
var Jimbo = 'no';
var Larry = 'no';
if (user_name == "Jimbo Wales"){Jimbo = 'yes';}
if (user_name == "Larry Sanger"){Larry = 'yes';}
var Sysop = '';
var BCrat = '';
var CheckUser = '';
var Steward = '';
var Developer = '';
var Oversight = '';
var Boardvote = '';
var Import = '';
for (i = 0; i < l.length; i++)
{
var name = l.getElementsByTagName('a').innerHTML;
if (name == user_name)
{
if (l.innerHTML.indexOf('Bureaucrat<') != -1){BCrat = 'Bureaucrat' + '\n';}
if (l.innerHTML.indexOf('checkuser') != -1){CheckUser = 'CheckUser' + '\n';}
if (l.innerHTML.indexOf('Steward') != -1){Steward = 'Steward' + '\n';}
if (l.innerHTML.indexOf('Sysop<') != -1){Sysop = 'Sysop' + '\n';}
if (l.innerHTML.indexOf('developer') != -1){Developer = 'Developer' + '\n';}
if (l.innerHTML.indexOf('oversight') != -1){Oversight = 'Oversight' + '\n';}
if (l.innerHTML.indexOf('boardvote') != -1){Boardvote = 'Boardvote' + '\n';}
if (l.innerHTML.indexOf('import,') != -1){Import = 'Import' + '\n';}
}
}
if (Jimbo == 'yes' || Larry == 'yes')
{alert("User " + user_name + " belongs to the following user groups:" + "\n" + "-----" + "\n" + Sysop + BCrat + Steward + "\n" + "-----" + "\n" + "\n" + "With:" + "\n" + CheckUser + Oversight + Developer + Boardvote + Import + "\n" + "-----" + "\n" + "Jimmy Wales and Larry Sanger are the founders of Misplaced Pages.")}
else if (Sysop != '' || BCrat != '' || CheckUser != '' || Steward != '')
{alert("User " + user_name + " belongs to the following user groups:" + "\n" + "-----" + "\n" + Sysop + BCrat + Steward + "\n" + "-----" + "\n" + "\n" + "With:" + "\n" + CheckUser + Oversight + Developer + Boardvote + Import + "\n" + "-----" + "\n")}
else if (Sysop == '' && BCrat == '' && CheckUser == '' && Steward == '')
{alert("This user is a regular user (does not belong to any user rights groups).")}
}
function userget()
{
if (gml_xmlhttp.readyState != 4)
return;
alert("Usergroup list obtained. Seaching for " + user_name + ".");
xml = gml_xmlhttp.responseText.replace(/<body.*"ns-4">/, '<body class="ns-4">');
doc = gml_XMLParse(xml);
var l = doc.getElementsByTagName('li');
var user_name = document.getElementById('bodyContent').getElementsByTagName('a').innerHTML;
var user_sysop = 'no';
for (i = 0; i < l.length; i++)
{
var name = l.getElementsByTagName('a').innerHTML;
if (user_name == name){user_sysop = 'yes'; break;}
}
return user_sysop;
}
//Summary percent use
function sumperentcuse()
{
if (document.getElementById('contentSub').innerHTML.indexOf('Viewing contribution data for') != -1)
{alert("Results already shown."); return;}
//check for range edits
if (location.href.indexOf('%404&title') == -1)
{var user = document.getElementById('contentSub').getElementsByTagName('a').innerHTML;}
else
{var user = 'Selected IP range';}
document.getElementById('contentSub').innerHTML += "<br><strong>Analyzing contributions...please wait (make sure that dates show like '09:12, April 8, 2001' in user preferences).</strong>";
gml_xmlhttp = HTTPClient();
if (!gml_xmlhttp)
return;
var pageurl = 'http://en.wikipedia.org/search/?title=Special:Log&type=upload&user=' + user + '&page=&limit=5000&useskin=none';
gml_xmlhttp.open("GET", pageurl, true);
gml_xmlhttp.onreadystatechange = sumperentcuse2;
gml_xmlhttp.send(null);
}
edits_page_compared_js = 0;
function sumperentcuse2()
{
if (gml_xmlhttp.readyState != 4)
return;
xml = gml_xmlhttp.responseText;
var Uploads = 0;
var Uploads_length = 0;
var up_list_unique = '|';
if (xml.indexOf('<ul>') != -1)
{
var xml = xml.split('<ul>').split('</ul>');
Uploads_length = xml.split('<li>').length-1;
var l = xml.split('<li>');
for (z=0; z<l.length; z++)
{
var litxt = l.split('</li>');
var name = l.split('</li>');
if (name.indexOf(') uploaded "<a href="') != -1)
{name = name.split(') uploaded "<a href="');}
else if (name.indexOf(') uploaded "<A href="') != -1)
{name = name.split(') uploaded "<A href="');}
else {name = '';}
name = name.split('" title="');
if (up_list_unique.indexOf('|' + name + '|') == -1 && name.indexOf('action=edit') == -1 && name != '' && litxt.indexOf('(Reverted to ') == -1)
{up_list_unique += name + '|';}
}
}
var Uploads = up_list_unique.split('|').length-2;
var status = '';
numered = false;
var Username = document.getElementById('bodyContent').getElementsByTagName('a').innerHTML;
var theusername = 'user </span><span style="color:purple;">' + Username + '</span>';
var compare = 0;
if (document.getElementById('contentSub').innerHTML.indexOf('edit comparison between') != -1){compare = 1;}
if (Username == 'Talk' && compare == 0)
{theusername = '</span><span style="color:purple;">this IP address</span>';}
else if (compare == 1)
{theusername = '</span><span style="color:purple;">these users</span>';}
else if (Username == 'navigation')
{theusername = '</span><span style="color:purple;">these IP addresses</span>';}
if (theadminlist.indexOf('|' + Username + '|') != -1)
{status = ' </span><span style="color:blue;">(sysop)</span><span style="color:purple;">';}
var cnt = 0;
//tagging edits
var rvlink = '<span style="color:darkred;"><strong>rv</strong></span>';
var nslink = '<strong><span style="color:darkgrey;">no summary</span></strong>';
var mslink = '<strong>minor</strong>';
var sflink = '<strong><span style="color:purple;">superficial</span></strong>';
var sflink2 = '<strong><span style="color:green;">superficial</span></strong>';
var mamlink = '<strong><span style="color:green;">minor</span></strong>';
var tplink = '<strong>most recent</strong>'
var umplink = '<strong><span style="color:grey;">unmarked</strong></span>'
var alink = '<strong><span style="color:darkblue;">notable</strong></span>';
var malink = '<strong><span style="color:blue;">notable!</strong></span>';
var minalink = '<strong>significant</strong>';
//
var Pagelist = '';
var TE = 0;
var sum_edits = 0;
var sumart_edits = 0;
var Art_minor = 0;
var Artm_to_minor = 0;
var Sum_value = -1;
var NS = 0;
var M = 0;
var R = 0;
var EX = 0;
var UM = 0;
var MAM = 0;
var All_markedMaj = 0;
var All_markedMin = 0;
var Minor_withsum = 0;
var Major_withsum = 0;
var Major_edit_sum = 0;
var Major_article_sum = 0;
var Minor_article_sum = 0;
var Article_minor_edits = 0;
var Article_major_edits = 0;
var Is_minor = 0;
var Not_minor = 0;
var Talk = 0;
var User = 0;
var Usertalk = 0;
var Mediawiki = 0;
var Wikipediatalk = 0;
var Misplaced Pages = 0;
var Image = 0;
var Template = 0;
var Category = 0;
var Portal = 0;
var OTalk = 0;
var ArticleE = 0;
var ArtSig = 0;
var ArtSf = 0;
var ArtRv = 0;
var ArtM = 0;
var ArtUM =0;
var Help = 0;
var blk_num = 0;
var Unique_pages = 0;
var c = document.getElementById('contentSub');
var a = c.getElementsByTagName('a');
l = document.getElementById('bodyContent').getElementsByTagName('li');
if (l == undefined){alert("Nothing to analyze!"); return;}
if (l.innerHTML.indexOf('<strong>#1</strong> ') != -1)
{numered = true;}
//Timing
var now = new Date();
var timeValue = now.toUTCString().replace(/GMT/, "UTC");
if (timeValue.split('Jan ') != undefined)
{var Month = 'Jan'; var Mval = 1; var Day = timeValue.split(' Jan').split(', '); var Year = timeValue.split('Jan ').split(' UTC').split(' '); var Time = timeValue.substring(17,22);}
else if (timeValue.split('Feb ') != undefined)
{var Month = 'Feb'; var Mval = 2; var Day = timeValue.split(' Feb').split(', '); var Year = timeValue.split('Feb ').split(' UTC').split(' '); var Time = timeValue.substring(17,22);}
else if (timeValue.split('Mar ') != undefined)
{var Month = 'Mar'; var Mval = 3; var Day = timeValue.split(' Mar').split(', '); var Year = timeValue.split('Mar ').split(' UTC').split(' '); var Time = timeValue.substring(17,22);}
else if (timeValue.split('Apr ') != undefined)
{var Month = 'Apr'; var Mval = 4; var Day = timeValue.split(' Apr').split(', '); var Year = timeValue.split('Apr ').split(' UTC').split(' '); var Time = timeValue.substring(17,22);}
else if (timeValue.split('May ') != undefined)
{var Month = 'May'; var Mval = 5; var Day = timeValue.split(' May').split(', '); var Year = timeValue.split('May ').split(' UTC').split(' '); var Time = timeValue.substring(17,22);}
else if (timeValue.split('Jun ') != undefined)
{var Month = 'Jun'; var Mval = 6; var Day = timeValue.split(' Jun').split(', '); var Year = timeValue.split('Jun ').split(' UTC').split(' '); var Time = timeValue.substring(17,22);}
else if (timeValue.split('Jul ') != undefined)
{var Month = 'Jul'; var Mval = 7; var Day = timeValue.split(' Jul').split(', '); var Year = timeValue.split('Jul ').split(' UTC').split(' '); var Time = timeValue.substring(17,22);}
else if (timeValue.split('Aug ') != undefined)
{var Month = 'Aug'; var Mval = 8; var Day = timeValue.split(' Aug').split(', '); var Year = timeValue.split('Aug ').split(' UTC').split(' '); var Time = timeValue.substring(17,22);}
else if (timeValue.split('Sep ') != undefined)
{var Month = 'Sep '; var Mval = 9; var Day = timeValue.split(' Sep').split(', '); var Year = timeValue.split('Sep ').split(' UTC').split(' '); var Time = timeValue.substring(17,22);}
else if (timeValue.split('Oct ') != undefined)
{var Month = 'Oct'; var Mval = 10; var Day = timeValue.split(' Oct').split(', '); var Year = timeValue.split('Oct ').split(' UTC').split(' '); var Time = timeValue.substring(17,22);}
else if (timeValue.split('Nov ') != undefined)
{var Month = 'Nov'; var Mval = 11; var Day = timeValue.split(' Nov').split(', '); var Year = timeValue.split('Nov ').split(' UTC').split(' '); var Time = timeValue.substring(17,22);}
else if (timeValue.split('Dec ') != undefined)
{var Month = 'Dec'; var Mval = 12; var Day = timeValue.split(' Dec').split(', '); var Year = timeValue.split('Dec ').split(' UTC').split(' '); var Time = timeValue.substring(17,22);}
Simpletime = 1*(Time.split(":"));
var TimeM = (Time.split(":"));
Time = Simpletime + (TimeM/60);
//For loop START
for (i = 0; i < l.length; i++)
{
if (l.innerHTML.search(/ (unblocked|blocked)( "| )< href="/) == -1)
{
var tpnt = '';
//find pagename, and split li text after it to get summary text, the k loop fixes this for autosums
if (l.getElementsByTagName('a'))
{tpnt = l.getElementsByTagName('a').innerHTML;}
t = l.innerHTML.split(tpnt + '</a> ');
var Careful = 'no';
var Revert = 'no';
var Minor = 'no';
var Superfic = 'no';
var Notable = 'no';
var Significant = 'no';
var Minor_nonrv = -1;
var Minor_or_sum = -1;
var Marked_as_minor = 'no';
var Namespace_type = 'non-article';
var Namespace = '';
Sum_value = -1;
//get pagename and check namespace (var "Namespace" is really just the page name here)
if (l.getElementsByTagName('a'))
{var Namespace = l.getElementsByTagName('a').innerHTML;}
if (Pagelist.indexOf('|' + Namespace + '|') == -1){Pagelist += '|' + Namespace + '|'; Unique_pages = Unique_pages + 1;}
if (Namespace.indexOf('Talk:') == 0)
{
Namespace_type = 'talk';
Talk = Talk + 1;
}
else if (Namespace.indexOf('User:') == 0)
{
Namespace_type = 'talk';
User = User + 1;
}
else if (Namespace.indexOf('User talk:') == 0)
{
Namespace_type = 'talk';
Usertalk = Usertalk + 1;
}
else if (Namespace.indexOf('MediaWiki:') == 0)
{
Mediawiki = Mediawiki + 1;
}
else if (Namespace.indexOf('Misplaced Pages talk:') == 0)
{
Namespace_type = 'talk';
Wikipediatalk = Wikipediatalk + 1;
}
else if (Namespace.indexOf('Misplaced Pages:') == 0)
{
Misplaced Pages = Misplaced Pages + 1;
}
else if (Namespace.indexOf('Image:') == 0)
{
Image = Image + 1;
}
else if (Namespace.indexOf('Template:') == 0)
{
Template = Template + 1;
}
else if (Namespace.indexOf('Category:') == 0)
{
Category = Category + 1;
}
else if (Namespace.indexOf('Portal:') == 0)
{
Portal = Portal + 1;
}
else if (Namespace.indexOf('Help:') == 0)
{
Help = Help + 1;
}
else if (Namespace.search(/(MediaWiki|Image|Template|Category|Portal|Help) talk:/) == 0)
{
Namespace_type = 'talk';
OTalk = OTalk + 1;
}
else
{
Namespace_type = 'article';
}
var autoc = 'no';
var the_sum = '';
for (k = 0 ; k < l.getElementsByTagName('span').length; k++)
{
if (l.getElementsByTagName('span').className == 'minor')
{
Minor_nonrv = 1;
Minor_or_sum = 1;
Minor = 'yes';
Marked_as_minor = 'yes';
}
else if (l.getElementsByTagName('span').className == 'autocomment')
{
autoc = 'yes';
if (l.getElementsByTagName('span').innerHTML.indexOf(" -") !=-1)
{
Sum_value = 1;
Minor_or_sum = 1;
if (l.getElementsByTagName('span').innerHTML.indexOf("-</span> ") !=-1)
{the_sum = l.getElementsByTagName('span').innerHTML.split("-</span> ").split(")</span>");}
else if (l.getElementsByTagName('span').innerHTML.indexOf("-</span>") !=-1)
{the_sum = l.getElementsByTagName('span').innerHTML.split("-</span>").split("</span>");}
else if (l.getElementsByTagName('span').innerHTML.indexOf("</span>") !=-1)
{the_sum = l.getElementsByTagName('span').innerHTML.split("</span>").split("</span>");}
break;
}
else
{
Sum_value = -1;
the_sum = '';
if (Minor == 'no')
{
Minor_or_sum = -1;
}
}
break;
}
else if (l.getElementsByTagName('span').className == 'comment')
{
Sum_value = 1;
Minor_or_sum = 1;
var Careful = 'no';
the_sum = l.getElementsByTagName('span').innerHTML;
}
}
//End of k loop
//remove links
the_sum = the_sum.replace(/<a href=]+<.a>/ig,'');
//
if (Namespace_type == 'article' && Sum_value == 1)
{
//notable edits
if (the_sum.search(/ created|create| creation|rastic addition|rastic edit|rastic cha|rastic mod|expansion |rewriting\)|rewriting\)|rewrote|(rewriting|rewrite|rewrote)(completely|page|article)|(major|large|significant) (section|section|addition|rewrite)/i) !=-1 || the_sum.search(/(add )(a | )(lot|large|tons|great|signif)|(write|create) (brand|new)|major (ed|ch|mod)|interim save|\(expand(ed|ing| )| expanded\)|contin(uing|ued) (addition|expand|expans|writ)/i) !=-1 || the_sum.search(/(\+|Add|add|more|create |another )(history|paragraph|section|references|sources|sourcing|citations|refs|photos|images|pictures)/i) !=-1 || the_sum.search(/\((.)(eferences|ources|itations|Refs|refs|photos|Images|images|ictures)\)/i) !=-1 || the_sum.search(/(create|created|creating|made|making|quick|\(new|started|starting) (stub|basic|initial|article|page|biog|section|paragr|draft)/i) !=-1 || the_sum.search(/(added|adding) (basic|initial|biog|section|paragr)|creat(e|ed|ing) (page|section|article|biog)/i) !=-1 || the_sum.search(/(references| sources| sourced|citations) add/i) !=-1 || the_sum.search(/(create|created|creation|bio|biography|\(article|\(page\))/i) !=-1)
{Careful = 'yes'; Minor = 'no'; Minor_nonrv = -1; Notable = 'yes';}
//significant edit pass 1
else if (the_sum.search(/(Info|Content|addition|addition|Facts| facts|\(add)|(quotes|fact|xample|xpand|ompromise| accurate| sentence| about)/i) !=-1 || the_sum.search(/biography|(ade|reate) article\)|creat(e|ion) |copyedit|descri(ption|be)/i) !=-1 || the_sum.search(/(Add|finish|finishing|finished|more|\+|another )(reference|citation|source|info|content|image|photo|pic|section)/i) !=-1 || the_sum.search(/(reference|itation|source|info|content|image|photo|pictures) added/i) !=-1 || the_sum.search(/(eference|ource|itation|Ref|ref|photo|Image|image|icture|more)/i) !=-1 || the_sum.search(/\((create|created|creating) /i) !=-1 || the_sum.search(/(rewriting|rewrite|rewrote)(section|lead|intro|paragraph)/i) !=-1)
{Careful = 'yes'; Minor = 'yes'; Significant = 'yes'; Minor_nonrv = 1;}
//summary rules
else if (autoc == 'no' && the_sum.length < 12)
{Minor = 'yes'; Superfic = 'yes'; Minor_nonrv = 1;}
else if (autoc == 'yes' && the_sum.length < 10)
{Minor = 'yes'; Superfic = 'yes'; Minor_nonrv = 1;}
else if (the_sum.split(' ').length < 2)
{Minor = 'yes'; Superfic = 'yes'; Minor_nonrv = 1;}
else if (the_sum.split(' ').length < 3 && Minor == 'no')
{Minor = 'yes'; Significant = 'yes'; Minor_nonrv = 1;}
else if (the_sum.split(' ').length < 3 && Minor == 'yes')
{Minor = 'yes'; Superfic = 'yes'; Minor_nonrv = 1;}
}
//basic flagging
if (Minor_or_sum == -1)
{
UM = UM + 1;
NS = NS + 1;
l.innerHTML += ' (' + umplink + ') #' + UM;
}
else if (Sum_value == -1)
{
NS = NS + 1;
l.innerHTML += ' (' + nslink + ') #' + NS;
}
if (Minor_or_sum == 1)
{
EX = EX + 1;
}
if (l.innerHTML.indexOf('(top)') != -1)
{
TE = TE + 1;
}
//reverts
if (Namespace_type == 'article' && Sum_value == 1 && the_sum.search('(P|p)rotect(ed| )') == -1 && t != '')
{
if (the_sum.search(/(RV|Rv|rV)|-rv|\(rv|\(R|RV|Rv|rv/) !=-1 || the_sum.search(/rever(t|ted|ting)|rever(t|ted|ting)|reversion|graffitti| nonsense|vandal ed| vandal|rollback| irrelevant| unverified/i) !=-1 || the_sum.search(/(t|ed|e) vandal|(V|v) |inkspam|emov(ed|ing)|elet(ed|ing) |einsta(t|ted)|estore(d) |(un|n)ecessary | previous| version /) !=-1 || the_sum.search('m ') !=-1 || the_sum.search('mv') !=-1 || the_sum.search('(Remove|remove|emoved|emoved|emove|emoved\|emoved\|emove\|seriously|WTF|\\?\\?|!!)') !=-1 || the_sum.search('estore(|d|ing )') !=-1 || the_sum.search('(un|n)ecessary ') !=-1 || the_sum.search(/(Should|should|Is|is) (ot|OT) |hould(nt|n't) |(an't|annot) /) !=-1 || the_sum.search('/re-added|re-inserted|added back /i') != -1 || the_sum.search(/back again|POINT|no such |speculation\)| such thing| agree with| don't| do not|\(surely|\?|\?\.|\?\)/) !=-1 || the_sum.search(/no need/i) !=-1 || the_sum.search(/Abuse of |admin powers | violat(e|es|ed) | your standards| doesn't| your| you're| yours| you | aren't| isn't/i) != -1 || the_sum.search(/roll(s|ing)\)|raffitti/) !=-1 || the_sum.search(/linkspam|\(If |nonsense|vandal ed|ollback| vandal| vandals | vandal/i) !=-1)
{
Superfic = 'no';
Notable = 'no';
Significant = 'no';
Minor_nonrv = -1;
Revert = 'yes';
R = R + 1;
l.innerHTML += ' (' + rvlink + ') #' + R;
}
}
//non-article reverts
else if (Namespace_type != 'article' && Sum_value == 1 && the_sum.search('rotect(ed| )') == -1 && t != '')
{
if (the_sum.search(/(RV|Rv|rV)v|-rv|\(rv|\(R|RV|Rv|rv/) !=-1 || the_sum.search(/rever(t|ted|ting)|reversion|graffitti| nonsense|vandal ed| vandal|rollback| irrelevant/i) !=-1 || the_sum.search(/(t|ed|e) vandal|(V|v) |inkspam|emov(ed|ing)|elet(ed|ing) |einsta(t|ted)|estore(d) |(un|n)ecessary /) !=-1)
{
Minor_nonrv = -1;
Revert = 'yes';
R = R + 1;
l.innerHTML += ' (' + rvlink + ') #' + R;
}
}
//superficial check pass 1 (main)
if (Namespace_type == 'article' && Sum_value == 1 && Revert == 'no' && Superfic == 'no' && t != '')
{
if (the_sum.search(/>|<|\+|\(move| -|to-|#|\.\.\.|\(m| m|\|\(clean|grammar|lnk| lnk|punc| punct|re-cat|recat/i) != -1 || the_sum.search('(al|ing) error') !=-1 || the_sum.search(/ cleanup| cleaning|cleanup|cleaning|Assisted| format| linked|template| abbr|Abbr|Disambig|disambig|Dab|dab|DAB| odering| spelling|spelling| typo|typo\)/) !=-1 || the_sum.search(/ word| tag|place|bad|can|word|tag|place|bad|can\)/) !=-1 || the_sum.search('{2,5}ps') !=-1 || the_sum.search('edir(ect|ing)') !=-1 || the_sum.search('') !=-1 || the_sum.search('for elet') !=-1 || the_sum.search(/AWB|REDIR| redir|redirect| skip| interwiki|shorten|shorten|compress|compress\)/) !=-1 || the_sum.search(/CSD|CfSD|belong|ointless|clarif|onvert| sentence| sentence\)/) !=-1 || the_sum.search(/easier|simplify|simpler| ersion|ersion\)/i) !=-1 || the_sum.search(/small|shorten|avoid|epair|few|protected|rotected| heading| title|made| bold|populating| flag /i) !=-1 || the_sum.search(/convert| rid|Auto |ypass /) !=-1 || the_sum.search(/is|auto|html|already|almost| cut| paste| tweak|mov(e|ed|ing) /i) !=-1 || the_sum.search(/ match| others/i) != -1 || the_sum.search(/\((No|no )/) != -1 || the_sum.search(/(changing|modify|modified|modifying|tweaking) (links|layout|format|setup|interwiki)/i) != -1 || the_sum.search(/Stub-| sorting|-sorting|You can help!|seealso| adjectives|adjectives|categorize|categorizing|fix|fixed|!/i) != -1 || the_sum.search(/(added|add|changed|moved|modified) (wikilink|link|categor)/i) != -1 || the_sum.search(/ab|\(ix|ix/) == 0)
{
Minor_nonrv = 1;
Minor = 'yes';
Superfic = 'yes';
Notable = 'no';
Significant = 'no';
}
}
//superficial check pass 2
if (Namespace_type == 'article' && Sum_value == 1 && Revert == 'no' && Superfic == 'no' && t != '' && Careful == 'no')
{
if (the_sum.search(/ikif(y|ied)|ategor(y|ize|ise)|(Fo|F|f|fo)rm(t|at)|-ssisted|BOT|ot |tyle|odif(y|ied|ying)/) !=-1 || the_sum.search('r(e|e-)order') !=-1 || the_sum.search('e(structure|organiz|order)') !=-1 || the_sum.search('lea(n|r)') !=-1 || the_sum.search(/clarity|replac(e|ed|ing)/i) !=-1 || the_sum.search(' conver(t|sion)') !=-1 || the_sum.search(/(re-)arrang(e|ed|ing) /i) != -1 || the_sum.search('( Request| request|WP:|ink to )') != -1 || the_sum.search(/Fix| list|reorganize|correct| website| detail|this| this/i) !=-1 || the_sum.search('( )cat( )') !=1 || the_sum.search('equest(|ed|ing )') != -1 || the_sum.search(/!\)| "| '/) !=-1 || the_sum.search('(article|page) (is|currently|undergoing)') !=-1)
{
Minor_nonrv = 1;
Minor = 'yes';
Superfic = 'yes';
Notable = 'no';
Significant = 'no';
}
}
//signifiant article edit pass 2
if (Namespace_type == 'article' && Sum_value == 1 && Revert == 'no' && Superfic == 'no' && Careful == 'no')
{
if (the_sum.search(/ink /i) !=-1 || the_sum.search(/eed(ed| )/i) !=-1 || the_sum.search(/ub(cat|section)/i) !=-1 || the_sum.search(/ (not|NOT) /i) !=-1 || the_sum.search(/ (is|IS) (not|NOT)/i) !=-1 || the_sum.search(/( )only( )/i) !=-1 || the_sum.search(/(P|p)lease /i) !=-1 || the_sum.search(/(merge|merge|small|minor|onvert| name| naming|Additional|additional|extra| few)/i) !=-1 || the_sum.search(/( )cat( )/i) !=-1 || the_sum.search(/(V|v)ersion/i) !=-1 || the_sum.search(/(nfobox| small|links to|Links to)/i) !=-1 || the_sum.search(/(factual|Factual|ording|eword|true| truth| didn)/i) !=-1 || the_sum.search(/e(structure|organiz|order)/i) !=-1 || the_sum.search(/( reference|ref\.|ref\))/i) !=-1 || the_sum.search(/(Write|write|New|new|image|photo|pictures)/i) !=-1)
{
Minor_nonrv = 1;
Minor = 'yes';
Significant = 'yes';
}
}
//anything else left, marked as minor, is superficial
if (Namespace_type == 'article' && Sum_value == 1 && Revert=='no' && Notable =='no' && Superfic=='no' && Significant == 'no' && Minor=='yes')
{
Minor_nonrv = 1;
Minor = 'yes';
Superfic = 'yes';
}
//anything else left, not marked as minor, is small
else if (Namespace_type == 'article' && Sum_value == 1 && Revert=='no' && Notable =='no' && Superfic=='no' && Significant == 'no' && Minor=='no')
{
Minor_nonrv = 1;
Significant = 'yes'
Minor = 'yes';
}
//
//analysis
if (Marked_as_minor == 'yes' && Revert == 'no' && Sum_value == 1){All_markedMin = All_markedMin + 1;}
if (Marked_as_minor == 'no' && Revert == 'no' && Sum_value == 1){All_markedMaj = All_markedMaj + 1;}
if (Namespace_type == 'article')
{
ArticleE = ArticleE + 1;
if (Minor_or_sum == -1){Minor = 'no'}
//article edit summary use percent stuff
if (Marked_as_minor == 'no' && i<1000)
{
sumart_edits += 1;
Article_major_edits = Article_major_edits + 1;
if (Sum_value == 1){Major_article_sum = Major_article_sum + 1;}
}
else if (Marked_as_minor == 'yes' && i<1000)
{
sumart_edits += 1;
Article_minor_edits = Article_minor_edits + 1;
if (Sum_value == 1)
{Minor_article_sum = Minor_article_sum + 1;}
}
if (Superfic == 'yes')
{Art_minor = Art_minor + 1;}
if (Superfic == 'yes' && Marked_as_minor == 'no')
{Artm_to_minor = Artm_to_minor + 1;}
//sig. article edits
if (Sum_value == -1 && Marked_as_minor == 'yes')
{
ArtSf = ArtSf + 1;
l.innerHTML += ' (' + sflink + ') #' + ArtSf;
}
else if (Notable == 'yes' && Marked_as_minor == 'no')
{
ArtSig = ArtSig + 1;
l.innerHTML += ' (' + alink + ') #' + ArtSig;
}
else if (Notable == 'yes' && Marked_as_minor == 'yes')
{
ArtSig = ArtSig + 1;
l.innerHTML += ' (' + malink + ') #' + ArtSig;
}
else if (Superfic == 'yes' && Marked_as_minor == 'yes' && Sum_value == 1)
{
ArtSf = ArtSf + 1;
l.innerHTML += ' (' + sflink + ') #' + ArtSf;
}
else if (Superfic == 'yes' && Marked_as_minor == 'no' && Sum_value == 1)
{
ArtSf = ArtSf + 1;
l.innerHTML += ' (' + sflink2 + ') #' + ArtSf;
}
else if (Superfic == 'no' && Minor == 'yes' && Significant == 'yes' && Sum_value == 1 && Revert == 'no')
{
ArtM = ArtM + 1;
l.innerHTML += ' (' + minalink + ') #' + ArtM;
}
}
//overall for edit percent usage (up 1000 only)
if (Marked_as_minor == 'yes' && i<1000)
{
sum_edits += 1;
Is_minor = Is_minor + 1;
if (Sum_value == 1)
{Minor_withsum = Minor_withsum + 1;}
}
else if (Marked_as_minor == 'no' && i<1000)
{
sum_edits += 1;
Not_minor = Not_minor + 1;
if (Sum_value == 1)
{Major_withsum = Major_withsum + 1;}
}
//done
if (Minor_nonrv == 1)
{
M = M + 1;
if (Marked_as_minor == 'yes' && Superfic == 'no')
{l.innerHTML += ' (' + mslink + ') #' + M;}
}
if (numered == false)
{cnt += 1; l.innerHTML = '<strong>#' + cnt + '</strong> ' + l.innerHTML;}
}
else {blk_num += 1;}
}
//END of FOR loop
if (i == 1)
{
document.getElementById('bodyContent').innerHTML = '<span style="color:blue;"><strong>There are no page modification statistics to show since there is only one edit.</span></strong><br>' + firstbody;
return;
}
j=i-1;
var yearloc = l.innerHTML.split('action=history');
if (yearloc.indexOf('January ') != -1)
{var LMonth = 'January'; var LMval = 1; var LDay = yearloc.split('January ').split(','); var LYear = yearloc.split('January ').split(', '); var LTime = yearloc.split(', January ');}
else if (yearloc.indexOf('February ') != -1)
{var LMonth = 'February'; var LMval = 2; var LDay = yearloc.split('February ').split(','); var LYear = yearloc.split('February ').split(', '); var LTime = yearloc.split(', February ');}
else if (yearloc.indexOf('March ') != -1)
{var LMonth = 'March'; var LMval = 3; var LDay = yearloc.split('March ').split(','); var LYear = yearloc.split('March ').split(', '); var LTime = yearloc.split(', March ');}
else if (yearloc.indexOf('April ') != -1)
{var LMonth = 'April'; var LMval = 4; var LDay = yearloc.split('April ').split(','); var LYear = yearloc.split('April ').split(', '); var LTime = yearloc.split(', April ');}
else if (yearloc.indexOf('May ') != -1)
{var LMonth = 'May'; var LMval = 5; var LDay = yearloc.split('May ').split(','); var LYear = yearloc.split('May ').split(', '); var LTime = yearloc.split(', May ');}
else if (yearloc.indexOf('June ') != -1)
{var LMonth = 'June'; var LMval = 6; var LDay = yearloc.split('June ').split(','); var LYear = yearloc.split('June ').split(', '); var LTime = yearloc.split(', June ');}
else if (yearloc.indexOf('July ') != -1)
{var LMonth = 'July'; var LMval = 7; var LDay = yearloc.split('July ').split(','); var LYear = yearloc.split('July ').split(', '); var LTime = yearloc.split(', July ');}
else if (yearloc.indexOf('August ') != -1)
{var LMonth = 'August'; var LMval = 8; var LDay = yearloc.split('August ').split(','); var LYear = yearloc.split('August ').split(', '); var LTime = yearloc.split(', August ');}
else if (yearloc.indexOf('September ') != -1)
{var LMonth = 'September'; var LMval = 9; var LDay = yearloc.split('September ').split(','); var LYear = yearloc.split('September ').split(', '); var LTime = yearloc.split(', September ');}
else if (yearloc.indexOf('October ') != -1)
{var LMonth = 'October'; var LMval = 10; var LDay = yearloc.split('October ').split(','); var LYear = yearloc.split('October ').split(', '); var LTime = yearloc.split(', October ');}
else if (yearloc.indexOf('November ') != -1)
{var LMonth = 'November'; var LMval = 11; var LDay = yearloc.split('November ').split(','); var LYear = yearloc.split('November ').split(', '); var LTime = yearloc.split(', November ');}
else if (yearloc.indexOf('December ') != -1)
{var LMonth = 'December'; var LMval = 12; var LDay = yearloc.split('December ').split(','); var LYear = yearloc.split('December ').split(', '); var LTime = yearloc.split(', December ');}
var lpoint = LTime.length - 5;
LTimenum = LTime.substring(lpoint);
LSimpletime = 1*(LTimenum.split(":"));
var LTimeM = (LTimenum.split(":"));
LTime = LSimpletime + (LTimeM/60);
var E = i - blk_num;
LYear = LYear.split(' ').split('</a>');
var mothr = Day - 1 + (Time/24);
var mothl = 30.42 - (LDay - 1 + LTime/24);
if (Year == LYear)
{
var mdiff = 30.42*(Mval - LMval - 1);
var totdays = mothr + mothl + mdiff;
if (Mval == LMval)
{totdays = Day - 1 + Time/24 - (LDay - 1 + LTime/24);}
var average = E/totdays;
var rvaverage = R/totdays;
var nonrvave = average - rvaverage;
var Daylength = Math.round((1)*totdays)/1;
if (Daylength == 0)
{
Daylength = 1;
}
}
else if (Year != LYear)
{
var ydiff = 365*(Year - LYear - 1);
var yearr = 30.42*(Mval - 1) + mothr;
var yearl = 30.42*(12 - LMval - 1) + mothl;
var totdays = yearr + ydiff + yearl;
var average = E/totdays;
var rvaverage = R/totdays;
var nonrvave = average - rvaverage;
var Daylength = Math.round((1)*totdays)/1;
if (Daylength == 0)
{
Daylength = 1;
}
}
ave_tot = i;
//Check up to 500 edits, may redefine average edits/day
if (E>500)
{
yearloc = l.innerHTML.split('action=history');
//alert(yearloc);
if (yearloc.indexOf('January ') != -1)
{var ECMonth = 'January'; var ECMval = 1; var ECDay = yearloc.split('January ').split(','); var ECYear = yearloc.split('January ').split(', '); var ECTime = yearloc.split(', January ');}
else if (yearloc.indexOf('February ') != -1)
{var ECMonth = 'February'; var ECMval = 2; var ECDay = yearloc.split('February ').split(','); var ECYear = yearloc.split('February ').split(', '); var ECTime = yearloc.split(', February ');}
else if (yearloc.indexOf('March ') != -1)
{var ECMonth = 'March'; var ECMval = 3; var ECDay = yearloc.split('March ').split(','); var ECYear = yearloc.split('March ').split(', '); var ECTime = yearloc.split(', March ');}
else if (yearloc.indexOf('April ') != -1)
{var ECMonth = 'April'; var ECMval = 4; var ECDay = yearloc.split('April ').split(','); var ECYear = yearloc.split('April ').split(', '); var ECTime = yearloc.split(', April ');}
else if (yearloc.indexOf('May ') != -1)
{var ECMonth = 'May'; var ECMval = 5; var ECDay = yearloc.split('May ').split(','); var ECYear = yearloc.split('May ').split(', '); var ECTime = yearloc.split(', May ');}
else if (yearloc.indexOf('June ') != -1)
{var ECMonth = 'June'; var ECMval = 6; var ECDay = yearloc.split('June ').split(','); var ECYear = yearloc.split('June ').split(', '); var ECTime = yearloc.split(', June ');}
else if (yearloc.indexOf('July ') != -1)
{var ECMonth = 'July'; var ECMval = 7; var ECDay = yearloc.split('July ').split(','); var ECYear = yearloc.split('July ').split(', '); var ECTime = yearloc.split(', July ');}
else if (yearloc.indexOf('August ') != -1)
{var ECMonth = 'August'; var ECMval = 8; var ECDay = yearloc.split('August ').split(','); var ECYear = yearloc.split('August ').split(', '); var ECTime = yearloc.split(', August ');}
else if (yearloc.indexOf('September ') != -1)
{var ECMonth = 'September'; var ECMval = 9; var ECDay = yearloc.split('September ').split(','); var ECYear = yearloc.split('September ').split(', '); var ECTime = yearloc.split(', September ');}
else if (yearloc.indexOf('October ') != -1)
{var ECMonth = 'October'; var ECMval = 10; var ECDay = yearloc.split('October ').split(','); var ECYear = yearloc.split('October ').split(', '); var ECTime = yearloc.split(', October ');}
else if (yearloc.indexOf('November ') != -1)
{var ECMonth = 'November'; var ECMval = 11; var ECDay = yearloc.split('November ').split(','); var ECYear = yearloc.split('November ').split(', '); var ECTime = yearloc.split(', November ');}
else if (yearloc.indexOf('December ') != -1)
{var ECMonth = 'December'; var ECMval = 12; var ECDay = yearloc.split('December ').split(','); var ECYear = yearloc.split('December ').split(', '); var ECTime = yearloc.split(', December ');}
var lpoint = ECTime.length - 5;
ECTimenum = ECTime.substring(lpoint);
ECSimpletime = 1*(ECTimenum.split(":"));
var ECTimeM = ECTimenum.split(":");
ECTime = ECSimpletime + (ECTimeM/60);
ECYear = ECYear.split(' ').split('</a>');
var mothEC = 30.42 - (ECDay - 1 + ECTime/24);
//alert(ECTime + '|' + ECYear + '|' + mothEC);
if (Year == ECYear)
{
var ECmdiff = 30.42*(Mval - ECMval - 1);
var ECtotdays = mothr + mothEC + ECmdiff;
if (Mval == ECMval)
{ECtotdays = Day - 1 + Time/24 - (ECDay - 1 + ECTime/24);}
average = 500/ECtotdays;
}
else if (Year != ECYear)
{
var ECydiff = 365*(Year - ECYear - 1);
var yearEC = 30.42*(12 - ECMval - 1) + mothEC;
var ECtotdays = yearr + ECydiff + yearEC;
average = 500/ECtotdays;
}
ave_tot = 500;
}
//
average = Math.round((100)*average)/100;
var avenotice = '';
//wow..statistics people
var caverage = Math.round((1000)*caverage)/1000;
//
var TimeDATE = '<span style="color:blue;"><strong>Time range:</span> ' + Daylength + ' approximate day(s) of edits on this page</strong></span><br> ' + 'Most recent edit on: ' + Simpletime + 'hr (UTC) -- ' + Day + ', ' + Month + ', ' + Year + ' <strong>||</strong> ' + 'Oldest edit on: ' + LSimpletime + 'hr (UTC) -- ' + LDay + ', ' + LMonth + ', ' + LYear + '<br>';
//
if (location.href.split("&offset=") != undefined)
{
if (location.href.split("&offset=0") != undefined)
{
var offset = 'no';
}
else
{
Uploads = '<strong>*</strong>';
average = '<strong>*</strong>';
avenotice = '<strong><span style="color:darkblue;">*Average edits per day (and uploads) not shown because the most recent edit is not visible</strong></span><br>';
TimeDATE = '';
var offset = 'yes';
}
}
if (edits_page_compared_js == 1)
{
Uploads = '<strong>*</strong>';
average = '<strong>*</strong>';
avenotice = '<strong><span style="color:darkblue;">*Average edits per day (and uploads) not shown because their are multiple users</strong></span><br>';
TimeDATE = '';
}
//var U_edits = E-EX;
var U_edits = UM;
var S_edits = EX-M-R;
var FAQ = '<a href="http://en.wikipedia.org/User:Voice_of_All/History_analysis_JS_Definitions_and_FAQ" title="HistoryFAQ"> <span style="color:blue;">(FAQ)</span></a>';
oldbody = document.getElementById('bodyContent').innerHTML;
//
document.getElementById('contentSub').innerHTML += '<br><span style="color:darkblue;"><strong>Viewing contribution data for ' + theusername + status + ' <span style="color:darkblue;">(over the </span>' + i + ' <span style="color:darkblue;">edit(s) shown on this page)</span></strong>' + FAQ;
//
document.getElementById('bodyContent').innerHTML = '<div id="contentSub">' + document.getElementById('contentSub').innerHTML + '</div>' + TimeDATE + '<span style="color:darkblue;"><strong>Overall edit summary use (last</span> ' + sum_edits + ' <span style="color:darkblue;">edits): </span>' + ' Major edits: ' + Math.round((100)*(100*(Major_withsum/Not_minor)))/100 + '</strong>% ' + ' <strong>Minor edits: </span>' + Math.round((100)*(100*(Minor_withsum/Is_minor)))/100 + '</strong>%<br>' + '<strong>Average edits per day: ' + average + ' </strong>(for last ' + ave_tot + ' edit(s))<strong><br>' + '<span style="color:darkblue;"><strong>Article edit summary use (last</span> ' + sumart_edits + ' <span style="color:darkblue;">edits): </span>' + ' Major article edits: ' + Math.round((100)*(100*(Major_article_sum/Article_major_edits)))/100 + '</strong>% ' + ' <strong>Minor article edits: </span>' + Math.round((100)*(100*(Minor_article_sum/Article_minor_edits)))/100 + '</strong>%<br>'+ '<span style="color:blue;"><strong>Analysis of edits (out of all</span> ' + E + ' <span style="color:blue;">edits shown on this page and last</span> ' + Uploads_length + ' <span style="color:blue;">image uploads):</strong></span><br>' + '<span style="color:darkblue;">Notable article edits (creation/expansion/major rewrites/sourcing):</span> ' + Math.round((100)*(100*(ArtSig)/E))/100 + '</strong>% (' + ArtSig + ')<br>' + '<strong>Significant article edits (copyedits/small rewrites/content/reference additions): ' + Math.round((100)*(100*(ArtM)/E))/100 + '</strong>% (' + ArtM + ')<br>' + '<strong><span style="color:purple;">Superficial article edits (grammar/spelling/wikify/links/tagging):</span> ' + Math.round((100)*(100*(ArtSf)/E))/100 + '</strong>% (' + ArtSf + ')<br>' + '<strong><span style="color:darkgreen;">Superficial article edits marked as minor:</span> ' + Math.round((100)*(100*(Art_minor-Artm_to_minor)/Art_minor))/100 + '</strong>%<br>' + '<strong><span style="color:#FF6600;">Unique image uploads (non-deleted/reverts/updates):</span> ' + Uploads + '</strong> (checks last 5000)<br>' + '<span style="color:blue;"><strong>Breakdown of all edits:</strong></span><br>' + '<strong>Unique pages edited: ' + Unique_pages + ' <span style="color:darkblue;">|</span> ' + 'Average edits per page: ' + Math.round(100*E/Unique_pages)/100 + ' <span style="color:darkblue;">|</span> ' + 'Edits on top: ' + Math.round((100)*(100*(TE)/E))/100 + '</strong>%<br>' + '<strong>Edits marked as major (non-minor/reverts): ' + Math.round((100)*(100*(All_markedMaj)/E))/100 + '</strong>% (' + All_markedMaj + ' edit(s))<br>' + '<strong>Edits marked as minor (non-reverts): ' + Math.round((100)*(100*(All_markedMin)/E))/100 + '</strong>% (' + All_markedMin + ' edit(s))<br>' + '<span style="color:darkred;"><strong>Marked reverts (reversions/text removal):</span> ' + Math.round((100)*(100*(R)/E))/100 + '</strong>% (' + R + ' edit(s))<br>' + '<span style="color:grey;"><strong>Unmarked edits:</span> ' + Math.round((100)*(100*(UM)/E))/100 + '</strong>% (' + U_edits + ' edit(s))<br>' + '<span style="color:blue;"><strong>Edits by Misplaced Pages namespace:</span><br>' + 'Article: ' + Math.round((100)*(100*(ArticleE)/E))/100 + '</strong>% (' + ArticleE + ') <strong><span style="color:darkblue;">|</span> Article talk: ' + Math.round((100)*(100*(Talk)/E))/100 + '</strong>% (' + Talk + ')<br>' + '<strong>User: ' + Math.round((100)*(100*(User)/E))/100 + '</strong>% (' + User + ') <strong><span style="color:darkblue;">|</span> User talk: ' + Math.round((100)*(100*(Usertalk)/E))/100 + '</strong>% (' + Usertalk + ') <br>' + '<strong>Misplaced Pages: ' + Math.round((100)*(100*(Misplaced Pages)/E))/100 + '</strong>% (' + Misplaced Pages + ') <strong><span style="color:darkblue;">|</span> Misplaced Pages talk: ' + Math.round((100)*(100*(Wikipediatalk)/E))/100 + '</strong>% (' + Wikipediatalk + ')<br>' + '<strong>Image: ' + Math.round((100)*(100*(Image)/E))/100 + '</strong>% (' + Image + ')<br>' + '<strong>Template: ' + Math.round((100)*(100*(Template)/E))/100 + '</strong>% (' + Template + ')<br>' + '<strong>Category: ' + Math.round((100)*(100*(Category)/E))/100 + '</strong>% (' + Category + ')<br>' + '<strong>Portal: ' + Math.round((100)*(100*(Portal)/E))/100 + '</strong>% (' + Portal + ')<br>' + '<strong>Help: ' + Math.round((100)*(100*(Help)/E))/100 + '</strong>% (' + Help + ')<br>' + '<strong>MediaWiki: ' + Math.round((100)*(100*(Mediawiki)/E))/100 + '</strong>% (' + Mediawiki + ')<br>' + '<strong>Other talk pages: ' + Math.round((100)*(100*(OTalk)/E))/100 + '</strong>% (' + OTalk + ')<br>' + avenotice + oldbody.split('<!-- start content -->');
var body = document.getElementById('bodyContent');
body.ranSetupTooltipsAlready=false;
setupTooltips(body);
}
//END
//Vandal and IP stats
function histstats()
{
if (document.getElementById('contentSub').innerHTML.indexOf("Viewing page modification statistics (from the") != -1|| document.getElementById('contentSub').innerHTML.indexOf("There are no page modification statistics to show since there is only one edit.") != -1)
{alert("Results already shown."); return;}
document.getElementById('contentSub').innerHTML += "<br><strong>Analyzing history...please wait (make sure that dates show like '09:12, April 8, 2001' in user preferences).</strong>";
//
var Namespace_type = 'non-article';
var Namespace = document.title.split(' - ');
if (Namespace.search('(Image:|Template:| talk:|Category:|Portal:|Misplaced Pages:|MediaWiki:|Help:|Talk:|User:|View and restore deleted pages)') == -1)
{Namespace_type = 'article';}
//tagging edits
var rvlink = '<span style="color:darkred;"><strong>rv</strong></span>';
var vanlink = '<span style="color:red;"><strong>likely rvv</strong></span>';
var revlink = '<strong><i>reverted</i></strong>';
var nslink = '<strong>no summary</strong>';
var mslink = '<strong>minor</strong>';
var sflink = '<strong><span style="color:purple;">superficial</span></strong>';
var mamlink = '<strong><span style="color:green;">minor</span></strong>';
var tplink = '<strong>most recent</strong>'
var umplink = '<strong><span style="color:grey;">unmarked</strong></span>'
var alink = '<strong><span style="color:darkblue;">notable</strong></span>';
var malink = '<strong><span style="color:blue;">notable!</strong></span>';
var minalink = '<strong>significant</strong>';
var botlink = '<span style="color:darkorange;"><strong>bot</strong></span>';
var syslink = '<span style="color:blue;"><strong>sysop</strong></span>';
var nulink = '<strong>no userpage</strong>';
var iplink = '<strong>IP edit</strong>';
var nslink = '<strong><span style="color:darkgrey;">no summary</span></strong>';
//
var firstbody = document.getElementById('bodyContent').innerHTML;
var oldloc = location.href;
//
var Newbie_edits = 0;
var Newbie_nonreverts = 0;
var Reverted = 0;
var R = 0;
var V = 0;
var IP = 0;
var VN = 0;
var NU = 0;
var UM = 0;
var NS = 0;
var SYS = 0;
var BOT = 0;
var undelete = 'no';
var username = '';
var Users = 0;
var ArtSig = 0;
var ArtSf = 0;
var ArtRv = 0;
var ArtM = 0;
var ArtUM =0;
var c = document.getElementById('contentSub');
var a = c.getElementsByTagName('a');
l = document.getElementById('bodyContent').getElementsByTagName('li');
var numered = false;
if (l.innerHTML.indexOf('<strong>#1</strong> ') != -1)
{numered = true;}
if (location.href.indexOf('http://en.wikipedia.org/Special:Undelete/') != -1)
{
undelete = 'yes';
var suslink = '<span style="color:red;"><strong>suspicious</strong></span>';
l = document.getElementById('bodyContent').getElementsByTagName('ul').getElementsByTagName('li');
nulink = '<strong><span style="color:red;">blank userpage</span></strong>';
iplink = '<strong><span style="color:purple;">IP edit</span></strong>';
}
var now = new Date();
var timeValue = now.toUTCString().replace(/GMT/, "UTC");
if (timeValue.split('Jan ') != undefined)
{var CMonth = 'Jan'; var CMval = 1; var CDay = timeValue.split(' Jan').split(', '); var CYear = timeValue.split('Jan ').split(' UTC').split(' '); var CTime = timeValue.substring(17,22);}
else if (timeValue.split('Feb ') != undefined)
{var CMonth = 'Feb'; var CMval = 2; var CDay = timeValue.split(' Feb').split(', '); var CYear = timeValue.split('Feb ').split(' UTC').split(' '); var CTime = timeValue.substring(17,22);}
else if (timeValue.split('Mar ') != undefined)
{var CMonth = 'Mar'; var CMval = 3; var CDay = timeValue.split(' Mar').split(', '); var CYear = timeValue.split('Mar ').split(' UTC').split(' '); var CTime = timeValue.substring(17,22);}
else if (timeValue.split('Apr ') != undefined)
{var CMonth = 'Apr'; var CMval = 4; var CDay = timeValue.split(' Apr').split(', '); var CYear = timeValue.split('Apr ').split(' UTC').split(' '); var CTime = timeValue.substring(17,22);}
else if (timeValue.split('May ') != undefined)
{var CMonth = 'May'; var CMval = 5; var CDay = timeValue.split(' May').split(', '); var CYear = timeValue.split('May ').split(' UTC').split(' '); var CTime = timeValue.substring(17,22);}
else if (timeValue.split('Jun ') != undefined)
{var CMonth = 'Jun'; var CMval = 6; var CDay = timeValue.split(' Jun').split(', '); var CYear = timeValue.split('Jun ').split(' UTC').split(' '); var CTime = timeValue.substring(17,22);}
else if (timeValue.split('Jul ') != undefined)
{var CMonth = 'Jul'; var CMval = 7; var CDay = timeValue.split(' Jul').split(', '); var CYear = timeValue.split('Jul ').split(' UTC').split(' '); var CTime = timeValue.substring(17,22);}
else if (timeValue.split('Aug ') != undefined)
{var CMonth = 'Aug'; var CMval = 8; var CDay = timeValue.split(' Aug').split(', '); var CYear = timeValue.split('Aug ').split(' UTC').split(' '); var CTime = timeValue.substring(17,22);}
else if (timeValue.split('Sep ') != undefined)
{var CMonth = 'Sep '; var CMval = 9; var CDay = timeValue.split(' Sep').split(', '); var CYear = timeValue.split('Sep ').split(' UTC').split(' '); var CTime = timeValue.substring(17,22);}
else if (timeValue.split('Oct ') != undefined)
{var CMonth = 'Oct'; var CMval = 10; var CDay = timeValue.split(' Oct').split(', '); var CYear = timeValue.split('Oct ').split(' UTC').split(' '); var CTime = timeValue.substring(17,22);}
else if (timeValue.split('Nov ') != undefined)
{var CMonth = 'Nov'; var CMval = 11; var CDay = timeValue.split(' Nov').split(', '); var CYear = timeValue.split('Nov ').split(' UTC').split(' '); var CTime = timeValue.substring(17,22);}
else if (timeValue.split('Dec ') != undefined)
{var CMonth = 'Dec'; var CMval = 12; var CDay = timeValue.split(' Dec').split(', '); var CYear = timeValue.split('Dec ').split(' UTC').split(' '); var CTime = timeValue.substring(17,22);}
CSimpletime = 1*(CTime.split(":"));
var CTimeM = (CTime.split(":"));
CTime = CSimpletime + (CTimeM/60);
var User_list = '';
for (i = 0; i < l.length; i++)
{
var Newbie = 0;
var del_offset = 0;
var Careful = 'no';
var Revert = 'no';
var VRevert = 'no';
var Minor = 'no';
var Superfic = 'no';
var Notable = 'no';
var Significant = 'no';
var Minor_nonrv = -1;
var Sum_value = -1;
var Minor_or_sum = -1;
var Marked_as_minor = 'no';
var sysop = 'no';
t = l.innerHTML;
if (location.href.indexOf('http://en.wikipedia.org/Special:Undelete/') != -1)
{
username = l.getElementsByTagName('a').innerHTML;
}
else if (i == 0)
{
username = l.getElementsByTagName('a').innerHTML;
}
else if (l.innerHTML.indexOf(') (last)') != -1)
{
username = l.getElementsByTagName('a').innerHTML;
}
else if (l.getElementsByTagName('a') != undefined)
{
username = l.getElementsByTagName('a').innerHTML;
}
if (User_list.indexOf('|' + username + '|') == -1)
{Users += 1; User_list += '|' + username + '|';}
var autoc = 'no';
var the_sum = '';
for (k = 0 ; k < l.getElementsByTagName('span').length; k++)
{
if (l.getElementsByTagName('span').className == 'minor')
{
Minor_nonrv = 1;
Minor_or_sum = 1;
Minor = 'yes';
Marked_as_minor = 'yes';
}
else if (l.getElementsByTagName('span').className == 'autocomment')
{
autoc = 'yes';
if (l.getElementsByTagName('span').innerHTML.indexOf(" -") !=-1)
{
Sum_value = 1;
Minor_or_sum = 1;
if (l.getElementsByTagName('span').innerHTML.indexOf("-</span> ") !=-1)
{the_sum = l.getElementsByTagName('span').innerHTML.split("-</span> ").split(")</span>");}
else if (l.getElementsByTagName('span').innerHTML.indexOf("-</span>") !=-1)
{the_sum = l.getElementsByTagName('span').innerHTML.split("-</span>").split("</span>");}
else if (l.getElementsByTagName('span').innerHTML.indexOf("</span>") !=-1)
{the_sum = l.getElementsByTagName('span').innerHTML.split("</span>").split("</span>");}
break;
}
else
{
Sum_value = -1;
if (Minor == 'no')
{Minor_or_sum = -1;}
}
break;
}
else if (l.getElementsByTagName('span').className == 'comment')
{
Sum_value = 1;
Minor_or_sum = 1;
var Careful = 'no';
the_sum = l.getElementsByTagName('span').innerHTML;
}
}
//End of k loop
//remove links
raw_sum = the_sum;
the_sum = the_sum.replace(/<a href=]+<.a>/ig,'');
//
if (Minor_or_sum == -1)
{
NS = NS + 1;
UM = UM + 1;
l.innerHTML += ' (' + umplink + ') #' + UM;
}
else if (Sum_value == -1)
{
NS = NS + 1;
l.innerHTML += ' (' + nslink + ') #' + NS;
}
if (theadminlist.indexOf('|' + username + '|') != -1)
{
SYS = SYS + 1;
sysop = 'yes';
l.innerHTML += ' (' + syslink + ') #' + SYS;
}
else if (thervbotlist.indexOf('|' + username + '|') != -1)
{
BOT = BOT + 1;
l.innerHTML += ' (' + botlink + ') #' + BOT;
}
//vandal rollbacks
if (the_sum.search(/\((rvv|Rvv|RVV|RvV|RV V|rv v)/) != -1 || the_sum.search(/reverted edits|Popups assisted reversion|reverted vandalism|revert to revision|to last version by|compromise the integrity|troll(s|ing)\)/i) != -1 || the_sum.search(/BOT - rv|BOT - Reverted|vandal edit/i) != -1 || the_sum.search(/(rv|Rv|RV) vandalism/i) != -1 || t.indexOf('(rv/v)') != -1 || t.indexOf('(Rv/v)') != -1)
{
V += 1;
l.innerHTML += ' (' + vanlink + ') #' + V;
R += 1;
l.innerHTML += ' (' + rvlink + ') #' + R;
Superfic = 'no';
Notable = 'no';
Significant = 'no';
Minor_nonrv = -1;
Revert = 'yes';
VRevert = 'yes';
}
//page rollbacks
else if (the_sum.search(/(everted|everting|rv|Rv|RV|evert|ollback|olling )/) != -1 || the_sum.search(/revert|reverting|reverted|rollback/i) != -1)
{
R += 1;
l.innerHTML += ' (' + rvlink + ') #' + R;
Superfic = 'no';
Notable = 'no';
Significant = 'no';
Minor_nonrv = -1;
Revert = 'yes';
VRevert = 'yes';
}
//vandal reverts
else if (the_sum.search(/(Rm|rm|Remove|remove) (vandalism|test|nonsense)/i) != -1 || the_sum.search(/remove vandalism|removed vandalism|rmv graffitti|rm graffitti|rv graffitti|everting vandal|compromise the integrity/i) != -1 || the_sum.search(/fixed vandalism|Revert vandal|revert vandal|delete vandal|linkspam| vandalism|vandals | vandal/i) != -1 || the_sum.search(/(Rev|rev) vandal|\(vandal|\(trolling/) != -1 || the_sum.search(/\((Revert|trolls|trolling)\)/) != -1)
{
V += 1;
l.innerHTML += ' (' + vanlink + ') #' + V;
R += 1;
l.innerHTML += ' (' + rvlink + ') #' + R;
Superfic = 'no';
Notable = 'no';
Significant = 'no';
Minor_nonrv = -1;
Revert = 'yes';
}
//page reverts
else if (the_sum.search(/Removed|Restoring |Revert|revert|Reverting|restore|estoring|estored|Rm|rm|einstated|rmv|einstate|rv\\./) != -1 || the_sum.search(/delete|deleted|removed|remove|removing|removed|remove|removing|reinstated|reinstate/i) != -1 || the_sum.search(/restore|estored/i) != -1 || the_sum.search(/ stop| not|please|please|can't|cant|why/i) != -1 || the_sum.search(/re-added|re-inserted|added back /i) != -1 || the_sum.search('(seriously|WTF|\\?\\?)') !=-1 || the_sum.search(/estore(|d|ing )|delet(e|ed|ing) |(un|n)ecessary /i) !=-1 || the_sum.search(/(Should|should|Is|is) not |should(nt|n't) |c(an't|annot) /i) !=-1 || the_sum.search(/back again|POINT|no such | such thing| agree with| don't| do not|\(surely|\?\)/) !=-1 || the_sum.search(/no need/i) !=-1 || the_sum.search(/Abuse of |admin powers | vandals | vandal |\(If |speculation\)| violat(e|es|ed) | your standards| doesn't| your| you're| yours| you | aren't| isn't/i) != -1)
{
R += 1;
l.innerHTML += ' (' + rvlink + ') #' + R;
Superfic = 'no';
Notable = 'no';
Significant = 'no';
Minor_nonrv = -1;
Revert = 'yes';
}
//reverted edit flagging
if (Revert == 'yes' && l.innerHTML.indexOf(revlink) != -1)
{Reverted = Reverted-1; l.innerHTML = l.innerHTML.replace(revlink,'');}
else {l.innerHTML = l.innerHTML.replace(revlink,' (<span style="color:darkorange;">' + revlink + '</span>) ');}
//typical rollbacks
if (VRevert == 'yes' && l != undefined && raw_sum.search(/\(Revert to revision \d+ .+ by .+ using < /) == -1)
{
var badname = l.getElementsByTagName('a').innerHTML;
for (var h=i+1; h<l.length; h++)
{
var uname = l.getElementsByTagName('a').innerHTML;
if (l.innerHTML.indexOf(') (last)') == -1 && l.innerHTML.indexOf(revlink) == -1 && uname == badname)
{
Reverted += 1;
l.innerHTML += revlink;
}
else {break;}
}
}
//popups rev support
else if (VRevert == 'yes' && l != undefined && raw_sum.search(/\(Revert to revision \d+ .+ by .+ using < /) != -1)
{
var goodname = raw_sum.match(/ by .+ using < /).split(' by ').split(' using <A ').split(' using <a ');
for (var h=i+1; h<l.length; h++)
{
var uname = l.getElementsByTagName('a').innerHTML;
if (l.innerHTML.indexOf(') (last)') == -1 && l.innerHTML.indexOf(revlink) == -1 && uname != goodname)
{
Reverted += 1;
l.innerHTML += revlink;
}
else {break;}
}
}
//
if (numered == false)
{var c = i+1; l.innerHTML = '<strong>#' + c + '</strong> ' + l.innerHTML;}
//
if (Namespace_type == 'article')
{
//first edit is a notable edit
if (l.innerHTML.indexOf(') (last)') !=-1)
{Careful = 'yes'; Minor = 'no'; Minor_nonrv = -1; Notable = 'yes';}
//notable edits
else if (Sum_value == 1 && Revert == 'no')
{
if (the_sum.search(/ created|create| creation|rastic addition|rastic edit|rastic cha|rastic mod|expansion |rewriting\)|rewriting\)|rewrote|(rewriting|rewrite|rewrote)(completely|page|article)/i) !=-1 || the_sum.search(/(add )(a | )(lot|large|tons|great|signif)|(write|create) (brand|new)|major (ed|ch|mod)|interim save|\(expand(ed|ing| )| expanded\)|contin(uing|ued) (addition|expand|expans|writ)/i) !=-1 || the_sum.search(/(\+|Add|add|more|create |another )(history|paragraph|section|references|sources|sourcing|citations|refs|photos|images|pictures)/i) !=-1 || the_sum.search(/\((.)(eferences|ources|itations|Refs|refs|photos|Images|images|ictures)\)/i) !=-1 || the_sum.search(/(create|created|creating|made|making|quick|\(new|started|starting) (stub|basic|initial|article|page|biog|section|paragr|draft)/i) !=-1 || the_sum.search(/(added|adding) (basic|initial|biog|section|paragr)|creat(e|ed|ing) (page|section|article|biog)/i) !=-1 || the_sum.search(/(references| sources| sourced|citations) add/i) !=-1 || the_sum.search(/(create|created|creation|bio|biography|\(article|\(page\))/i) !=-1)
{Careful = 'yes'; Minor = 'no'; Minor_nonrv = -1; Notable = 'yes';}
//significant edit pass 1
else if (the_sum.search(/(Info|Content|addition|addition|Facts| facts|\(add)|(quotes|fact|xample|xpand|ompromise| accurate| sentence| about)/i) !=-1 || the_sum.search(/biography|(ade|reate) article\)|creat(e|ion) |copyedit|descri(ption|be)/i) !=-1 || the_sum.search(/(Add|finish|finishing|finished|more|\+|another )(reference|citation|source|info|content|image|photo|pic|section)/i) !=-1 || the_sum.search(/(reference|itation|source|info|content|image|photo|pictures) added/i) !=-1 || the_sum.search(/(eference|ource|itation|Ref|ref|photo|Image|image|icture|more)/i) !=-1 || the_sum.search(/\((create|created|creating) /i) !=-1 || the_sum.search(/(rewriting|rewrite|rewrote)(section|lead|intro|paragraph)/i) !=-1)
{Careful = 'yes'; Minor = 'yes'; Significant = 'yes'; Minor_nonrv = 1;}
//summary rules
else if (autoc == 'no' && the_sum.length < 12)
{Minor = 'yes'; Superfic = 'yes'; Minor_nonrv = 1;}
else if (autoc == 'yes' && the_sum.length < 10)
{Minor = 'yes'; Superfic = 'yes'; Minor_nonrv = 1;}
else if (the_sum.split(' ').length < 2)
{Minor = 'yes'; Superfic = 'yes'; Minor_nonrv = 1;}
else if (the_sum.split(' ').length < 3 && Minor == 'no')
{Minor = 'yes'; Significant = 'yes'; Minor_nonrv = 1;}
else if (the_sum.split(' ').length < 3 && Minor == 'yes')
{Minor = 'yes'; Superfic = 'yes'; Minor_nonrv = 1;}
}
//superficial check pass 1 (main)
if (Namespace_type == 'article' && Sum_value == 1 && Revert == 'no' && Superfic == 'no')
{
if (the_sum.search(/>|<|\+|\(move| -|to-|#|\.\.\.|\(m| m|\|\(clean|grammar|lnk| lnk|punc| punct|re-cat|recat/i) != -1 || the_sum.search('(al|ing) error') !=-1 || the_sum.search(/ cleanup| cleaning|cleanup|cleaning|Assisted| format| linked|template| abbr|Abbr|Disambig|disambig|Dab|dab|DAB| odering| spelling|spelling| typo|typo\)/) !=-1 || the_sum.search(/ word| tag|place|bad|can|word|tag|place|bad|can\)/) !=-1 || the_sum.search('{2,5}ps') !=-1 || the_sum.search('edir(ect|ing)') !=-1 || the_sum.search('') !=-1 || the_sum.search('for elet') !=-1 || the_sum.search(/AWB|REDIR| redir|redirect| skip| interwiki|shorten|shorten|compress|compress\)/) !=-1 || the_sum.search(/CSD|CfSD|belong|ointless|clarif|onvert| sentence| sentence\)/) !=-1 || the_sum.search(/easier|simplify|simpler| ersion|ersion\)/i) !=-1 || the_sum.search(/small|shorten|avoid|epair|few|protected|rotected| heading| title|made| bold|populating| flag /i) !=-1 || the_sum.search(/convert| rid|Auto |ypass /) !=-1 || the_sum.search(/is|auto|html|already|almost| cut| paste| tweak|mov(e|ed|ing) /i) !=-1 || the_sum.search(/ match| others/i) != -1 || the_sum.search(/\((No|no )/) != -1 || the_sum.search(/(changing|modify|modified|modifying|tweaking) (links|layout|format|setup|interwiki)/i) != -1 || the_sum.search(/Stub-| sorting|-sorting|You can help!|seealso| adjectives|adjectives|categorize|categorizing|fix|fixed|!/i) != -1 || the_sum.search(/(added|add|changed|moved|modified) (wikilink|link|categor)/i) != -1 || the_sum.search(/ab|\(ix|ix/) == 0)
{
Minor_nonrv = 1;
Minor = 'yes';
Superfic = 'yes';
Notable = 'no';
Significant = 'no';
}
}
//superficial check pass 2 (only for those not already marked)
if (Namespace_type == 'article' && Sum_value == 1 && Revert == 'no' && Superfic == 'no' && Careful == 'no')
{
if (the_sum.search(/ikif(y|ied)|ategor(y|ize|ise)|(Fo|F|f|fo)rm(t|at)|-ssisted|BOT|ot/) !=-1 || the_sum.search('tyle') !=-1 || the_sum.search('odif(y|ied|ying)') !=-1 || the_sum.search('r(e|e-)order') !=-1 || the_sum.search('e(structure|organiz|order)') !=-1 || the_sum.search('lea(n|r)') !=-1 || the_sum.search(/clarity|replac(e|ed|ing)/i) !=-1 || the_sum.search(' conver(t|sion)') !=-1 || the_sum.search(/(re-)arrang(e|ed|ing) /i) != -1 || the_sum.search('( Request| request|WP:|ink to )') != -1 || the_sum.search(/Fix| list|reorganize|correct| website| detail|this| this/i) !=-1 || the_sum.search('( )cat( )') !=1 || the_sum.search('equest(|ed|ing )') != -1 || the_sum.search('!') !=-1 || the_sum.search('(article|page) (is|currently|undergoing)') !=-1)
{
Minor_nonrv = 1;
Minor = 'yes';
Superfic = 'yes';
Notable = 'no';
Significant = 'no';
}
}
//signifiant article edit pass 2 (only for those not already marked)
if (Namespace_type == 'article' && Sum_value == 1 && Revert == 'no' && Superfic == 'no' && Careful == 'no')
{
if (the_sum.search(/ikif(y|ied)|ategor(y|ize|ise)|(Fo|F|f|fo)rm(t|at)|-ssisted|BOT|ot |tyle|odif(y|ied|ying)/) !=-1 || the_sum.search('r(e|e-)order') !=-1 || the_sum.search('e(structure|organiz|order)') !=-1 || the_sum.search('lea(n|r)') !=-1 || the_sum.search(/clarity|replac(e|ed|ing)/i) !=-1 || the_sum.search(' conver(t|sion)') !=-1 || the_sum.search(/(re-)arrang(e|ed|ing) /i) != -1 || the_sum.search('( Request| request|WP:|ink to )') != -1 || the_sum.search(/Fix| list|reorganize|correct| website| detail|this| this/i) !=-1 || the_sum.search('( )cat( )') !=1 || the_sum.search('equest(|ed|ing )') != -1 || the_sum.search(/!\)| "| '/) !=-1 || the_sum.search('(article|page) (is|currently|undergoing)') !=-1)
{
Minor_nonrv = 1;
Minor = 'yes';
Significant = 'yes';
}
}
//anything else left, marked as minor, is superficial
if (Namespace_type == 'article' && Sum_value == 1 && Revert=='no' && Notable =='no' && Superfic=='no' && Significant == 'no' && Minor=='yes')
{
Minor_nonrv = 1;
Minor = 'yes';
Superfic = 'yes';
}
//anything else left, not marked as minor, is significant
else if (Namespace_type == 'article' && Sum_value == 1 && Revert=='no' && Notable =='no' && Superfic=='no' && Significant == 'no' && Minor=='no')
{
Minor_nonrv = 1;
Significant = 'yes'
Minor = 'yes';
}
//flagging
if (Sum_value == -1 && Marked_as_minor == 'yes')
{
ArtSf = ArtSf + 1;
l.innerHTML += ' (' + sflink + ') #' + ArtSf;
}
else if (Notable == 'yes' && Marked_as_minor == 'no')
{
ArtSig = ArtSig + 1;
l.innerHTML += ' (' + alink + ') #' + ArtSig;
}
else if (Notable == 'yes' && Marked_as_minor == 'yes')
{
ArtSig = ArtSig + 1;
l.innerHTML += ' (' + malink + ') #' + ArtSig;
}
else if (Superfic == 'yes' && Minor == 'yes' && Sum_value == 1)
{
ArtSf = ArtSf + 1;
l.innerHTML += ' (' + sflink + ') #' + ArtSf;
}
else if (Superfic == 'no' && Minor == 'yes' && Significant == 'yes' && Sum_value == 1 && Revert == 'no')
{
ArtM = ArtM + 1;
l.innerHTML += ' (' + minalink + ') #' + ArtM;
}
}
//end article stats
//undeletion flagging
if (undelete == 'yes'){del_offset = 2;}
if (undelete == 'yes' && sysop == 'no')
{
if (the_sum.search(/phone number|home | address|sreet |personal| lives at/i) != -1 || the_sum.search(/-/) != -1 || the_sum.search(/\u{5,}/) != -1 || t.indexOf('!!') != -1 || t.indexOf('___') != -1 || t.indexOf('I ') != -1 || t.indexOf('You') != -1 || t.indexOf('YOU') != -1 || t.indexOf('YOu') != -1 || t.indexOf('YoU') != -1 || t.indexOf('He') != -1 || t.indexOf('HE') != -1 || t.indexOf('he ') != -1 || t.indexOf('WoW') != -1 || t.indexOf('WILLY') != -1 || t.indexOf('Willy') != -1 || t.indexOf('uck') != -1 || t.indexOf('UCK') != -1 || t.indexOf('enis') != -1 || t.indexOf('PEN') != -1 || t.indexOf('ock') != -1 || t.indexOf('OCK') != -1 || t.indexOf('LOL') != -1)
{
l.innerHTML += ' (' + suslink + ')';
}
}
//user flagging
if (l.innerHTML.indexOf('(cur) (') == -1 && l.innerHTML.indexOf(') (last)') == -1)
{
if (l.getElementsByTagName('a').href.indexOf('title=Special:Contributions') != -1)
{
IP = IP + 1;
l.innerHTML += ' (' + iplink + ') #' + IP;
Newbie = 1;
Newbie_edits += 1;
}
else if (l.getElementsByTagName('a').href.indexOf('&action=edit') != -1 && l.getElementsByTagName('a').href.indexOf('&action=edit') != -1 && sysop == 'no')
{
VN = VN + 1;
l.innerHTML += ' (' + nulink + ') #' + NU;
Newbie = 1;
Newbie_edits += 1;
}
else if (l.getElementsByTagName('a').href.indexOf('&action=edit') != -1 && sysop == 'no')
{
NU = NU + 1;
l.innerHTML += ' (' + nulink + ') #' + NU;
Newbie = 1;
Newbie_edits += 1;
}
}
else if (l.innerHTML.indexOf('(cur) (') != -1 && l.innerHTML.indexOf(') (last)') != -1)
{
if (l.getElementsByTagName('a').href.indexOf('title=Special:Contributions') != -1)
{
IP = IP + 1;
l.innerHTML += ' (' + iplink + ') #' + IP;
Newbie = 1;
Newbie_edits += 1;
}
else if (l.getElementsByTagName('a').href.indexOf('&action=edit') != -1 && l.getElementsByTagName('a').href.indexOf('&action=edit') != -1 && sysop == 'no')
{
VN = VN + 1;
l.innerHTML += ' (' + nulink + ') #' + NU;
Newbie = 1;
Newbie_edits += 1;
}
else if (l.getElementsByTagName('a').href.indexOf('&action=edit') != -1 && sysop == 'no')
{
NU = NU + 1;
l.innerHTML += ' (' + nulink + ') #' + NU;
Newbie = 1;
Newbie_edits += 1;
}
}
else if (l.innerHTML.indexOf('(cur) (') != -1 || l.innerHTML.indexOf(') (last)') != -1)
{
if (l.getElementsByTagName('a').href.indexOf('title=Special:Contributions') != -1)
{
IP = IP + 1;
l.innerHTML += ' (' + iplink + ') #' + IP;
Newbie = 1;
Newbie_edits += 1;
}
if (l.getElementsByTagName('a').href.indexOf('&action=edit') != -1 && l.getElementsByTagName('a').href.indexOf('&action=edit') != -1 && sysop == 'no')
{
VN = VN + 1;
l.innerHTML += ' (' + nulink + ') #' + NU;
Newbie = 1;
Newbie_edits += 1;
}
else if (l.getElementsByTagName('a').href.indexOf('&action=edit') != -1 && sysop == 'no')
{
NU = NU + 1;
l.innerHTML += ' (' + nulink + ') #' + NU;
Newbie = 1;
Newbie_edits += 1;
}
}
if (Newbie == 1 && l.innerHTML.indexOf(revlink) == -1 && Revert == 'no')
{Newbie_nonreverts += 1;}
}
//end of FOR LOOP
if (i == 1)
{
document.getElementById('bodyContent').innerHTML = '<span style="color:blue;"><strong>There are no page modification statistics to show since there is only one edit.</span></strong><br>' + firstbody;
return;
}
if (document.title.indexOf('View and restore deleted pages') != -1)
{var lt = l.getElementsByTagName('a').innerHTML;}
else if (location.href.indexOf('&offset=') != -1 && location.href.indexOf('&offset=0') == -1)
{var lt = l.getElementsByTagName('a').innerHTML;}
else if (l.getElementsByTagName('a'))
{var lt = l.getElementsByTagName('a').innerHTML;}
else if (l.getElementsByTagName('a'))
{var lt = l.getElementsByTagName('a').innerHTML;}
if (lt.indexOf('January ') != -1)
{var Month = 'January'; var Mval = 1; var Day = lt.split('January ').split(','); var Year = lt.split('January ').split(', '); var Time = lt.split(', January ');}
else if (lt.indexOf('February ') != -1)
{var Month = 'February'; var Mval = 2; var Day = lt.split('February ').split(','); var Year = lt.split('February ').split(', '); var Time = lt.split(', February ');}
else if (lt.indexOf('March ') != -1)
{var Month = 'March'; var Mval = 3; var Day = lt.split('March ').split(','); var Year = lt.split('March ').split(', '); var Time = lt.split(', March ');}
else if (lt.indexOf('April ') != -1)
{var Month = 'April'; var Mval = 4; var Day = lt.split('April ').split(','); var Year = lt.split('April ').split(', '); var Time = lt.split(', April ');}
else if (lt.indexOf('May ') != -1)
{var Month = 'May'; var Mval = 5; var Day = lt.split('May ').split(','); var Year = lt.split('May ').split(', '); var Time = lt.split(', May ');}
else if (lt.indexOf('June ') != -1)
{var Month = 'June'; var Mval = 6; var Day = lt.split('June ').split(','); var Year = lt.split('June ').split(', '); var Time = lt.split(', June ');}
else if (lt.indexOf('July ') != -1)
{var Month = 'July'; var Mval = 7; var Day = lt.split('July ').split(','); var Year = lt.split('July ').split(', '); var Time = lt.split(', July ');}
else if (lt.indexOf('August ') != -1)
{var Month = 'August'; var Mval = 8; var Day = lt.split('August ').split(','); var Year = lt.split('August ').split(', '); var Time = lt.split(', August ');}
else if (lt.indexOf('September ') != -1)
{var Month = 'September'; var Mval = 9; var Day = lt.split('September ').split(','); var Year = lt.split('September ').split(', '); var Time = lt.split(', September ');}
else if (lt.indexOf('October ') != -1)
{var Month = 'October'; var Mval = 10; var Day = lt.split('October ').split(','); var Year = lt.split('October ').split(', '); var Time = lt.split(', October ');}
else if (lt.indexOf('November ') != -1)
{var Month = 'November'; var Mval = 11; var Day = lt.split('November ').split(','); var Year = lt.split('November ').split(', '); var Time = lt.split(', November ');}
else if (lt.indexOf('December ') != -1)
{var Month = 'December'; var Mval = 12; var Day = lt.split('December ').split(','); var Year = lt.split('December ').split(', '); var Time = lt.split(', December ');}
var point = Time.length - 5;
Timenum = Time.substring(point);
Simpletime = 1*(Timenum.split(":"));
var TimeM = (Timenum.split(":"));
Time = Simpletime + (TimeM/60);
j=i-1;
if (l.innerHTML.indexOf('January ') != -1)
{var LMonth = 'January'; var LMval = 1; var LDay = l.innerHTML.split('January ').split(','); var LYear = l.innerHTML.split('January ').split(', '); var LTime = l.innerHTML.split(', January ');}
else if (l.innerHTML.indexOf('February ') != -1)
{var LMonth = 'February'; var LMval = 2; var LDay = l.innerHTML.split('February ').split(','); var LYear = l.innerHTML.split('February ').split(', '); var LTime = l.innerHTML.split(', February ');}
else if (l.innerHTML.indexOf('March ') != -1)
{var LMonth = 'March'; var LMval = 3; var LDay = l.innerHTML.split('March ').split(','); var LYear = l.innerHTML.split('March ').split(', '); var LTime = l.innerHTML.split(', March ');}
else if (l.innerHTML.indexOf('April ') != -1)
{var LMonth = 'April'; var LMval = 4; var LDay = l.innerHTML.split('April ').split(','); var LYear = l.innerHTML.split('April ').split(', '); var LTime = l.innerHTML.split(', April ');}
else if (l.innerHTML.indexOf('May ') != -1)
{var LMonth = 'May'; var LMval = 5; var LDay = l.innerHTML.split('May ').split(','); var LYear = l.innerHTML.split('May ').split(', '); var LTime = l.innerHTML.split(', May ');}
else if (l.innerHTML.indexOf('June ') != -1)
{var LMonth = 'June'; var LMval = 6; var LDay = l.innerHTML.split('June ').split(','); var LYear = l.innerHTML.split('June ').split(', '); var LTime = l.innerHTML.split(', June ');}
else if (l.innerHTML.indexOf('July ') != -1)
{var LMonth = 'July'; var LMval = 7; var LDay = l.innerHTML.split('July ').split(','); var LYear = l.innerHTML.split('July ').split(', '); var LTime = l.innerHTML.split(', July ');}
else if (l.innerHTML.indexOf('August ') != -1)
{var LMonth = 'August'; var LMval = 8; var LDay = l.innerHTML.split('August ').split(','); var LYear = l.innerHTML.split('August ').split(', '); var LTime = l.innerHTML.split(', August ');}
else if (l.innerHTML.indexOf('September ') != -1)
{var LMonth = 'September'; var LMval = 9; var LDay = l.innerHTML.split('September ').split(','); var LYear = l.innerHTML.split('September ').split(', '); var LTime = l.innerHTML.split(', September ');}
else if (l.innerHTML.indexOf('October ') != -1)
{var LMonth = 'October'; var LMval = 10; var LDay = l.innerHTML.split('October ').split(','); var LYear = l.innerHTML.split('October ').split(', '); var LTime = l.innerHTML.split(', October ');}
else if (l.innerHTML.indexOf('November ') != -1)
{var LMonth = 'November'; var LMval = 11; var LDay = l.innerHTML.split('November ').split(','); var LYear = l.innerHTML.split('November ').split(', '); var LTime = l.innerHTML.split(', November ');}
else if (l.innerHTML.indexOf('December ') != -1)
{var LMonth = 'December'; var LMval = 12; var LDay = l.innerHTML.split('December ').split(','); var LYear = l.innerHTML.split('December ').split(', '); var LTime = l.innerHTML.split(', December ');}
var lpoint = LTime.length - 5;
LTimenum = LTime.substring(lpoint);
LSimpletime = 1*(LTimenum.split(":"));
var LTimeM = (LTimenum.split(":"));
LTime = LSimpletime + (LTimeM/60);
var E = i;
var SE = E-Reverted-R;
var RU = E-IP;
var OU = E-IP-NU-VN-SYS-BOT;
var UN = IP+NU;
var ESUM = 100*(E-NS)/E;
Year = Year.split(' ').split('</a>');
LYear = LYear.split(' ').split('</a>');
var cmothr = CDay - 1 + (CTime/24);
var mothr = Day - 1 + (Time/24);
var mothl = 30.42 - (LDay - 1 + LTime/24);
if (CYear == LYear)
{
var cmdiff = 30.42*(CMval - LMval - 1);
var ctotdays = cmothr + mothl + cmdiff;
if (CMval == LMval)
{ctotdays = CDay - 1 + CTime/24 - (LDay - 1 + LTime/24);}
var caverage = E/ctotdays;
}
if (CYear != LYear)
{
var cydiff = 365*(CYear - LYear - 1);
var cyearr = 30.42*(CMval - 1) + cmothr;
var yearl = 30.42*(12 - LMval - 1) + mothl;
var ctotdays = cyearr + cydiff + yearl;
var caverage = E/ctotdays;
}
if (Year == LYear)
{
var mdiff = 30.42*(Mval - LMval - 1);
var totdays = mothr + mothl + mdiff;
if (Mval == LMval)
{totdays = Day - 1 + Time/24 - (LDay - 1 + LTime/24);}
var average = E/totdays;
var rvaverage = R/totdays;
var nonrvave = average - rvaverage;
}
if (Year != LYear)
{
var ydiff = 365*(Year - LYear - 1);
var cydiff = 365*(CYear - LYear - 1);
var yearr = 30.42*(Mval - 1) + mothr;
var cyearr = 30.42*(CMval - 1) + cmothr;
var yearl = 30.42*(12 - LMval - 1) + mothl;
var totdays = yearr + ydiff + yearl;
var ctotdays = cyearr + cydiff + yearl;
var average = E/totdays;
var caverage = E/ctotdays;
var rvaverage = R/totdays;
var nonrvave = average - rvaverage;
}
var Daylength = Math.round((1)*totdays)/1;
if (totdays < 1)
{
Daylength = 1;
}
var avenotice = '';
//wow..statistics people
var caverage = Math.round((1000)*caverage)/1000;
if (location.href.split("&offset=") != undefined)
{
if (location.href.split("&offset=0") != undefined)
{
var offset = 'no';
}
else
{
caverage = '<strong>*</strong>';
avenotice = '<strong>*Average edits per day not shown because the most recent edit to this page is not visible</strong><br>';
var offset = 'yes';
}
}
var ArticleAves = '<span style="color:blue;"><strong>Analysis:</strong></span><br>';
if (Namespace_type == 'article')
{
ArticleAves = '<span style="color:blue;"><strong>Analysis:</span><br>' + '<span style="color:darkblue;">Notable edits (creation/expansion/major rewrites/sourcing):</span> ' + Math.round((100)*(100*(ArtSig)/E))/100 + '</strong>% (' + ArtSig + ' edit(s))<br>' + '<strong>Significant edits (copyedits/small rewrites/content/reference additions): ' + Math.round((100)*(100*(ArtM)/E))/100 + '</strong>% (' + ArtM + ' edit(s))<br>' + '<strong><span style="color:purple;">Superficial edits (grammar/spelling/wikify/links/tagging):</span> ' + Math.round((100)*(100*(ArtSf)/E))/100 + '</strong>% (' + ArtSf + ' edit(s))<br>';
}
var oldbody = document.getElementById('bodyContent').innerHTML;
//
document.getElementById('contentSub').innerHTML += '<br><span style="color:darkblue;"><strong>Viewing page modification statistics (from the </span>' + E + ' <span style="color:darkblue;">edits shown on this page):</span></strong>';
//
document.getElementById('bodyContent').innerHTML = '<div id="contentSub">' + document.getElementById('contentSub').innerHTML + '</div>' + '<strong><span style="color:blue;">User statistics for these edits:</span><br> ' + 'Number of users: ' + Users + '<br>' + Math.round((100)*IP/E*100)/100 + '% <span style="color:darkred;">IP/anon edits </span></strong> (' + IP + ' edit(s))<br><strong>' + Math.round((100)*VN/E*100)/100 + '% likely new user edits </strong> (' + VN + ' edit(s))<br><strong>' + Math.round((100)*NU/E*100)/100 + '% <span style="color:grey;">likely inexperienced user edits </span></strong> (' + NU + ' edit(s))<br><strong>' + Math.round((100)*(OU)/E*100)/100 + '%<span style="color:darkblue;"> likely older user edits (non-admin/bot) </strong></span> (' + (OU) + ' edit(s))<br><strong>' + Math.round((100)*SYS/E*100)/100 + '%<span style="color:blue;"> administrator edits </strong></span> (' + SYS + ' edit(s))<br><strong>' + Math.round((100)*BOT/E*100)/100 + '%<span style="color:darkorange;"> bot edits </strong></span> (' + BOT + ' edit(s))<br>' + '<span style="color:blue;"><strong>Time range:</span><br>' + Daylength + ' approximate day(s) of edits on this page</strong></span><br> ' + 'Most recent edit on: ' + Simpletime + 'hr (UTC) -- ' + Day + ', ' + Month + ', ' + Year + '<br>' + 'Oldest edit on: ' + LSimpletime + 'hr (UTC) -- ' + LDay + ', ' + LMonth + ', ' + LYear + '<br>' + 'Current time: ' + CSimpletime + 'hr (UTC) -- ' + CDay + ', ' + CMonth + ', ' + CYear + '<br>' + ArticleAves + '<strong>' + Math.round((100)*R/E*100)/100 + '%<span style="color:darkred;"> marked reverts (any)</span></strong> (' + R + ')<strong>' + '<br>'+ Math.round((100)*V/E*100)/100 + '%<span style="color:red;"> probable reverts of vandalism</span></strong> (' + V + ')<br>' + '<span style="color:grey;"><strong>Unmarked edits:</span> ' + Math.round((100)*(100*(UM)/E))/100 + '</strong>% (' + UM + ' edit(s))<br>' + '<span style="color:blue;"><strong>Averages:</span><br> ' + Math.round((100)*ESUM)/100 + '% edit summary usage<br>' + 'Average edits/user: ' + Math.round((100)*E/Users)/100 + '<br>' + caverage + ' edit(s) per day (current)<br>' + Math.round((1000)*average)/1000 + ' edit(s) per day (since last active)<br>' + Math.round((1000)*rvaverage)/1000 + '<span style="color:darkred;"> marked revert(s) per day (since last active)</strong></span><br>' + '<strong>1<span style="color:darkred;"> : </span>' + Math.round((100)*R/(E-R))/100 + '<span style="color:darkred;"> regular edit to marked revert ratio (RE:RV)</span><br>' + Math.round((100)*100*SE/E)/100 + '% <span style="color:darkblue;">edit progess (non-reverts/reverted edits)</span></strong> (' + SE + ' edit(s))<br><strong>' + Math.round((100)*100*Newbie_nonreverts/Newbie_edits)/100 + '% <span style="color:purple;">of edits by IPs/new/inexperienced users are non-reverts/reverted</span></strong> (' + Newbie_nonreverts + ' out of ' + Newbie_edits + ' edit(s))<br>' + avenotice + oldbody.split(oldbody.split('</div>') + '</div>');
//from wikibits.js
histrowinit();
//popups
var body = document.getElementById('bodyContent');
body.ranSetupTooltipsAlready=false;
setupTooltips(body);
}
//END
//From User:JesseW/monobook.js
function addSinceTab()
{
var tabs = document.getElementById('p-cactions').getElementsByTagName('ul');
if (window.location.href.indexOf("&limit=200&action=history&gotosince=true")!=-1)
{
do_since_I_last_edited()
}
else if (location.href.indexOf("&action=history") != -1)
{
var thetitle=document.title.slice(0, String(document.title).indexOf(" - "));
thetitle = thetitle.replace('&','%26').replace('&','%26').replace('&','%26').replace('&','%26');
var l=addlilink(tabs, "/search/?title="+thetitle+"&limit=200&action=history&gotosince=true", 'since', '');
l.lastChild.title="Changes since I last edited";
}
}
//END
function do_since_I_last_edited()
{
var csub=document.getElementById("contentSub");
var msg=document.createElement("p");
msg.appendChild(document.createTextNode
("Parsing history... please wait..."));
msg.className="error";
csub.insertBefore(msg, csub.firstChild)
var go = 'no';
var username = document.getElementById('pt-userpage').getElementsByTagName('a').innerHTML;
var hists = document.getElementById('bodyContent').getElementsByTagName('li');
var findcheck = document.getElementById('bodyContent');
if (hists.getElementsByTagName('a').innerHTML == username)
{msg.replaceChild(document.createTextNode("You were the last person to edit this page!"),msg.firstChild);; return;}
for (var n=0; n<hists.length; n++)
{
if (hists.getElementsByTagName('a'))
{
if (hists.getElementsByTagName('a').innerHTML == username)
{
hists.getElementsByTagName('input').checked=true;
if (n == 0){msg.replaceChild(document.createTextNode
("You were the last person to edit this page!"),
msg.firstChild);; return;}
location.href = hists.getElementsByTagName('a').href;
return;
}
}
else if (hists.getElementsByTagName('a'))
{
if (hists.getElementsByTagName('a').innerHTML == username)
{
if (n == 0){msg.replaceChild(document.createTextNode
("You were the last person to edit this page!"),
msg.firstChild);}
return;
}
}
}
msg.replaceChild(document.createTextNode
("You have not recently edited this page!"),
msg.firstChild);
}
//END
//</nowiki></pre>
Category :