_ _    _ _____  ___   __                       
 __      _(_) | _(_)___ / ( _ ) / /_   ___ ___  _ __ ___  
 \ \ /\ / / | |/ / | |_ \ / _ \| '_ \ / __/ _ \| '_ ` _ \ 
  \ V  V /| |   <| |___) | (_) | (_) | (_| (_) | | | | | |
   \_/\_/ |_|_|\_\_|____/ \___/ \___(_)___\___/|_| |_| |_|

User:DerHexer/revert.js

The name User:DerHexer/revert.js is undoubtedly a topic of great relevance today. Throughout history, User:DerHexer/revert.js has been the subject of study, debate and controversy in various fields and disciplines. From science to literature, through politics and popular culture, User:DerHexer/revert.js has left an indelible mark on society. In this article, we will explore different facets of User:DerHexer/revert.js, examining its impact on today's world and its relevance for the future. From its origins to its evolution today, User:DerHexer/revert.js has captured the attention and imagination of millions of people around the world.
 // originally from ]
 
 // get URL parameters (used for page type variables)
 var UrlParameters = new Array ();
 readparams();
 
 function readparams() {
  var asReadInUrlParameters;
  var asReadInUrlParameter;
 
  // Get URL parameters
  asReadInUrlParameters = location.search.substring(1, location.search.length).split("&");
  for (i = 0; i < asReadInUrlParameters.length; i++) {
    asReadInUrlParameter = asReadInUrlParameters.split("=");
    UrlParameters)] = decodeURIComponent(asReadInUrlParameter);
  }
 }
 
 if(!usersignature) var usersignature = '\~\~\~\~'         //standard signature
 if(!levelthreewarning) var levelthreewarning = false;
 
 function fillActionPage() {
   if (UrlParameters > "") {
     function searchRollbackLink() {
       var tds = document.getElementsByTagName("td");
       for (var i=0; i<tds.length; i++) {
         var td = tds; 
         if (td.className != "diff-ntitle") continue;
         var as = td.getElementsByTagName("a");
         for (var j=0; j<as.length; j++) {
           var a = as;
           if (!/.*action=rollback.*/.match(a.href)) continue;
           var newlink = document.createElement('a');
           a.setAttribute('accesskey', "s");
           newlink.setAttribute('href', a.href);
           var EditTextNode = document.createTextNode("normal rollback");
           newlink.appendChild(EditTextNode);
           as.parentNode.insertBefore( newlink, as.nextSibling );
           as.parentNode.insertBefore( document.createTextNode(' | '), as.nextSibling );
           return a;
         }
       }
       return tds;
     }
 
     function RollAndSpam(rolluri) {
       location.href = rolluri;
       var backrolled = rolluri.split("from=").split("&token=");
       var vandalizedpage = mw.config.get('wgPageName');
       var uri = "http://en.wikipedia.org/w/index.php?title=User talk:" + backrolled + "&vandalizedpage=" + vandalizedpage + "&action=edit&spam=1";
       window.setTimeout(function() { location.href = uri; }, 500);
     }
     var revlink = searchRollbackLink();
     revlink.onclick = function() { RollAndSpam(revlink.href); return false; }
   }
   if ( (UrlParameters > "") && (UrlParameters > "") ) {
       document.editform.wpMinoredit.checked=true;
       var splitted = document.forms.wpTextbox1.value.split("<!--");
       var lastsplitted = splitted;
 
         var jetzt = new Date();
         var thisyear = jetzt.getFullYear().toString();
         var thismonth = jetzt.getMonth()+1;
         if (thismonth < 10) { thismonth = "0" + thismonth; }
         var thisday = jetzt.getDate();
         if (thisday < 10) { thisday = "0" + thisday; }
         var thishour = jetzt.getHours();
         if (thishour < 10) { thishour = "0" + thishour; }
         var thisminute = jetzt.getMinutes();
         if (thisminute < 10) { var thisminute2 = "0" + thisminute; } else { var thisminute2 = thisminute; }
         var thissecond = jetzt.getSeconds();
         if (thissecond < 10) { thissecond = "0" + thissecond; }
         var thistime = thisyear + thismonth + thisday + thishour + thisminute + thissecond;
         var req;
         if (req = newRequest()) {
           var text = '/w/api.php?format=xml&action=query&prop=revisions&titles=' + mw.config.get('wgPageName') + '&rvlimit=1&rvprop=timestamp&rvdir=older&rvstart=' + thistime;
           req.open("GET", text, false);
           req.send("");
 
           var lasttimestamp = req.responseXML.getElementsByTagName("rev").getAttribute('timestamp');
           var lastminute = lasttimestamp.match(/(*)\-(*)\-(*)T(*)\:(*)\:(*)Z/);
           lastyear = RegExp.$1;
           lastmonth = RegExp.$2;
           lastday = RegExp.$3;
           lasthour = parseInt(RegExp.$4)+1;
           if (lasthour < 10) { lasthour = "0" + lasthour.toString(); } else { lasthour = lasthour.toString() }
           lastminute = RegExp.$5;
           lastsecond = RegExp.$6;
           var lastdate = Date.parse(lastmonth + ' ' + lastday + ' ' + lastyear + ' ' + lasthour + ':' + lastminute + ':' + lastsecond);
           var thisdate = Date.parse(thismonth + ' ' + thisday + ' ' + thisyear + ' ' + thishour + ':' + thisminute + ':' + thissecond);
       }
 
       var matchedtemplate = lastsplitted.match(/uw\-(*)(\d)/);
       var matchedtemplatename = RegExp.$1;
       var matchednumber = RegExp.$2;
       var matchedtemplate2 = lastsplitted.match(/Template\:Test(\d)/);
       var matchednumber2 = RegExp.$1;
       if (lastsplitted.search(/Uw\-Blank(\d)/) != -1) {
         var matchednumber = RegExp.$1;
         var matchedtemplatename = 'vandalism';
       } else if (lastsplitted.search(/Uw\-Blank/) != -1) {
         var matchednumber = 1;
         var matchedtemplatename = 'vandalism';
       }
       if ((lastsplitted.search(/Uw\-bv/) != -1) || (lastsplitted.search(/Blatantvandal/) != -1) || (lastsplitted.search(/longterm/) != -1)) {
         var matchednumber = 4;
         var matchedtemplatename = 'vandalism';
       }
       if ((!matchedtemplatename) || (matchedtemplatename == 'cluebotwarning') || (matchedtemplatename == 'w/index.php?title=') || (matchedtemplatename == 'block') || (matchedtemplatename == 'huggle') || (matchedtemplatename == 'huggleblock') || (matchedtemplatename.search(/\d/) != -1)) { 
         var matchedtemplatename = 'vandalism';
       }
       if (document.forms.wpTextbox1.value == "") {
         document.editform.wpSummary.value = "Caution: " + matchedtemplatename + " on \.replace(/\_/g, ' ') + "\]\]";
         document.forms.wpTextbox1.value = document.forms.wpTextbox1.value + "\{\{subst\:uw-" + matchedtemplatename + "2\|" + UrlParameters.replace(/\_/g, ' ') + "\}\} " + usersignature;
         document.editform.wpSave.click();
         window.setTimeout(function() { window.close(); }, 750);
       } else {
 
               var confirmcontinue = true;
               var oldip = false;
               if ((thisdate-lastdate) < 20000) {
                 confirmcontinue = confirm('This IP was warned less than 20 second ago. There might be an edit conflict. Do you want to continue nevertheless?');
               } else if ((thisdate-lastdate) > 86400000) {
                 var oldip = true;
               }
 
         if (confirmcontinue && oldip) {
           document.editform.wpSummary.value = "Caution: " + matchedtemplatename + " on \.replace(/\_/g, ' ') + "\]\]";
           document.forms.wpTextbox1.value = document.forms.wpTextbox1.value + "\n\n\{\{subst\:uw-" + matchedtemplatename + "2\|" + UrlParameters.replace(/\_/g, ' ') + "\}\} " + usersignature;
           document.editform.wpSave.click();
           window.setTimeout(function() { window.close(); }, 750);
         } else if (confirmcontinue && !oldip) {
             if ((matchednumber == 4) || (matchednumber2 == 4)) {
               var reporturl = "http://en.wikipedia.org/w/index.php?title=Wikipedia:Administrator_intervention_against_vandalism&action=edit&addreporteduser=" + mw.config.get('wgTitle') + "&addreportedarticle=" + UrlParameters;
               window.setTimeout(function() { location.href = reporturl; }, 750);
             } else if ((!levelthreewarning) || (matchednumber == 3) || (matchednumber2 == 3)) {
               document.editform.wpSummary.value = "Final warning: Vandalism on \.replace(/\_/g, ' ') + "\]\]";
               document.forms.wpTextbox1.value = document.forms.wpTextbox1.value + "\n\n\{\{subst\:uw-vandalism4\|" + UrlParameters.replace(/\_/g, ' ') + "\}\} " + usersignature;
               document.editform.wpSave.click();
               window.setTimeout(function() { window.close(); }, 750);
             } else {
               document.editform.wpSummary.value = "Warning: " + matchedtemplatename + " on \.replace(/\_/g, ' ') + "\]\]";
               document.forms.wpTextbox1.value = document.forms.wpTextbox1.value + "\n\n\{\{subst\:uw-" + matchedtemplatename + "3\|" + UrlParameters.replace(/\_/g, ' ') + "\}\} " + usersignature;
               document.editform.wpSave.click();
               window.setTimeout(function() { window.close(); }, 750);
             }
         }
       }
   }
   if ((UrlParameters > '') && (UrlParameters > '')) {
     if (document.forms.wpTextbox1.value.search(new RegExp(UrlParameters))==-1) {
       document.editform.wpMinoredit.checked=false;
       document.editform.wpSummary.value = "Reporting  + "|" + UrlParameters + "]].";
       document.forms.wpTextbox1.value = document.forms.wpTextbox1.value + "*{{IPvandal|" + UrlParameters + "}} – On .replace(/\_/g, ' ') + "]]; vandalism after final warning " + usersignature;
       document.editform.wpSave.click();
     } else {
       window.close();
     }
   }
 }

 if ( (UrlParameters > "") || ( (UrlParameters > "") && (UrlParameters > "") ) || ( (UrlParameters > '') && (UrlParameters > '') ) ) {
   addOnloadHook(fillActionPage);
 }