Jump to content

User:AHRtbA==/monobook.js

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by AHRtbA== (talk | contribs) at 22:04, 17 June 2008 (Monobook changes). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
var recentchanges;
window.onload=function(){
recentChanges();
quikendoEditPage();
checkBadWords();
}
function recentChanges()
{
var link="<li id='quikendo'><a target='_blank' href='http://en.wikipedia.org/wiki/User:AHRtbA==/Quikendo'>Quikendo Project</a></i>";
document.getElementById("p-tb").getElementsByTagName("ul")[0].innerHTML+=link;
if(document.getElementById("bodyContent")&&document.getElementById("recentchangestext")){
try{recentchanges=document.getElementById("bodyContent").getElementsByTagName("div")[5].getElementsByTagName("table");}
catch(ee){return false;}for(i=0;i<recentchanges.length;i++){
if(recentchanges[i].childNodes[0].childNodes[0].childNodes[1].childNodes[2].innerHTML=="diff"&&recentchanges[i].childNodes[0].childNodes[0].childNodes[1].childNodes[2].href!="undefined"&&recentchanges[i].childNodes[0].childNodes[0].childNodes[1].childNodes[2].href!="")
{
try{var tempquikurl=recentchanges[i].childNodes[0].childNodes[0].childNodes[1].childNodes[2].href;
var quikendourl=tempquikurl.substring(0,tempquikurl.indexOf("&"))+"&action=edit&quikendo=true&"+tempquikurl.substring(tempquikurl.indexOf("diff="),tempquikurl.length).replace("diff","undo").replace("oldid","undoafter");
recentchanges[i].childNodes[0].childNodes[0].childNodes[1].innerHTML=recentchanges[i].childNodes[0].childNodes[0].childNodes[1].innerHTML.replace("true","diff").replace(") . .",", <a href='"+quikendourl+"' title='Quikendo this edit'>undo</a>) . .");
}catch(ee){continue;}}}}
}
function quikendoEditPage()
{
if(window.location.href.indexOf("&action=edit&quikendo=true&")!=-1)
{
var filldiv=document.createElement("div");
filldiv.id="filldiv";
document.getElementById("bodyContent").insertBefore(filldiv, document.getElementById("bodyContent").getElementsByTagName("table")[0]);
var month=new Array(12);month[0]="January";month[1]="February";month[2]="March";month[3]="April";month[4]="May";month[5]="June";month[6]="July";month[7]="August";month[8]="September";month[9]="October";month[10]="November";month[11]="December";
document.getElementById("filldiv").innerHTML="<div style='margin: 0px auto;border: 1px solid #000000;padding: 10px;height: 110px;width: 850px;'>"+wgUserName+", if this edit was vandalism, please place a warning tag on <a href='http://en.wikipedia.org/w/index.php?title="+document.getElementById('wpSummary').value.substring(document.getElementById('wpSummary').value.indexOf('User talk:'),document.getElementById('wpSummary').value.indexOf('|talk')).replace(' ','_')+"&action=edit&section=new' target='_blank'>"+document.getElementById('wpSummary').value.substring(document.getElementById('wpSummary').value.indexOf('User talk:'),document.getElementById('wpSummary').value.indexOf('|talk'))+"'s talk page.</a><br />If it was general vadalism, and it was their first time, please use:<br /> <b><nowiki>=="+month[(new Date).getMonth()]+" "+(new Date).getFullYear()+"== {{subst:uw-vandalism1|"+unescape(window.location.href.substring(window.location.href.indexOf("title="),window.location.href.indexOf("&")).replace("title=","").replace("_"," "))+"}} ~~~~</nowiki></b> on their talk page.<br />Or for a full list of templates, go to: <a href='http://en.wikipedia.org/wiki/Wikipedia:Template_messages/User_talk_namespace' title='Vandalism Messages' target='_blank'>http://en.wikipedia.org/wiki/Wikipedia:Template_messages/User_talk_namespace</a><br />Thank you!<br />The Quikendo Team</div><br />";
}
}
var badwords=new Array("try", "t", "a", "b"); function checkBadWords() { for(i=0;i<badwords.length;i++) { 
var curbw = new RegExp(badwords[i],"g");document.getElementById("bodyContent").innerHTML=document.getElementById("bodyContent").innerHTML.replace(curbw, "ABCNFOIBRHBFOHBFUROHBNCJRINCOHJCRNIJRNCIJOJCPCRNCPINCRJIPNCRPJINCRJCRNKLENMKDCNJNEBCPCRNPJRCNJICRBVHPIJBV"); } }