NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name UnTydramize!
// @author GonDragon
// @namespace http://twinoid.com/user/350369
// @description Cambia el avatar de Tydram por un gatito aleatorio
// @match http://twinoid.com/*
// @exclude http://twinoid.com/discuss*
// @version 0.81
// @grant GM_addStyle
// ==/UserScript==
var cats= ["wlto5l6.jpg", "sqZlnFh.jpg", "SgGYJij.jpg", "SjsE5Z5.jpg", "5RxVZlH.jpg", "1118EuL.jpg", "MxRoL0n.jpg", "qXSNN7s.jpg"];
var img_path="http://i.imgur.com/";
function chooseIMG()
{
return img_path+cats[parseInt(Math.random()* cats.length)];
}
function unTydramize(){
for(var i=0; i < document.images.length; i++){
if(document.images[i].src == "http://imgup.motion-twin.com/twinoid/2/e/fcb2b454_2105740_100x100.png")
{
document.images[i].src = chooseIMG();
}
}
}
GM_addStyle("unTydramize { text-shadow: 1px 1px 1px black; border-radius: 5px 5px 0px 0px; font-size: 21px; position: absolute; top: 98px; left: 40px; color: #BFC1C6; background: #3b4151; border: 1px solid #4e5162; height: 25px; border-bottom-style: hidden; width: 170px; text-align: center; font-family: Helvetica, sans-serif, Arial; }");
GM_addStyle("unTydramize:hover { color: #FFFFFF; background: #ff6600; border: 1px solid #feb500; border-bottom-style: hidden; cursor: pointer; }");
var input = document.createElement("unTydramize");
var input_text = document.createTextNode("UnTydramize!");
input.type = "button";
input.onclick = unTydramize;
input.appendChild(input_text);
document.body.appendChild(input);