There are 45 previous versions of this script.
the source is over 100KB, syntax highlighting in the browser is too slow
// ==UserScript==
// @name AOTR forum tools
// @namespace aotrtools
// @source http://userscripts.org/scripts/show/55491
// @identifier http://userscripts.org/scripts/source/55491.user.js
// @description Nuove opzioni per il forum AOTR
// @version 1.7
// @date 2011-04-01
// @author Brucaliffo
// @email brucaliffo@gmail.com
// @include http://www.apriliaontheroad.com/forum2009/*
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// ==/UserScript==
(function () {
/***********************/
/***** INIZIALIZZA *****/
/***********************/
var dom = new DOMUtils();
var body = dom.tag("body")[0];
var BXT_open=true;
//signaturesAreHidden
var signaturesAreHidden = GM_getValue('signaturesAreHidden');
if (signaturesAreHidden == undefined) {
var signaturesAreHidden = false; //default value
GM_setValue('signaturesAreHidden', signaturesAreHidden);
} else if (signaturesAreHidden) {
hideSignaturesFunction(true);
}
//searchThisForum
var searchThisForum = GM_getValue('searchThisForum');
if (searchThisForum == undefined) {
var searchThisForum = false; //default value
GM_setValue('searchThisForum', searchThisForum);
} else if (searchThisForum == true) {
searchThisForumFunction(true);
}
//stripPageTitle
var stripPageTitle = GM_getValue('stripPageTitle');
if (stripPageTitle == undefined) {
var stripPageTitle = false; //default value
GM_setValue('stripPageTitle', stripPageTitle);
} else if (stripPageTitle == true) {
stripPageTitleFunction(true);
}
//fullIconSet
var fullIconSet = GM_getValue('fullIconSet');
if (fullIconSet == undefined) {
var fullIconSet = false; //default value
GM_setValue('fullIconSet', fullIconSet);
} else if (fullIconSet == true) {
fullIconSetFunction(true);
}
//monkeysIconSet
var monkeysIconSet = GM_getValue('monkeysIconSet');
if (monkeysIconSet == undefined) {
var monkeysIconSet = false; //default value
GM_setValue('monkeysIconSet', monkeysIconSet);
} else if (monkeysIconSet == true) {
monkeysIconSetFunction(true);
}
//personalIconSet
var personalIconSet = GM_getValue('personalIconSet');
if (personalIconSet == undefined) {
var personalIconSet = false; //default value
GM_setValue('personalIconSet', personalIconSet);
} else if (personalIconSet == true) {
personalIconSetFunction(true);
}
//compactForum
var compactForum = GM_getValue('compactForum');
if (compactForum == undefined) {
var compactForum = false; //default value
GM_setValue('compactForum', compactForum);
} else if (compactForum == true) {
compactForumFunction(true);
}
//quickSearch
var quickSearch = GM_getValue('quickSearch');
if (quickSearch == undefined) {
var quickSearch = false; //default value
GM_setValue('quickSearch', quickSearch);
} else if (quickSearch == true) {
quickSearchFunction(true);
}
//filterMyMessages
var filterMyMessages = GM_getValue('filterMyMessages');
if (filterMyMessages == undefined) {
var filterMyMessages = false; //default value
GM_setValue('filterMyMessages', filterMyMessages);
} else if (filterMyMessages == true) {
filterMyMessagesFunction(true);
}
//accorcia il menu a tendina in fondo al forum
myarray = new Array(135, 131, 136, 142, 137, 138, 139, 140, 146, 141, 148, 149, 119, 118, 132, 121, 122, 120, 123, 124, 125, 126, 127, 128, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 184, 187, 185, 186, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 179, 183, 182, 181, 180, 178, 177, 180);
for (i in myarray) {
var option = dom.xs("//option[@value="+ myarray[i] +"]");
if (option) option.parentNode.removeChild(option);
}
/***********************/
/***** INTERFACCIA *****/
/***********************/
//bottone opzioni extra
var newA = dom.cn("a");
newA.setAttribute("id", "buttonMenuConfig");
newA.style.href = '#';
newA.style.marginRight = '10px';
newA.style.color = '#005784';
newA.style.cursor = 'pointer';
newA.innerHTML = "<img width='12' height='13' alt='*' src='./styles/aotr_subsilver2/theme/images/icon_mini_members.gif'/> Opzioni extra";
var extraOpz = dom.xs('//div[@id="menubar"]/table/tbody/tr/td[2]/a');
extraOpz.parentNode.insertBefore(newA, extraOpz);
newA.addEventListener("click", showOptionsPanel, false);
//bottone spia
var newB = dom.cn("a");
newB.setAttribute("id", "buttonSpy");
newB.style.href = '#';
newB.style.marginRight = '10px';
newB.style.color = '#005784';
newB.style.cursor = 'pointer';
newB.innerHTML = "<img alt='*' src='http://img18.imageshack.us/img18/9463/spy2.gif'/>";
newA.parentNode.insertBefore(newB, newA);
newB.addEventListener("click", showSpyPanel, false);
//layer trasparente
var layerTrasparente = dom.cn("div");
layerTrasparente.setAttribute("id", "layerTrasparente");
layerTrasparente.style.width = "100%";
layerTrasparente.style.height = "100%";
layerTrasparente.style.position = "fixed";
layerTrasparente.style.top = "0";
layerTrasparente.style.left = "0";
layerTrasparente.style.backgroundColor = "#000";
layerTrasparente.style.opacity = "0.6";
layerTrasparente.style.zIndex = "100";
layerTrasparente.style.visibility = "hidden";
body.appendChild(layerTrasparente);
//pannello delle opzioni
var menu = dom.cn("div");
menu.setAttribute("id", "menu");
menu.style.width = "400px";
menu.style.height = "270px";
menu.style.position = "fixed";
menu.style.top = "35%";
menu.style.left = "40%";
menu.style.zIndex = "101";
menu.style.visibility = "hidden";
body.appendChild(menu);
var menubackground = dom.cn("div");
menubackground.setAttribute("id", "menubackground");
menubackground.setAttribute("style", "width: 100%; height: 100%; background: #EEE; border: solid thin #C7C7C7; font-family: 'Lucida Grande','Trebuchet MS',Verdana,sans-serif; font-size: 14px; -moz-border-radius: 5px; cursor: default;");
menu.appendChild(menubackground);
var menuborder = dom.cn("div");
menuborder.setAttribute("id", "menuborder");
menuborder.setAttribute("style", "position: absolute; top: 0; left: 0; width: 380px; height: 250px; border: double #757575; margin: 3px; padding: 5px; -moz-border-radius: 5px;");
menubackground.appendChild(menuborder);
//titolo
var menuimg = dom.cn("img");
menuimg.setAttribute("id", "menuimg");
menuimg.setAttribute("style", "position: relative; top: 2px; margin-right: 2px;");
menuimg.setAttribute("src", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAH0SURBVDjLlZPLbxJRGMX5X/xbjBpjjCtXLl2L0YWkaZrhNQwdIA4FZxygC22wltYYSltG1HGGl8nopCMPX9AUKQjacdW4GNPTOywak7ZAF/eRe/M73/nOzXUAcEwaqVTKmUgkGqIoWoIgWP/fTYSTyaSTgAfdbhemaSIej+NcAgRudDod9Pt95PN5RKPR8wnwPG/Z1XVdB8dxin0WDofBsiyCwaA1UYBY/tdqtVAqlRCJRN6FQiE1k8mg2WyCpunxArFY7DKxfFir1VCtVlEoFCBJEhRFQbFYhM/na5wKzq/+4ALprzqxbFUqFWiaBnstl8tQVRWyLMPr9R643W7nCZhZ3uUS+T74jR7Y5c8wDAO5XA4MwxzalklVy+PxNCiKcp4IkbbhzR4K+h9IH02wax3MiAYCgcBfv99/4TS3xxtfepcTCPyKgGl5gCevfyJb/Q3q6Q5uMcb7s3IaTZ6lHY5f70H6YGLp7QDx9T0kSRtr5V9wLbZxw1N/fqbAHIEXsj1saQR+M8BCdg8icbJaHOJBqo3r1KfMuJdyuBZb2NT2R5a5l108JuFl1CHuJ9q4NjceHgncefSN9LoPcYskT9pYIfA9Al+Z3X4xzUdz3H74RbODWlGGeCYPcVf4jksz08HHId6k63USFK7ObuOia3rYHkdyavlR+267GwAAAABJRU5ErkJggg==");
menuborder.appendChild(menuimg);
var menutitle = dom.cn("span", "Opzioni extra:");
menutitle.setAttribute("id", "menutitle");
menutitle.setAttribute("style", "width: 50px; color: #545454; font-weight: bold; padding-left:5px;");
menuborder.appendChild(menutitle);
var hrnode = dom.cn("hr");
menuborder.appendChild(hrnode);
var brnode = dom.cn("br");
menuborder.appendChild(brnode);
//opzione: nascondere firme
var inputnode = dom.cn('input');
inputnode.type = 'checkbox';
inputnode.setAttribute("id", "optionSign");
if (signaturesAreHidden) {inputnode.checked = true;} else {inputnode.checked = false;};
inputnode.addEventListener('click', foo=function(){ hideSignaturesFunction(this.checked); }, false);
menuborder.appendChild(inputnode);
var textnode = dom.ct(" Nascondi le firme");
menuborder.appendChild(textnode);
var brnode = dom.cn("br");
menuborder.appendChild(brnode);
//opzione: cerca nel forum
var inputnode = dom.cn('input');
inputnode.type = 'checkbox';
inputnode.setAttribute("id", "optionSearch");
if (searchThisForum) {inputnode.checked = true;} else {inputnode.checked = false;};
inputnode.addEventListener('click', foo=function(){ searchThisForumFunction(this.checked); }, false);
menuborder.appendChild(inputnode);
var textnode = dom.ct(" Cerca nel forum/discussione");
menuborder.appendChild(textnode);
var brnode = dom.cn("br");
menuborder.appendChild(brnode);
//opzione: accorcia titolo pagina
var inputnode = dom.cn('input');
inputnode.type = 'checkbox';
inputnode.setAttribute("id", "optionStrip");
if (stripPageTitle) {inputnode.checked = true;} else {inputnode.checked = false;};
inputnode.addEventListener('click', foo=function(){ stripPageTitleFunction(this.checked); }, false);
menuborder.appendChild(inputnode);
var textnode = dom.ct(" Accorcia il titolo della pagina");
menuborder.appendChild(textnode);
var brnode = dom.cn("br");
menuborder.appendChild(brnode);
//opzione: tutte le icone
var inputnode = dom.cn('input');
inputnode.type = 'checkbox';
inputnode.setAttribute("id", "optionIcons");
if (fullIconSet) {inputnode.checked = true;} else {inputnode.checked = false;};
inputnode.addEventListener('click', foo=function(){ fullIconSetFunction(this.checked); }, false);
menuborder.appendChild(inputnode);
var textnode = dom.ct(" Visualizza tutte le emoticons");
menuborder.appendChild(textnode);
var brnode = dom.cn("br");
menuborder.appendChild(brnode);
//opzione: scimmie
var inputnode = dom.cn('input');
inputnode.type = 'checkbox';
inputnode.setAttribute("id", "optionMonkeys");
if (monkeysIconSet) {inputnode.checked = true;} else {inputnode.checked = false;};
inputnode.addEventListener('click', foo=function(){ monkeysIconSetFunction(this.checked); }, false);
menuborder.appendChild(inputnode);
var textnode = dom.ct(" Visualizza le scimmie!");
menuborder.appendChild(textnode);
var brnode = dom.cn("br");
menuborder.appendChild(brnode);
//opzione: icone personali
var inputnode = dom.cn('input');
inputnode.type = 'checkbox';
inputnode.setAttribute("id", "optionPersonalIcons");
if (personalIconSet) {inputnode.checked = true;} else {inputnode.checked = false;};
inputnode.addEventListener('click', foo=function(){ personalIconSetFunction(this.checked); }, false);
menuborder.appendChild(inputnode);
var textnode = dom.ct(" Visualizza altre icone");
menuborder.appendChild(textnode);
var brnode = dom.cn("br");
menuborder.appendChild(brnode);
//opzione: forum light
var inputnode = dom.cn('input');
inputnode.type = 'checkbox';
inputnode.setAttribute("id", "optionCompact");
if (compactForum) {inputnode.checked = true;} else {inputnode.checked = false;};
inputnode.addEventListener('click', foo=function(){ compactForumFunction(this.checked); }, false);
menuborder.appendChild(inputnode);
var textnode = dom.ct(" Forum in versione compact");
menuborder.appendChild(textnode);
var brnode = dom.cn("br");
menuborder.appendChild(brnode);
//opzione: forum quickSearch
var inputnode = dom.cn('input');
inputnode.type = 'checkbox';
inputnode.setAttribute("id", "optionQuickS");
if (quickSearch) {inputnode.checked = true;} else {inputnode.checked = false;};
inputnode.addEventListener('click', foo=function(){ quickSearchFunction(this.checked); }, false);
menuborder.appendChild(inputnode);
var textnode = dom.ct(" Quick search");
menuborder.appendChild(textnode);
var brnode = dom.cn("br");
menuborder.appendChild(brnode);
//opzione: filterMyMessages
var inputnode = dom.cn('input');
inputnode.type = 'checkbox';
inputnode.setAttribute("id", "optionFilterM");
if (filterMyMessages) {inputnode.checked = true;} else {inputnode.checked = false;};
inputnode.addEventListener('click', foo=function(){ filterMyMessagesFunction(this.checked); }, false);
menuborder.appendChild(inputnode);
var textnode = dom.ct(" Nascondi i messaggi già letti");
menuborder.appendChild(textnode);
var brnode = dom.cn("br");
menuborder.appendChild(brnode);
//bottone esci
var exitbutton = dom.cn('a');
exitbutton.setAttribute("id", "exitButton");
exitbutton.setAttribute("style", "position: absolute; bottom: 10px; left: 135px; width: 110px; padding: 5px; text-decoration: none; border: 1px solid #dedede; background-color: #f5f5f5; color: #565656; cursor: pointer; font-weight: bold;");
exitbutton.addEventListener('click', bar=function(){ hideOptionsPanel(); }, false);
var exitbuttonimg = dom.cn('img');
exitbuttonimg.setAttribute("style", "padding: 0; margin: 0 3px -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28Db+UJhdy2LXsvCHwtQO3sbjK0MqhU+EcBynuGDOtm0qGptQShLq7sYfDpO1kqwOD7E6PETWSuIPh6m+eQulJBWNTdi2DTBX2t7e7tnY2OhoaLtAPpsh/WySo4EAa/fuks9mkb9+sbW4QHl1DZ/GH3FS16lsbmVqaopcLnenkMTlaDRaF4vF+Dj2kPSL5/ytghcvca63r5DGFcMw6gsidpqmuQwEYr19VLa08uXtLDvJTwCUR85S1drGsciZg1Hu/H/P9C/v/HsAHOU55zkfy/0AAAAASUVORK5CYII=");
exitbutton.appendChild(exitbuttonimg);
var textnode = dom.ct("Esci");
exitbutton.appendChild(textnode);
menuborder.appendChild(exitbutton);
//pannello spia
var whoisonline = dom.cn("div");
whoisonline.setAttribute("id", "whoisonline");
whoisonline.style.width = "800px";
whoisonline.style.height = "550px";
whoisonline.style.position = "fixed";
whoisonline.style.top = "5%";
whoisonline.style.left = "10%";
whoisonline.style.zIndex = "101";
whoisonline.style.visibility = "hidden";
body.appendChild(whoisonline);
var s_menubackground = dom.cn("div");
s_menubackground.setAttribute("id", "s_menubackground");
s_menubackground.setAttribute("style", "width: 100%; height: 100%; background: #EEE; border: solid thin #C7C7C7; font-family: 'Lucida Grande','Trebuchet MS',Verdana,sans-serif; font-size: 10px; -moz-border-radius: 5px; cursor: default;");
whoisonline.appendChild(s_menubackground);
var s_menuborder = dom.cn("div");
s_menuborder.setAttribute("id", "s_menuborder");
s_menuborder.setAttribute("style", "overflow: auto; position: absolute; top: 0; left: 0; width: 780px; height: 480px; border: double #757575; margin: 3px; padding: 5px; -moz-border-radius: 5px;");
s_menubackground.appendChild(s_menuborder);
var s_refreshbutton = dom.cn('a');
s_refreshbutton.setAttribute("id", "s_refreshbutton");
s_refreshbutton.setAttribute("style", "position: absolute; bottom: 10px; left: 290px; width: 100px; padding: 5px; text-decoration: none; border: 1px solid #dedede; background-color: #f5f5f5; color: #565656; cursor: pointer; font-weight: bold;");
s_refreshbutton.addEventListener('click', bar=function(){ getWhoisonline(); }, false);
var s_refreshbuttonimg = dom.cn('img');
s_refreshbuttonimg.setAttribute("style", "padding: 0; margin: 0 3px -3px 23px;");
s_refreshbuttonimg.setAttribute("src", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGMSURBVDjLY/j//z8DJZiggtx9Sasyd8Yxk21Axo7YSymbow4QZUDJ8QyHoiNpB/IPJP/P3pPwP3177P+mQ5X/6/aV/o9cFrATrwHFxzIcCg+nnplzacr/TbdW/19/c8X/tTeW/l91bdH/5Vfn/y/ZkvPfb7rbHZwGFBxKnTn9fN//jTdX/W8+XPU/cX34/5iVQf8rtuf/L9mc/d9nqutuvC7I2Zv4AOjf/0D//o9fG3YIJh4wy+OS9xTnQ2699kyO7VacRAUi0L/wUPea5LTGtceW9FgA+ncNyekgfJEfZ9AcTyagfw+59ztcgolbVBsdMi7V/a+Xr/lfK0v1AV4XAP27O2tl0v/UJbH/rRtM/5tVGf6PmB74v/dE0//khdH/VVMUZ+I0AOjflxnLE/5PP9v7f8rprv8TT7X/7zvZ8r/nRON/kLhKssIZxXhZB7wusGu22Bk3N+x/1Mzg//qFWv+1s9X+q6cp/1dOUjigEIeqGWcgAv17AOjfS2RnJt08DWbNTNVVVMmNhDAANau2t3wToKQAAAAASUVORK5CYII=");
s_refreshbutton.appendChild(s_refreshbuttonimg);
var textnode = dom.ct(" aggiorna");
s_refreshbutton.appendChild(textnode);
// s_menuborder.appendChild(s_refreshbutton);
s_menubackground.appendChild(s_refreshbutton);
var s_exitbutton = dom.cn('a');
s_exitbutton.setAttribute("id", "s_exitbutton");
s_exitbutton.setAttribute("style", "position: absolute; bottom: 10px; left: 410px; width: 100px; padding: 5px; text-decoration: none; border: 1px solid #dedede; background-color: #f5f5f5; color: #565656; cursor: pointer; font-weight: bold;");
s_exitbutton.addEventListener('click', bar=function(){ hideSpyPanel(); }, false);
var s_exitbuttonimg = dom.cn('img');
s_exitbuttonimg.setAttribute("style", "padding: 0; margin: 0 3px -3px 23px;");
s_exitbuttonimg.setAttribute("src", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMB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I+ylUpSJEGUixF4qxfroCPnMDkpKspZVdKggIsqVSCX3G4WLWxTRxUUqVcSVK4tYScFnnwghlcLjK6N28Db+UJhdy2LXsvCHwtQO3sbjK0MqhU+EcBynuGDOtm0qGptQShLq7sYfDpO1kqwOD7E6PETWSuIPh6m+eQulJBWNTdi2DTBX2t7e7tnY2OhoaLtAPpsh/WySo4EAa/fuks9mkb9+sbW4QHl1DZ/GH3FS16lsbmVqaopcLnenkMTlaDRaF4vF+Dj2kPSL5/ytghcvca63r5DGFcMw6gsidpqmuQwEYr19VLa08uXtLDvJTwCUR85S1drGsciZg1Hu/H/P9C/v/HsAHOU55zkfy/0AAAAASUVORK5CYII=");
s_exitbutton.appendChild(s_exitbuttonimg);
var textnode = dom.ct(" chiudi");
s_exitbutton.appendChild(textnode);
// s_menuborder.appendChild(s_exitbutton);
s_menubackground.appendChild(s_exitbutton);
/***********************/
/******* FUNZIONI ******/
/***********************/
//mostra il pannello delle opzioni
function showOptionsPanel(){
layerTrasparente.style.visibility = "visible";
menu.style.visibility = "visible";
}
//nascondi il pannello delle opzioni
function hideOptionsPanel(){
layerTrasparente.style.visibility = "hidden";
menu.style.visibility = "hidden";
window.location.reload();
}
//mostra il pannello spia
function showSpyPanel(){
getWhoisonline();
layerTrasparente.style.visibility = "visible";
whoisonline.style.visibility = "visible";
}
//nascondi il pannello spia
function hideSpyPanel(){
layerTrasparente.style.visibility = "hidden";
whoisonline.style.visibility = "hidden";
}
//carica i dati dalla pagina "http://www.apriliaontheroad.com/forum2009/viewonline.php"
function getWhoisonline() {
var url = "http://www.apriliaontheroad.com/forum2009/viewonline.php";
GM_xmlhttpRequest({
method: 'GET',
url: url,
onload: function (responseDetails)
{
if (responseDetails.status != 200) return;
var oldtable = dom.id("whoisonlinetable");
var s_menuborder = dom.id('s_menuborder');
if (oldtable) s_menuborder.removeChild(oldtable);
var response = responseDetails.responseText;
var div = dom.cn('div', response);
var ansDoc = document.implementation.createDocument('', '', null);
ansDoc.onload = ansDoc.appendChild(div);
var wrapcentre = ansDoc.getElementById('wrapcentre');
var whoisonlinetable = wrapcentre.getElementsByTagName('table')[1];
if (whoisonlinetable) whoisonlinetable.deleteRow(0);
whoisonlinetable.id = 'whoisonlinetable';
var as = whoisonlinetable.getElementsByTagName('a');
for (var i = 0; i < as.length; i++) {
if (as[i].innerHTML == 'Sta visualizzando chi c’è in linea') {
as[i].innerHTML = '<img src="data:image/gif;base64,R0lGODlhFAAUAMQEAEA0EDg4OEBAQP/mIP///ygoKDQoECAcFDQ0NBgYGDAwMPraEPbKABgYFBwYFCQcEP/iHCwkECQkJP/eGPK2AO6uADw8PPrWCPbGAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/h1CdWlsdCB3aXRoIEdJRiBNb3ZpZSBHZWFyIDQuMAAh/iFEZXNpZ24gYnkgQWl3YW4gKGFpd2FuQHlhbmRleC5ydSkAIfkEASwBGQAsAAAAABQAFAAABahgJo5kaZrG0zSPcZZGUiBBgBSJ+x5FIPyCWkByODkUwGQwoHCUIgWlslaIkBI+gBaoBQgTI0MUQCgDIGQzI1DQHRCLtHYgBzAoiIeoEYiXCQB0f3Z4Thl8C2hzA3RaCwwVAYZvFxOMl5cTFxgVCnoZYn2WmAMQjxRsOhlYPlJLNmAjUDUWSRZCbFYkR7i9TIYlBxK+NkQvoDIKNQo4qscGBysHzsfVJCEAIfkEBQoAGQAsBgAIAAgAAQAABQYgQGRkJoYAIfkEBZYAGQAsBQAIAAgAAQAABQYgQGRkJoYAIfkEBRQAGQAsBAAGAAsABQAABRagEIjkKAJDqqrMiqIpA8zzQM/Qqi8hACH5BAWWABkALAQABgALAAUAAAUXYAaMQjkCWUasKLAS55qKrCqnb3rOewgAOw%3D%3D"/>'+
'<b> Sta visualizzando chi c’è in linea</b>';
}
}
var s_menuborder = dom.id('s_menuborder');
s_menuborder.appendChild(whoisonlinetable);
}
});
}
//nascondi le firme
function hideSignaturesFunction(checkbox) {
if (checkbox) {
GM_setValue('signaturesAreHidden', true);
var spans = document.getElementsByTagName('span');
for (var i = 0; i < spans.length; i++) {
if (spans[i].className == 'postbody') {
spans[i].style.display = 'none';
}
}
} else {
GM_setValue('signaturesAreHidden', false);
var spans = document.getElementsByTagName('span');
for (var i = 0; i < spans.length; i++) {
if (spans[i].className == 'postbody') spans[i].style.display = 'block';
}
}
}
//cerca nel forum
function searchThisForumFunction(checkbox) {
if (checkbox) {
GM_setValue('searchThisForum', true);
var forms = dom.tag('form');
var newParent = dom.id('pageheader');
for (var i=0; i<forms.length; i++) {
name = forms[i].getAttribute('name');
if ( name == 'search') {
var isForum = (location.pathname.indexOf('viewforum') != -1);
var isTopic = (location.pathname.indexOf('viewtopic') != -1);
if (isForum) {
forms[i].firstChild.innerHTML = 'Cerca in questo forum:';
} else if (isTopic) {
forms[i].firstChild.innerHTML = 'Cerca in questa discussione:';
}
forms[i].style.cssFloat = 'right';
newParent.appendChild(forms[i]);
}
}
} else {
GM_setValue('searchThisForum', false);
}
}
//accorcia il titolo della pagina, rimuovendo il testo "Aprilia On The Road • Leggi argomento - "
function stripPageTitleFunction(checkbox) {
if (checkbox) {
GM_setValue('stripPageTitle', true);
t = document.title;
if (t.indexOf('Leggi argomento - ') != -1) {
i = t.indexOf('Leggi argomento - ');
document.title = t.substring(i + 18);
}
} else {
GM_setValue('stripPageTitle', false);
}
}
//mostra tutte le emoticons
function fullIconSetFunction(checkbox) {
if (checkbox) {
GM_setValue('fullIconSet', true);
var isPosting = (location.pathname.indexOf('posting') != -1);
if (isPosting) {
var row1 = dom.xs('//*[.="Corpo del messaggio:"]/..');
row1.innerHTML ='<div id="iconset" style="height:380px; overflow-x:hidden; overflow-y:scroll;">'+
'<a style="padding:2px;" onclick="insert_text(\':D\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="" alt=":D" src="./images/smilies/icon_biggrin.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':)\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="" alt=":)" src="./images/smilies/icon_smile.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':(\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="" alt=":(" src="./images/smilies/icon_frown.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':o\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="" alt=":o" src="./images/smilies/icon_eek.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':-?\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="" alt=":-?" src="./images/smilies/icon_confused.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\'8)\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="" alt="8)" src="./images/smilies/icon_cool.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':coolblu:\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="cool blu" alt=":coolblu:" src="./images/smilies/coolblu.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':lol:\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="" alt=":lol:" src="./images/smilies/icon_lol.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':x\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="" alt=":x" src="./images/smilies/icon_mad.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':P\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="" alt=":P" src="./images/smilies/icon_razz.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':oops:\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="" alt=":oops:" src="./images/smilies/icon_redface.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':cry:\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="" alt=":cry:" src="./images/smilies/icon_cry.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':evil:\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="" alt=":evil:" src="./images/smilies/icon_evil.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':roll:\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="" alt=":roll:" src="./images/smilies/icon_rolleyes.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':wink:\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="" alt=":wink:" src="./images/smilies/icon_wink.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':tie:\', true); return false;" href="#"><img width="37" vspace="2" hspace="2" height="21" title="" alt=":tie:" src="./images/smilies/tie.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':giullare:\', true); return false;" href="#"><img width="25" vspace="2" hspace="2" height="26" title="" alt=":giullare:" src="./images/smilies/giullare.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':ok1:\', true); return false;" href="#"><img width="25" vspace="2" hspace="2" height="18" title="ok!" alt=":ok1:" src="./images/smilies/ok%21.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':ok:\', true); return false;" href="#"><img width="25" vspace="2" hspace="2" height="18" title="ok!" alt=":ok:" src="./images/smilies/ok.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':clapclap:\', true); return false;" href="#"><img width="31" vspace="2" hspace="2" height="23" title="clap clap" alt=":clapclap:" src="./images/smilies/applauso.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':nonsò:\', true); return false;" href="#"><img width="37" vspace="2" hspace="2" height="15" title="non sò" alt=":nonsò:" src="./images/smilies/mispiace.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':grr:\', true); return false;" href="#"><img width="25" vspace="2" hspace="2" height="20" title="grr!" alt=":grr:" src="./images/smilies/muro.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':dorme:\', true); return false;" href="#"><img width="33" vspace="2" hspace="2" height="25" title="dorme" alt=":dorme:" src="./images/smilies/dorme.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':tocco:\', true); return false;" href="#"><img width="26" vspace="2" hspace="2" height="15" title="Scemo" alt=":tocco:" src="./images/smilies/tocco.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':sbellica:\', true); return false;" href="#"><img width="29" vspace="2" hspace="2" height="27" title="sbellica" alt=":sbellica:" src="./images/smilies/sbellica.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':truzzo:\', true); return false;" href="#"><img width="26" vspace="2" hspace="2" height="28" title="Truzzo" alt=":truzzo:" src="./images/smilies/truzzo.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':assface:\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="faccia da c..." alt=":assface:" src="./images/smilies/ass%20face.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':teach:\', true); return false;" href="#"><img width="25" vspace="2" hspace="2" height="19" title="Laurea" alt=":teach:" src="./images/smilies/teach.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':re:\', true); return false;" href="#"><img width="22" vspace="2" hspace="2" height="22" title="Re" alt=":re:" src="./images/smilies/re.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':paura:\', true); return false;" href="#"><img width="35" vspace="2" hspace="2" height="25" title="paura" alt=":paura:" src="./images/smilies/pauura.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':salam:\', true); return false;" href="#"><img width="27" vspace="2" hspace="2" height="22" title="salam!" alt=":salam:" src="./images/smilies/hail1.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':love:\', true); return false;" href="#"><img width="39" vspace="2" hspace="2" height="35" title="love!" alt=":love:" src="./images/smilies/hearts1.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':welcome:\', true); return false;" href="#"><img width="55" vspace="2" hspace="2" height="36" title="welcome!" alt=":welcome:" src="./images/smilies/welcome.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':tunz:\', true); return false;" href="#"><img width="29" vspace="2" hspace="2" height="25" title="Hai le Corna" alt=":tunz:" src="./images/smilies/tunz.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':hallo:\', true); return false;" href="#"><img width="30" vspace="2" hspace="2" height="20" title="hallo!" alt=":hallo:" src="./images/smilies/hallo.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':azz:\', true); return false;" href="#"><img width="21" vspace="2" hspace="2" height="22" title="azz" alt=":azz:" src="./images/smilies/azz.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':tutticontenti:\', true); return false;" href="#"><img width="111" vspace="2" hspace="2" height="45" title="TuttiContenti" alt=":tutticontenti:" src="./images/smilies/tutticontenti.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':saltacolori:\', true); return false;" href="#"><img width="31" vspace="2" hspace="2" height="31" title="saltacolori" alt=":saltacolori:" src="./images/smilies/saltacolori.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':salta:\', true); return false;" href="#"><img width="31" vspace="2" hspace="2" height="31" title="" alt=":salta:" src="./images/smilies/saltare.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':saltanero:\', true); return false;" href="#"><img width="31" vspace="2" hspace="2" height="31" title="saltanero" alt=":saltanero:" src="./images/smilies/saltanero.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':saltarosso:\', true); return false;" href="#"><img width="31" vspace="2" hspace="2" height="31" title="" alt=":saltarosso:" src="./images/smilies/saltarosso.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':saltafuoco:\', true); return false;" href="#"><img width="31" vspace="2" hspace="2" height="31" title="saltafuoco" alt=":saltafuoco:" src="./images/smilies/saltafuoco.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':ridi:\', true); return false;" href="#"><img width="29" vspace="2" hspace="2" height="28" title="Ridi" alt=":ridi:" src="./images/smilies/ridi.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':birra:\', true); return false;" href="#"><img width="60" vspace="2" hspace="2" height="40" title="Birra" alt=":birra:" src="./images/smilies/birra.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':bikelink:\', true); return false;" href="#"><img width="36" vspace="2" hspace="2" height="34" title="bikelink" alt=":bikelink:" src="./images/smilies/bikelink.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':andydj:\', true); return false;" href="#"><img width="41" vspace="2" hspace="2" height="36" title="andydj" alt=":andydj:" src="./images/smilies/andydj.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':zitto:\', true); return false;" href="#"><img width="20" vspace="2" hspace="2" height="19" title="Zitto" alt=":zitto:" src="./images/smilies/zitto.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':vergognati:\', true); return false;" href="#"><img width="41" vspace="2" hspace="2" height="46" title="Vergogna" alt=":vergognati:" src="./images/smilies/vergognati.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':angelo:\', true); return false;" href="#"><img width="42" vspace="2" hspace="2" height="23" title="angelo" alt=":angelo:" src="./images/smilies/angel.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':incavolato:\', true); return false;" href="#"><img width="33" vspace="2" hspace="2" height="36" title="incavolato" alt=":incavolato:" src="./images/smilies/angry.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':culo:\', true); return false;" href="#"><img width="25" vspace="2" hspace="2" height="29" title="culo" alt=":culo:" src="./images/smilies/ass.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':ban:\', true); return false;" href="#"><img width="41" vspace="2" hspace="2" height="46" title="ban" alt=":ban:" src="./images/smilies/ban.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':dito:\', true); return false;" href="#"><img width="28" vspace="2" hspace="2" height="20" title="dito" alt=":dito:" src="./images/smilies/boid.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':bevi:\', true); return false;" href="#"><img width="57" vspace="2" hspace="2" height="28" title="bevi" alt=":bevi:" src="./images/smilies/bottles.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':buonanotte:\', true); return false;" href="#"><img width="36" vspace="2" hspace="2" height="34" title="ho sonno !!!" alt=":buonanotte:" src="./images/smilies/goodnight.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':help:\', true); return false;" href="#"><img width="23" vspace="2" hspace="2" height="15" title="help!" alt=":help:" src="./images/smilies/help.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':happybirthday:\', true); return false;" href="#"><img width="81" vspace="2" hspace="2" height="26" title="Happy Birthday" alt=":happybirthday:" src="./images/smilies/Happy%20Birthday.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':goodluck:\', true); return false;" href="#"><img width="72" vspace="2" hspace="2" height="20" title="good luck!" alt=":goodluck:" src="./images/smilies/goodluck.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':espulso:\', true); return false;" href="#"><img width="24" vspace="2" hspace="2" height="22" title="espulso!" alt=":espulso:" src="./images/smilies/espulso.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':devil:\', true); return false;" href="#"><img width="25" vspace="2" hspace="2" height="26" title="devil" alt=":devil:" src="./images/smilies/devil.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':firedevil:\', true); return false;" href="#"><img width="30" vspace="2" hspace="2" height="52" title="devil&fire" alt=":firedevil:" src="./images/smilies/devil1.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':boxeur:\', true); return false;" href="#"><img width="28" vspace="2" hspace="2" height="21" title="boxeur" alt=":boxeur:" src="./images/smilies/boxeur.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':bong:\', true); return false;" href="#"><img width="70" vspace="2" hspace="2" height="28" title="bong!" alt=":bong:" src="./images/smilies/bong.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':target:\', true); return false;" href="#"><img width="52" vspace="2" hspace="2" height="28" title="target" alt=":target:" src="./images/smilies/bersaglio.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':attila:\', true); return false;" href="#"><img width="64" vspace="2" hspace="2" height="22" title="attila" alt=":attila:" src="./images/smilies/attila.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':banana:\', true); return false;" href="#"><img width="33" vspace="2" hspace="2" height="35" title="banana" alt=":banana:" src="./images/smilies/banana.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':angeldevil:\', true); return false;" href="#"><img width="28" vspace="2" hspace="2" height="28" title="angel&devil" alt=":angeldevil:" src="./images/smilies/angeldevil.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':prrr:\', true); return false;" href="#"><img width="33" vspace="2" hspace="2" height="19" title="prrr!" alt=":prrr:" src="./images/smilies/prrr.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':xmastree:\', true); return false;" href="#"><img width="41" vspace="2" hspace="2" height="55" title="xmastree" alt=":xmastree:" src="./images/smilies/xmastree.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':wc:\', true); return false;" href="#"><img width="23" vspace="2" hspace="2" height="46" title="WC" alt=":wc:" src="./images/smilies/wc.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':wow:\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="30" title="wow!" alt=":wow:" src="./images/smilies/wow.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':uaaahh:\', true); return false;" href="#"><img width="19" vspace="2" hspace="2" height="25" title=":uaaahh!" alt=":uaaahh:" src="./images/smilies/uaaahh.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':tnx:\', true); return false;" href="#"><img width="47" vspace="2" hspace="2" height="20" title="tnx" alt=":tnx:" src="./images/smilies/thanx.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':specchio:\', true); return false;" href="#"><img width="25" vspace="2" hspace="2" height="40" title="specchio" alt=":specchio:" src="./images/smilies/specchio.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':omertà:\', true); return false;" href="#"><img width="90" vspace="2" hspace="2" height="30" title="omertà " alt=":omertà :" src="./images/smilies/sordomutocieco.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':nanna:\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="24" title="nanna" alt=":nanna:" src="./images/smilies/sleep.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':shocking:\', true); return false;" href="#"><img width="25" vspace="2" hspace="2" height="25" title="shocking" alt=":shocking:" src="./images/smilies/shocking.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':sgrat:\', true); return false;" href="#"><img width="35" vspace="2" hspace="2" height="29" title="sgrat" alt=":sgrat:" src="./images/smilies/sgrat.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':santo:\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="20" title="santo" alt=":santo:" src="./images/smilies/saint.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':scherma:\', true); return false;" href="#"><img width="100" vspace="2" hspace="2" height="34" title="scherma" alt=":scherma:" src="./images/smilies/scherma.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':risorge:\', true); return false;" href="#"><img width="31" vspace="2" hspace="2" height="41" title="risorge" alt=":risorge:" src="./images/smilies/risorge.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':rinco:\', true); return false;" href="#"><img width="17" vspace="2" hspace="2" height="21" title="rinco" alt=":rinco:" src="./images/smilies/rinco.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':respect:\', true); return false;" href="#"><img width="43" vspace="2" hspace="2" height="18" title="respect" alt=":respect:" src="./images/smilies/respect.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':poeta:\', true); return false;" href="#"><img width="43" vspace="2" hspace="2" height="55" title="poeta" alt=":poeta:" src="./images/smilies/poeta.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':peace:\', true); return false;" href="#"><img width="37" vspace="2" hspace="2" height="46" title="peace!" alt=":peace:" src="./images/smilies/peace1.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':pclaunch:\', true); return false;" href="#"><img width="71" vspace="2" hspace="2" height="43" title="pclaunch" alt=":pclaunch:" src="./images/smilies/pclaunch.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':pcbong:\', true); return false;" href="#"><img width="60" vspace="2" hspace="2" height="23" title="pcbong" alt=":pcbong:" src="./images/smilies/pcfight.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':pcburn:\', true); return false;" href="#"><img width="99" vspace="2" hspace="2" height="47" title="pc burn" alt=":pcburn:" src="./images/smilies/pcburn.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':party2:\', true); return false;" href="#"><img width="112" vspace="2" hspace="2" height="80" title="party" alt=":party2:" src="./images/smilies/party2.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':band:\', true); return false;" href="#"><img width="80" vspace="2" hspace="2" height="68" title="band" alt=":band:" src="./images/smilies/band.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':pantpant:\', true); return false;" href="#"><img width="19" vspace="2" hspace="2" height="24" title="pant pant" alt=":pantpant:" src="./images/smilies/pant.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':party3:\', true); return false;" href="#"><img width="42" vspace="2" hspace="2" height="34" title="party 3" alt=":party3:" src="./images/smilies/party3.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':ot:\', true); return false;" href="#"><img width="60" vspace="2" hspace="2" height="46" title="OT" alt=":ot:" src="./images/smilies/OT.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':oops:\', true); return false;" href="#"><img width="47" vspace="2" hspace="2" height="20" title="oops!" alt=":oops:" src="./images/smilies/oops.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':old:\', true); return false;" href="#"><img width="34" vspace="2" hspace="2" height="36" title="old" alt=":old:" src="./images/smilies/old.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':offtopic:\', true); return false;" href="#"><img width="41" vspace="2" hspace="2" height="46" title="off topic!" alt=":offtopic:" src="./images/smilies/offtopic.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':no:\', true); return false;" href="#"><img width="43" vspace="2" hspace="2" height="18" title="no!" alt=":no:" src="./images/smilies/no.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':nero:\', true); return false;" href="#"><img width="60" vspace="2" hspace="2" height="35" title="incazzato!" alt=":nero:" src="./images/smilies/nero.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':moccolo:\', true); return false;" href="#"><img width="29" vspace="2" hspace="2" height="27" title="moccolo" alt=":moccolo:" src="./images/smilies/moccolo.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':miarrendo:\', true); return false;" href="#"><img width="19" vspace="2" hspace="2" height="27" title="mi arrendo!" alt=":miarrendo:" src="./images/smilies/miarrendo1.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':mcm:\', true); return false;" href="#"><img width="55" vspace="2" hspace="2" height="38" title="mcm" alt=":mcm:" src="./images/smilies/mcm1.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':mattoni:\', true); return false;" href="#"><img width="35" vspace="2" hspace="2" height="45" title="mattoni" alt=":mattoni:" src="./images/smilies/mattoni.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':impara:\', true); return false;" href="#"><img width="19" vspace="2" hspace="2" height="33" title="impara" alt=":impara:" src="./images/smilies/legge.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':iocero:\', true); return false;" href="#"><img width="51" vspace="2" hspace="2" height="49" title="io c\'ero!" alt=":iocero:" src="./images/smilies/iocero.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':angry:\', true); return false;" href="#"><img width="31" vspace="2" hspace="2" height="20" title="incavolato!" alt=":angry:" src="./images/smilies/incavolato.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':malato:\', true); return false;" href="#"><img width="19" vspace="2" hspace="2" height="24" title="malato" alt=":malato:" src="./images/smilies/ill.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':ignore:\', true); return false;" href="#"><img width="55" vspace="2" hspace="2" height="47" title="ignore!" alt=":ignore:" src="./images/smilies/ignore.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':ideaboh:\', true); return false;" href="#"><img width="30" vspace="2" hspace="2" height="32" title="idea boh?" alt=":ideaboh:" src="./images/smilies/ideaboh.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':motosmile:\', true); return false;" href="#"><img width="30" vspace="2" hspace="2" height="24" title="moto smile" alt=":motosmile:" src="./images/smilies/icon_moto.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':hit:\', true); return false;" href="#"><img width="33" vspace="2" hspace="2" height="26" title="hit!" alt=":hit:" src="./images/smilies/hit.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':grrr:\', true); return false;" href="#"><img width="70" vspace="2" hspace="2" height="70" title="grrr!!!" alt=":grrr:" src="./images/smilies/grrr.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':help:\', true); return false;" href="#"><img width="67" vspace="2" hspace="2" height="46" title="help" alt=":help:" src="./images/smilies/help2.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':aiuto:\', true); return false;" href="#"><img width="66" vspace="2" hspace="2" height="18" title="aiuto!" alt=":aiuto:" src="./images/smilies/help1.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':graziegrazie:\', true); return false;" href="#"><img width="57" vspace="2" hspace="2" height="38" title="grazie grazie" alt=":graziegrazie:" src="./images/smilies/graziegrazie.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':funnypost:\', true); return false;" href="#"><img width="41" vspace="2" hspace="2" height="46" title="funny post" alt=":funnypost:" src="./images/smilies/funnypost.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':fajepaura:\', true); return false;" href="#"><img width="49" vspace="2" hspace="2" height="48" title="faje paura" alt=":fajepaura:" src="./images/smilies/faje%20paura.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':sorpreso:\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="15" title="sorpresa" alt=":sorpreso:" src="./images/smilies/eek.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':tutticontentiup:\', true); return false;" href="#"><img width="45" vspace="2" hspace="2" height="45" title="tutti contenti!" alt=":tutticontentiup:" src="./images/smilies/dogpile.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':burp:\', true); return false;" href="#"><img width="44" vspace="2" hspace="2" height="42" title="burp!" alt=":burp:" src="./images/smilies/40__s_1_.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':cornuto:\', true); return false;" href="#"><img width="59" vspace="2" hspace="2" height="40" title="cornuto" alt=":cornuto:" src="./images/smilies/cornuto.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':bang:\', true); return false;" href="#"><img width="75" vspace="2" hspace="2" height="26" title="bang!" alt=":bang:" src="./images/smilies/bluboomteamenforcer.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':bier:\', true); return false;" href="#"><img width="28" vspace="2" hspace="2" height="56" title="birra!!!" alt=":bier:" src="./images/smilies/bier.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':angeldevil1:\', true); return false;" href="#"><img width="70" vspace="2" hspace="2" height="57" title="angel 6 devil 1" alt=":angeldevil1:" src="./images/smilies/angeldevil1.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':friends:\', true); return false;" href="#"><img width="37" vspace="2" hspace="2" height="15" title="friends" alt=":friends:" src="./images/smilies/friends.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':frusta:\', true); return false;" href="#"><img width="100" vspace="2" hspace="2" height="50" title="frusta" alt=":frusta:" src="./images/smilies/frusta1.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':fyi:\', true); return false;" href="#"><img width="49" vspace="2" hspace="2" height="26" title="for your info" alt=":fyi:" src="./images/smilies/FYI.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':corna:\', true); return false;" href="#"><img width="26" vspace="2" hspace="2" height="17" title="corna" alt=":corna:" src="./images/smilies/corna.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':champion:\', true); return false;" href="#"><img width="34" vspace="2" hspace="2" height="39" title="champion" alt=":champion:" src="./images/smilies/champion.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':idea:\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="32" title="idea!" alt=":idea:" src="./images/smilies/idea.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':maria:\', true); return false;" href="#"><img width="39" vspace="2" hspace="2" height="18" title="maria" alt=":maria:" src="./images/smilies/maria.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':nono:\', true); return false;" href="#"><img width="22" vspace="2" hspace="2" height="19" title="no no!" alt=":nono:" src="./images/smilies/nono.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':discussione:\', true); return false;" href="#"><img width="61" vspace="2" hspace="2" height="23" title="discussione" alt=":discussione:" src="./images/smilies/discussione.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':2picche:\', true); return false;" href="#"><img width="41" vspace="2" hspace="2" height="15" title="2 di picche!" alt=":2picche:" src="./images/smilies/picche.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':tusipazz:\', true); return false;" href="#"><img width="41" vspace="2" hspace="2" height="46" title="tu sì pazz!" alt=":tusipazz:" src="./images/smilies/pazz.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':smoke:\', true); return false;" href="#"><img width="21" vspace="2" hspace="2" height="15" title="smoke" alt=":smoke:" src="./images/smilies/smoking.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':spal:\', true); return false;" href="#"><img width="70" vspace="2" hspace="2" height="40" title="merda!" alt=":spal:" src="./images/smilies/spal.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':treesteal:\', true); return false;" href="#"><img width="37" vspace="2" hspace="2" height="57" title="Albero furbo!" alt=":treesteal:" src="./images/smilies/tree_steal.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':xmassmile:\', true); return false;" href="#"><img width="40" vspace="2" hspace="2" height="50" title="Faccina di Natale" alt=":xmassmile:" src="./images/smilies/xmassmile.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':xmassmile1:\', true); return false;" href="#"><img width="42" vspace="2" hspace="2" height="38" title="Faccina di natale1" alt=":xmassmile1:" src="./images/smilies/xmassmile1.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':happyeaster:\', true); return false;" href="#"><img width="54" vspace="2" hspace="2" height="40" title="Buona Pasqua!" alt=":happyeaster:" src="./images/smilies/happyEaster.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':toctoc:\', true); return false;" href="#"><img width="57" vspace="2" hspace="2" height="35" title="toc toc!" alt=":toctoc:" src="./images/smilies/apri-la-porta.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':byebye:\', true); return false;" href="#"><img width="56" vspace="2" hspace="2" height="28" title="arrivederci" alt=":byebye:" src="./images/smilies/arrivederci.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':bump:\', true); return false;" href="#"><img width="70" vspace="2" hspace="2" height="30" title="bump!" alt=":bump:" src="./images/smilies/bump.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':wroom:\', true); return false;" href="#"><img width="40" vspace="2" hspace="2" height="15" title="wroom!" alt=":wroom:" src="./images/smilies/wroom.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':whoa:\', true); return false;" href="#"><img width="15" vspace="2" hspace="2" height="100" title="whoa!" alt=":whoa:" src="./images/smilies/whoa.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':happynewyear:\', true); return false;" href="#"><img width="66" vspace="2" hspace="2" height="88" title="Buon Anno!" alt=":happynewyear:" src="./images/smilies/HappyNewYear.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':king:\', true); return false;" href="#"><img width="224" vspace="2" hspace="2" height="103" title="W il re!" alt=":king:" src="./images/smilies/guru.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':taz:\', true); return false;" href="#"><img width="185" vspace="2" hspace="2" height="182" title="TAZ" alt=":taz:" src="./images/smilies/taz.gif"/></a><a style="padding:2px;" onclick="insert_text(\':buonefeste:\', true); return false;" href="#"><img width="72" vspace="2" hspace="2" height="61" title="Buone Feste!" alt=":buonefeste:" src="./images/smilies/buonefeste.gif" /></a>'+
'<a style="padding:2px;" onclick="insert_text(\':slittarenne:\', true); return false;" href="#"><img width="407" vspace="2" hspace="2" height="46" title="Slitta con le renne" alt=":slittarenne:" src="./images/smilies/slitta.gif" /></a>'+
'</div>';
}
} else {
GM_setValue('fullIconSet', false);
}
}
//mostra le scimmiette
function monkeysIconSetFunction(checkbox) {
if (checkbox) {
GM_setValue('monkeysIconSet', true);
var isPosting = (location.pathname.indexOf('posting') != -1);
if (isPosting) {
var referenceNode = dom.xs('//*[.="Colore del testo"]/../../../../..');
var newNode = dom.cn('tr');
var newNodeTd = dom.cn('td', '<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/3971/monkey01.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/3971/monkey01.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img230.imageshack.us/img230/6085/monkey02.gif[/img]\', true); return false;" href="#"><img src="http://img230.imageshack.us/img230/6085/monkey02.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img219.imageshack.us/img219/3705/monkey03.gif[/img]\', true); return false;" href="#"><img src="http://img219.imageshack.us/img219/3705/monkey03.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img159.imageshack.us/img159/8527/monkey04.gif[/img]\', true); return false;" href="#"><img src="http://img159.imageshack.us/img159/8527/monkey04.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img237.imageshack.us/img237/4702/monkey05.gif[/img]\', true); return false;" href="#"><img src="http://img237.imageshack.us/img237/4702/monkey05.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img149.imageshack.us/img149/6227/monkey06.gif[/img]\', true); return false;" href="#"><img src="http://img149.imageshack.us/img149/6227/monkey06.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img159.imageshack.us/img159/970/monkey07.gif[/img]\', true); return false;" href="#"><img src="http://img159.imageshack.us/img159/970/monkey07.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img145.imageshack.us/img145/9708/monkey08.gif[/img]\', true); return false;" href="#"><img src="http://img145.imageshack.us/img145/9708/monkey08.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img144.imageshack.us/img144/9207/monkey09.gif[/img]\', true); return false;" href="#"><img src="http://img144.imageshack.us/img144/9207/monkey09.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img159.imageshack.us/img159/9320/monkey10.gif[/img]\', true); return false;" href="#"><img src="http://img159.imageshack.us/img159/9320/monkey10.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img237.imageshack.us/img237/3096/monkey11.gif[/img]\', true); return false;" href="#"><img src="http://img237.imageshack.us/img237/3096/monkey11.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/7275/monkey12.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/7275/monkey12.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img145.imageshack.us/img145/267/monkey13.gif[/img]\', true); return false;" href="#"><img src="http://img145.imageshack.us/img145/267/monkey13.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img144.imageshack.us/img144/3198/monkey14.gif[/img]\', true); return false;" href="#"><img src="http://img144.imageshack.us/img144/3198/monkey14.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img159.imageshack.us/img159/9001/monkey15.gif[/img]\', true); return false;" href="#"><img src="http://img159.imageshack.us/img159/9001/monkey15.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/980/monkey16.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/980/monkey16.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img144.imageshack.us/img144/5075/monkey17.gif[/img]\', true); return false;" href="#"><img src="http://img144.imageshack.us/img144/5075/monkey17.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img219.imageshack.us/img219/4504/monkey18.gif[/img]\', true); return false;" href="#"><img src="http://img219.imageshack.us/img219/4504/monkey18.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img149.imageshack.us/img149/5923/monkey19.gif[/img]\', true); return false;" href="#"><img src="http://img149.imageshack.us/img149/5923/monkey19.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/273/monkey20.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/273/monkey20.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/9413/monkey21.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/9413/monkey21.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img237.imageshack.us/img237/9825/monkey22.gif[/img]\', true); return false;" href="#"><img src="http://img237.imageshack.us/img237/9825/monkey22.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img230.imageshack.us/img230/3064/monkey23.gif[/img]\', true); return false;" href="#"><img src="http://img230.imageshack.us/img230/3064/monkey23.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img145.imageshack.us/img145/9565/monkey24.gif[/img]\', true); return false;" href="#"><img src="http://img145.imageshack.us/img145/9565/monkey24.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/8095/monkey25.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/8095/monkey25.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img159.imageshack.us/img159/9394/monkey26.gif[/img]\', true); return false;" href="#"><img src="http://img159.imageshack.us/img159/9394/monkey26.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/3343/monkey27.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/3343/monkey27.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/6554/monkey28.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/6554/monkey28.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img230.imageshack.us/img230/9203/monkey29.gif[/img]\', true); return false;" href="#"><img src="http://img230.imageshack.us/img230/9203/monkey29.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img145.imageshack.us/img145/5051/monkey30.gif[/img]\', true); return false;" href="#"><img src="http://img145.imageshack.us/img145/5051/monkey30.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img200.imageshack.us/img200/9910/monkey31.gif[/img]\', true); return false;" href="#"><img src="http://img200.imageshack.us/img200/9910/monkey31.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img230.imageshack.us/img230/7311/monkey32.gif[/img]\', true); return false;" href="#"><img src="http://img230.imageshack.us/img230/7311/monkey32.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img237.imageshack.us/img237/1154/monkey33.gif[/img]\', true); return false;" href="#"><img src="http://img237.imageshack.us/img237/1154/monkey33.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img144.imageshack.us/img144/8752/monkey34.gif[/img]\', true); return false;" href="#"><img src="http://img144.imageshack.us/img144/8752/monkey34.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/6903/monkey35.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/6903/monkey35.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img102.imageshack.us/img102/2084/monkey36.gif[/img]\', true); return false;" href="#"><img src="http://img102.imageshack.us/img102/2084/monkey36.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img228.imageshack.us/img228/8127/monkey37.gif[/img]\', true); return false;" href="#"><img src="http://img228.imageshack.us/img228/8127/monkey37.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/685/monkey38.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/685/monkey38.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img219.imageshack.us/img219/4508/monkey39.gif[/img]\', true); return false;" href="#"><img src="http://img219.imageshack.us/img219/4508/monkey39.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img144.imageshack.us/img144/5067/monkey40.gif[/img]\', true); return false;" href="#"><img src="http://img144.imageshack.us/img144/5067/monkey40.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img102.imageshack.us/img102/2812/monkey41.gif[/img]\', true); return false;" href="#"><img src="http://img102.imageshack.us/img102/2812/monkey41.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img102.imageshack.us/img102/3690/monkey42.gif[/img]\', true); return false;" href="#"><img src="http://img102.imageshack.us/img102/3690/monkey42.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/5673/monkey43.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/5673/monkey43.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img219.imageshack.us/img219/8426/monkey44.gif[/img]\', true); return false;" href="#"><img src="http://img219.imageshack.us/img219/8426/monkey44.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img228.imageshack.us/img228/5413/monkey45.gif[/img]\', true); return false;" href="#"><img src="http://img228.imageshack.us/img228/5413/monkey45.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img144.imageshack.us/img144/6264/monkey46.gif[/img]\', true); return false;" href="#"><img src="http://img144.imageshack.us/img144/6264/monkey46.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/2584/monkey47.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/2584/monkey47.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img144.imageshack.us/img144/4492/monkey48.gif[/img]\', true); return false;" href="#"><img src="http://img144.imageshack.us/img144/4492/monkey48.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img219.imageshack.us/img219/2415/monkey49.gif[/img]\', true); return false;" href="#"><img src="http://img219.imageshack.us/img219/2415/monkey49.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img228.imageshack.us/img228/1824/monkey50.gif[/img]\', true); return false;" href="#"><img src="http://img228.imageshack.us/img228/1824/monkey50.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/6532/monkey51.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/6532/monkey51.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/3638/monkey52.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/3638/monkey52.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img228.imageshack.us/img228/843/monkey53.gif[/img]\', true); return false;" href="#"><img src="http://img228.imageshack.us/img228/843/monkey53.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img219.imageshack.us/img219/5365/monkey54.gif[/img]\', true); return false;" href="#"><img src="http://img219.imageshack.us/img219/5365/monkey54.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img144.imageshack.us/img144/1514/monkey55.gif[/img]\', true); return false;" href="#"><img src="http://img144.imageshack.us/img144/1514/monkey55.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img219.imageshack.us/img219/8004/monkey56.gif[/img]\', true); return false;" href="#"><img src="http://img219.imageshack.us/img219/8004/monkey56.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img228.imageshack.us/img228/5528/monkey57.gif[/img]\', true); return false;" href="#"><img src="http://img228.imageshack.us/img228/5528/monkey57.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/189/monkey58.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/189/monkey58.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img204.imageshack.us/img204/8346/monkey59.gif[/img]\', true); return false;" href="#"><img src="http://img204.imageshack.us/img204/8346/monkey59.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img205.imageshack.us/img205/7858/monkey60.gif[/img]\', true); return false;" href="#"><img src="http://img205.imageshack.us/img205/7858/monkey60.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img204.imageshack.us/img204/4583/monkey61.gif[/img]\', true); return false;" href="#"><img src="http://img204.imageshack.us/img204/4583/monkey61.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/6470/monkey62.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/6470/monkey62.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img207.imageshack.us/img207/6854/monkey63.gif[/img]\', true); return false;" href="#"><img src="http://img207.imageshack.us/img207/6854/monkey63.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img205.imageshack.us/img205/9442/monkey64.gif[/img]\', true); return false;" href="#"><img src="http://img205.imageshack.us/img205/9442/monkey64.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img219.imageshack.us/img219/2603/monkey65.gif[/img]\', true); return false;" href="#"><img src="http://img219.imageshack.us/img219/2603/monkey65.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img232.imageshack.us/img232/6495/monkey66.gif[/img]\', true); return false;" href="#"><img src="http://img232.imageshack.us/img232/6495/monkey66.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img211.imageshack.us/img211/340/monkey67.gif[/img]\', true); return false;" href="#"><img src="http://img211.imageshack.us/img211/340/monkey67.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img205.imageshack.us/img205/6687/monkey68.gif[/img]\', true); return false;" href="#"><img src="http://img205.imageshack.us/img205/6687/monkey68.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img218.imageshack.us/img218/1579/monkey69.gif[/img]\', true); return false;" href="#"><img src="http://img218.imageshack.us/img218/1579/monkey69.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img204.imageshack.us/img204/580/monkey70.gif[/img]\', true); return false;" href="#"><img src="http://img204.imageshack.us/img204/580/monkey70.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img162.imageshack.us/img162/4443/monkey71.gif[/img]\', true); return false;" href="#"><img src="http://img162.imageshack.us/img162/4443/monkey71.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img211.imageshack.us/img211/906/monkey72.gif[/img]\', true); return false;" href="#"><img src="http://img211.imageshack.us/img211/906/monkey72.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img145.imageshack.us/img145/1097/59145978hn0.gif[/img]\', true); return false;" href="#"><img src="http://img145.imageshack.us/img145/1097/59145978hn0.gif"/></a>'+
//'<a style="padding:2px;" onclick="insert_text(\'[img][/img]\', true); return false;" href="#"><img src=""/></a>'+
'');
newNodeTd.className = 'row1';
newNodeTd.setAttribute("colspan", "2");
newNode.appendChild(newNodeTd);
referenceNode.parentNode.insertBefore( newNode, referenceNode.nextSibling );
}
} else {
GM_setValue('monkeysIconSet', false);
}
}
//mostra le icone personali
function personalIconSetFunction(checkbox) {
if (checkbox) {
GM_setValue('personalIconSet', true);
var isPosting = (location.pathname.indexOf('posting') != -1);
if (isPosting) {
var referenceNode = dom.xs('//*[.="Colore del testo"]/../../../../..');
var newNode = dom.cn('tr');
var newNodeTd = dom.cn('td',
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img263.imageshack.us/img263/2929/salutovq4.gif[/img]\', true); return false;" href="#"><img src="http://img263.imageshack.us/img263/2929/salutovq4.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img148.imageshack.us/img148/1747/saluto2tt9.gif[/img]\', true); return false;" href="#"><img src="http://img148.imageshack.us/img148/1747/saluto2tt9.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://mail.google.com/mail/e/1C4[/img]\', true); return false;" href="#"><img src="http://mail.google.com/mail/e/1C4"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://www.erpantega.it/AOTR/icon/ff_rm_pig.gif[/img]\', true); return false;" href="#"><img src="http://www.erpantega.it/AOTR/icon/ff_rm_pig.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img136.imageshack.us/img136/5716/benvenuto.gif[/img]\', true); return false;" href="#"><img src="http://img136.imageshack.us/img136/5716/benvenuto.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://www.erpantega.it/AOTR/icon/dd_whistling.gif[/img]\', true); return false;" href="#"><img src="http://www.erpantega.it/AOTR/icon/dd_whistling.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://www.erpantega.it/AOTR/icon/dd_wanking.gif[/img]\', true); return false;" href="#"><img src="http://www.erpantega.it/AOTR/icon/dd_wanking.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://www.erpantega.it/AOTR/icon/icon_megaball.gif[/img]\', true); return false;" href="#"><img src="http://www.erpantega.it/AOTR/icon/icon_megaball.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img101.imageshack.us/img101/1544/32873654.gif[/img]\', true); return false;" href="#"><img src="http://img101.imageshack.us/img101/1544/32873654.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img32.imageshack.us/img32/5715/vecchietto.gif[/img]\', true); return false;" href="#"><img src="http://img32.imageshack.us/img32/5715/vecchietto.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img180.imageshack.us/img180/5272/iconmrgreenz.gif[/img]\', true); return false;" href="#"><img src="http://img180.imageshack.us/img180/5272/iconmrgreenz.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img136.imageshack.us/img136/6571/vagabondo.gif[/img]\', true); return false;" href="#"><img src="http://img136.imageshack.us/img136/6571/vagabondo.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img101.imageshack.us/img101/5458/sole02.gif[/img]\', true); return false;" href="#"><img src="http://img101.imageshack.us/img101/5458/sole02.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img88.imageshack.us/img88/9862/freddo.gif[/img]\', true); return false;" href="#"><img src="http://img88.imageshack.us/img88/9862/freddo.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img59.imageshack.us/img59/2905/pioggia.gif[/img]\', true); return false;" href="#"><img src="http://img59.imageshack.us/img59/2905/pioggia.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img101.imageshack.us/img101/8800/sommersonellaneve.gif[/img]\', true); return false;" href="#"><img src="http://img101.imageshack.us/img101/8800/sommersonellaneve.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img59.imageshack.us/img59/1996/lottatoresumo.gif[/img]\', true); return false;" href="#"><img src="http://img59.imageshack.us/img59/1996/lottatoresumo.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img101.imageshack.us/img101/2254/lavoro.gif[/img]\', true); return false;" href="#"><img src="http://img101.imageshack.us/img101/2254/lavoro.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img59.imageshack.us/img59/2389/giocoliere.gif[/img]\', true); return false;" href="#"><img src="http://img59.imageshack.us/img59/2389/giocoliere.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img340.imageshack.us/img340/4365/mago.gif[/img]\', true); return false;" href="#"><img src="http://img340.imageshack.us/img340/4365/mago.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img98.imageshack.us/img98/3443/mail03.gif[/img]\', true); return false;" href="#"><img src="http://img98.imageshack.us/img98/3443/mail03.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img136.imageshack.us/img136/207/mail02.gif[/img]\', true); return false;" href="#"><img src="http://img136.imageshack.us/img136/207/mail02.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img101.imageshack.us/img101/1211/mailg.gif[/img]\', true); return false;" href="#"><img src="http://img101.imageshack.us/img101/1211/mailg.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img442.imageshack.us/img442/646/arrowa.gif[/img]\', true); return false;" href="#"><img src="http://img442.imageshack.us/img442/646/arrowa.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img217.imageshack.us/img217/190/azzd.gif[/img]\', true); return false;" href="#"><img src="http://img217.imageshack.us/img217/190/azzd.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img10.imageshack.us/img10/8775/diablox.gif[/img]\', true); return false;" href="#"><img src="http://img10.imageshack.us/img10/8775/diablox.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img263.imageshack.us/img263/4324/hmmq.gif[/img]\', true); return false;" href="#"><img src="http://img263.imageshack.us/img263/4324/hmmq.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img571.imageshack.us/img571/999/naughtyn.gif[/img]\', true); return false;" href="#"><img src="http://img571.imageshack.us/img571/999/naughtyn.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img39.imageshack.us/img39/3185/shutupi.gif[/img]\', true); return false;" href="#"><img src="http://img39.imageshack.us/img39/3185/shutupi.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img21.imageshack.us/img21/1104/sisiai.gif[/img]\', true); return false;" href="#"><img src="http://img21.imageshack.us/img21/1104/sisiai.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img208.imageshack.us/img208/8716/zzzue.gif[/img]\', true); return false;" href="#"><img src="http://img208.imageshack.us/img208/8716/zzzue.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img130.imageshack.us/img130/318/pinocchio.gif[/img]\', true); return false;" href="#"><img src="http://img130.imageshack.us/img130/318/pinocchio.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img202.imageshack.us/img202/4863/throb.gif[/img]\', true); return false;" href="#"><img src="http://img202.imageshack.us/img202/4863/throb.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img522.imageshack.us/img522/8891/shite.gif[/img]\', true); return false;" href="#"><img src="http://img522.imageshack.us/img522/8891/shite.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img229.imageshack.us/img229/5483/pukeh.gif[/img]\', true); return false;" href="#"><img src="http://img229.imageshack.us/img229/5483/pukeh.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img37.imageshack.us/img37/7603/spyg.gif[/img]\', true); return false;" href="#"><img src="http://img37.imageshack.us/img37/7603/spyg.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img18.imageshack.us/img18/9463/spy2.gif[/img]\', true); return false;" href="#"><img src="http://img18.imageshack.us/img18/9463/spy2.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img265.imageshack.us/img265/4624/ascolto.gif[/img]\', true); return false;" href="#"><img src="http://img265.imageshack.us/img265/4624/ascolto.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img34.imageshack.us/img34/8974/francese.gif[/img]\', true); return false;" href="#"><img src="http://img34.imageshack.us/img34/8974/francese.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img697.imageshack.us/img697/4316/popcornv.gif[/img]\', true); return false;" href="#"><img src="http://img697.imageshack.us/img697/4316/popcornv.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://a.imageshack.us/img541/8638/popcorn2.gif[/img]\', true); return false;" href="#"><img src="http://a.imageshack.us/img541/8638/popcorn2.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://www.crooked-stroke.org/smilies/personal/bbq.gif[/img]\', true); return false;" href="#"><img src="http://www.crooked-stroke.org/smilies/personal/bbq.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img18.imageshack.us/img18/7995/sherlockq.gif[/img]\', true); return false;" href="#"><img src="http://img18.imageshack.us/img18/7995/sherlockq.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img152.imageshack.us/img152/841/86645123.gif[/img]\', true); return false;" href="#"><img src="http://img152.imageshack.us/img152/841/86645123.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img140.imageshack.us/img140/9223/fagiano.gif[/img]\', true); return false;" href="#"><img src="http://img140.imageshack.us/img140/9223/fagiano.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img1.uploadhouse.com/fileuploads/9066/90662513476ecb74b752c0fedb59b25e138ba31.gif[/img]\', true); return false;" href="#"><img src="http://img1.uploadhouse.com/fileuploads/9066/90662513476ecb74b752c0fedb59b25e138ba31.gif"/></a>'+ //clessidra
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img571.imageshack.us/img571/4197/21vs.gif[/img]\', true); return false;" href="#"><img src="http://img571.imageshack.us/img571/4197/21vs.gif"/></a>'+ //annuire
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img36.imageshack.us/img36/1143/cuocop.gif[/img]\', true); return false;" href="#"><img src="http://img36.imageshack.us/img36/1143/cuocop.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img4.uploadhouse.com/fileuploads/9066/906628431467e8c92dcfa815f9fd32ced74c3da.gif[/img]\', true); return false;" href="#"><img src="http://img4.uploadhouse.com/fileuploads/9066/906628431467e8c92dcfa815f9fd32ced74c3da.gif"/></a>'+ //chapeau
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img213.imageshack.us/img213/7788/coffeef.gif[/img]\', true); return false;" href="#"><img src="http://img213.imageshack.us/img213/7788/coffeef.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img7.uploadhouse.com/fileuploads/9066/906634709990c98e7981d3a04d0bfee7afea48c.gif[/img]\', true); return false;" href="#"><img src="http://img7.uploadhouse.com/fileuploads/9066/906634709990c98e7981d3a04d0bfee7afea48c.gif"/></a>'+ //caffe2
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img9.uploadhouse.com/fileuploads/9066/906635936804aad374decfabb9aedaceb09fe99.gif[/img]\', true); return false;" href="#"><img src="http://img9.uploadhouse.com/fileuploads/9066/906635936804aad374decfabb9aedaceb09fe99.gif"/></a>'+ //caffe3
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img7.uploadhouse.com/fileuploads/9150/91500472bae81e25eecf028ac43da142a7bb6bd.gif[/img]\', true); return false;" href="#"><img src="http://img7.uploadhouse.com/fileuploads/9150/91500472bae81e25eecf028ac43da142a7bb6bd.gif"/></a>'+ //saliva
'<a style="padding:2px;" onclick="insert_text(\'[img]http://a.imageshack.us/img339/33/segreto.gif[/img]\', true); return false;" href="#"><img src="http://a.imageshack.us/img339/33/segreto.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://a.imageshack.us/img594/9729/confusedu.gif[/img]\', true); return false;" href="#"><img src="http://a.imageshack.us/img594/9729/confusedu.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://a.imageshack.us/img201/4702/loser.gif[/img]\', true); return false;" href="#"><img src="http://a.imageshack.us/img201/4702/loser.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://www.apriliaontheroad.com/forum2009/download/file.php?avatar=2956.gif[/img]\', true); return false;" href="#"><img src="http://www.apriliaontheroad.com/forum2009/download/file.php?avatar=2956.gif"/></a>'+
//'<a style="padding:2px;" onclick="insert_text(\'[img][/img]\', true); return false;" href="#"><img src=""/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img59.imageshack.us/img59/5268/suini.gif[/img]\', true); return false;" href="#"><img src="http://img59.imageshack.us/img59/5268/suini.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img101.imageshack.us/img101/6567/calcioitalia.gif[/img]\', true); return false;" href="#"><img src="http://img101.imageshack.us/img101/6567/calcioitalia.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://a.imageshack.us/img576/7410/bounces.gif[/img]\', true); return false;" href="#"><img src="http://a.imageshack.us/img576/7410/bounces.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://a.imageshack.us/img145/5541/saltaverde.gif[/img]\', true); return false;" href="#"><img src="http://a.imageshack.us/img145/5541/saltaverde.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://a.imageshack.us/img826/3294/ola.gif[/img]\', true); return false;" href="#"><img src="http://a.imageshack.us/img826/3294/ola.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://a.imageshack.us/img7/1416/mettilefoto.gif[/img]\', true); return false;" href="#"><img src="http://a.imageshack.us/img7/1416/mettilefoto.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img19.imageshack.us/img19/7269/74656338.gif[/img]\', true); return false;" href="#"><img src="http://img19.imageshack.us/img19/7269/74656338.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img194.imageshack.us/img194/7544/scimmbal1.gif[/img]\', true); return false;" href="#"><img src="http://img194.imageshack.us/img194/7544/scimmbal1.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img38.imageshack.us/img38/9500/chucknorrisapprovedp.gif[/img]\', true); return false;" href="#"><img src="http://img38.imageshack.us/img38/9500/chucknorrisapprovedp.gif"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://a.imageshack.us/img202/1341/sanfiore90x90.jpg[/img]\', true); return false;" href="#"><img src="http://a.imageshack.us/img202/1341/sanfiore90x90.jpg"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img832.imageshack.us/img832/104/doh.png[/img]\', true); return false;" href="#"><img src="http://img832.imageshack.us/img832/104/doh.png"/></a>'+
'<a style="padding:2px;" onclick="insert_text(\'[img]http://img170.imageshack.us/img170/1838/homer.gif[/img]\', true); return false;" href="#"><img src="http://img170.imageshack.us/img170/1838/homer.gif"/></a>'+
//'<a style="padding:2px;" onclick="insert_text(\'[img][/img]\', true); return false;" href="#"><img src=""/></a>'+
'');
newNodeTd.className = 'row1';
newNodeTd.setAttribute("colspan", "2");
newNode.appendChild(newNodeTd);
referenceNode.parentNode.insertBefore( newNode, referenceNode.nextSibling );
}
} else {
GM_setValue('personalIconSet', false);
}
}
//rimuove e/o modifica elementi per rendere il forum più compatto e usabile
function compactForumFunction(checkbox) {
if (checkbox) {
GM_setValue('compactForum', true);
//hide AOTR logo div
var logo = dom.id("logodesc");
logo.style.display = 'none';
//hide datebar div
var datebar = dom.id("datebar");
datebar.style.display = 'none';
//hide forumrules
var forumrules = dom.xo("//div[@class='forumrules']");
if (forumrules) {
for (var i = 0; i < forumrules.snapshotLength; i++) {
var forumrule = forumrules.snapshotItem(i);
forumrule.style.display = 'none';
}
}
//override styles
addGlobalStyle('#wrapheader { min-height: 15px ! important; padding-top: 5px ! important;}');
addGlobalStyle('#wrapcentre { margin: 2px 25px 0 ! important; }');
addGlobalStyle('#pagecontent { float: left ! important; width: 100% ! important; margin-bottom: 2em !important}');
addGlobalStyle('#pageheader { margin-top: -8px ! important; }');
addGlobalStyle('#pageheader h2 { float: left ! important; }');
addGlobalStyle('#menubar { margin: 0 25px ! important; }');
addGlobalStyle('.cat { height: 22px ! important; }');
addGlobalStyle('p.moderators { display: none ! important; }');
var isTopic = (location.pathname.indexOf('viewtopic') != -1);
if (isTopic) {
//hide elements: rank
var postdetails = dom.xo("//td[@class='postdetails']");
for (var i = 0; i < postdetails.snapshotLength; i++) {
var postdetail = postdetails.snapshotItem(i);
postdetail.style.display = 'none';
}
//hide elements: rank image
var rankimages = dom.xo("//img[starts-with(@src, './images/ranks/')]/..");
for (var i = 0; i < rankimages.snapshotLength; i++) {
var rankimage = rankimages.snapshotItem(i);
rankimage.style.display = 'none';
}
//hide elements: iscritto il/messaggi/località
var postdetails = dom.xo("//span[@class='postdetails']");
for (var i = 0; i < postdetails.snapshotLength; i++) {
var postdetail = postdetails.snapshotItem(i);
var messaggi = postdetail.childNodes[6].nodeValue;
if (postdetail.childNodes[9]) {
var localita = postdetail.childNodes[9].nodeValue;
var text = messaggi + ' <b>~</b>' + localita;
} else {
var text = messaggi;
}
var newNode = dom.cn('div', text);
newNode.style.fontFamily = 'Franklin Gothic Medium';
newNode.style.marginTop = '-5px';
newNode.style.paddingLeft = '6px';
var parentElem = postdetail.parentNode;
parentElem.insertBefore(newNode, postdetail);
postdetail.style.display = 'none';
}
//hide elements: segnala il messaggio
var postreports = dom.xo("//img[@title='Segnala il messaggio']/../../../../..");
for (var i = 0; i < postreports.snapshotLength; i++) {
var postreport = postreports.snapshotItem(i);
postreport.style.display = 'none';
}
//hide elements: <br clear="all"/>
var brs = dom.xo("//br[@clear='all']");
for (var i = 0; i < brs.snapshotLength; i++) {
var br = brs.snapshotItem(i);
br.style.display = 'none';
}
//hide elements: autore/messaggio
var ths = dom.xs("//th/..");
ths.style.display = 'none';
//add "Attivi-Tuoi" links to "Top" section
var topsections = dom.xo("//a[@href='#wrapheader']/..");
for (var i = 0; i < topsections.snapshotLength; i++) {
var topsection = topsections.snapshotItem(i);
var newNode = dom.cn('a', 'Tuoi');
newNode.href = 'http://www.apriliaontheroad.com/forum2009/search.php?search_id=egosearch';
newNode.style.cssFloat = 'right';
newNode.style.fontWeight = 'bold';
var parentElem = topsection.parentNode;
parentElem.insertBefore(newNode, topsection);
newNode.style.marginLeft = '37px';
var newNode = dom.cn('a', 'Attivi');
newNode.href = 'http://www.apriliaontheroad.com/forum2009/search.php?search_id=active_topics';
newNode.style.cssFloat = 'right';
newNode.style.fontWeight = 'bold';
var parentElem = topsection.parentNode;
parentElem.insertBefore(newNode, topsection);
}
}
} else {
GM_setValue('compactForum', false);
}
}
//quick search (modificato da http://bernhardhaeussner.de/blog/62_Greasemonkey_Quick_Search)
function quickSearchFunction(checkbox) {
if (checkbox) {
GM_setValue('quickSearch', true);
window.addEventListener('mouseup', BXT_callmenu, true);
} else {
GM_setValue('quickSearch', false);
//window.removeEventListener('mouseup', BXT_callmenu, true);
}
}
function BXT_callmenu(e) {
var s=window.getSelection();
if (!BXT_open) {
window.setTimeout(function(){
body.removeChild(dom.id("BXT_searchselector"));
BXT_open=true;
},100)
}
if (s && BXT_open && s!='') {
sE=encodeURIComponent(s);
var test = dom.cn("div", "<a style='font-size:15px; color:#fff; text-decoration:none; padding:0px; margin:0px' target='_blank' href='http://www.apriliaontheroad.com/forum2009/search.php?keywords="+sE+"'><img src='http://www.apriliaontheroad.com/j/templates/ja_purity_aotr/favicon.ico' border=0> cerca su AOTR</a><br/>"+
"<a style='font-size:15px; color:#fff; text-decoration:none; padding:0px; margin:0px' target='_blank' href='http://www.google.it/search?q="+sE+"'><img src='http://www.google.it/favicon.ico' border=0> cerca su Google</a><br/>");
test.setAttribute("id", "BXT_searchselector");
test.setAttribute("style", "background-color:rgba(0,0,0,0.7);position:absolute;z-index:99999;top:"+(e.pageY+10)+"px;left:"+(e.pageX+10)+"px;padding:10px;border:1px #fff solid;");
body.appendChild(test);
BXT_open=false;
}
}
//filterMyMessages: nasconde i messaggi già letti nelle pagine "Messaggi senza risposta | Argomenti attivi | Messaggi recenti | I tuoi messaggi"
function filterMyMessagesFunction(checkbox) {
if (checkbox) {
GM_setValue('filterMyMessages', true);
var thispage = window.location.href;
if (thispage.indexOf("egosearch") >= 0 || thispage.indexOf("active_topics") >= 0 || thispage.indexOf("unanswered") >= 0 || thispage.indexOf("newposts") >= 0) {
var oldmessages = dom.xo("//img[@alt='Nessun nuovo messaggio']/../..");
for (var i = 0; i < oldmessages.snapshotLength; i++) {
var oldmessage = oldmessages.snapshotItem(i);
oldmessage.style.display = 'none';
}
}
} else {
GM_setValue('filterMyMessages', false);
}
}
/***********************/
/******* UTILITA' ******/
/***********************/
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
//FranMod's DOMUtils
function DOMUtils(doc, ctxt, html) {
this.cn = function(tag, html) {
var elem = this.document.createElement(tag);
if (html) elem.innerHTML = html;
return elem;
}
this.ct = function(text) {
return this.document.createTextNode(text);
}
this.id = function(id) {
return this.document.getElementById(id);
}
this.tag = function(tag) {
return this.document.getElementsByTagName(tag);
}
this.xs = function(xpath) {
var res = this.document.evaluate(xpath, this.context, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
return res.singleNodeValue;
}
this.xa = function(xpath) {
var arr = [];
var xpr = this.document.evaluate(xpath, this.context, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; item = xpr.snapshotItem(i); i++)
arr.push(item);
return arr.length == 0? null: arr;
}
this.xo = function(xpath) {
var ret = this.document.evaluate(xpath, this.context, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
return ret; //no snapshot
}
if (!doc) doc = document;
if (!ctxt) ctxt = doc;
if (html) {
this.document = doc.implementation.createDocument('', '', null);
this.context = doc.createElement('div');
this.context.innerHTML = html;
ansDoc.appendChild(this.context);
}
else {
this.document = doc;
this.context = ctxt;
}
}
})();