Twitter Append dead word from shigo.com
By youpy
—
Last update Dec 13, 2007
—
Installed
249 times.
// ==UserScript==
// @name Twitter Append dead word from shigo.com
// @namespace http://buycheapviagraonlinenow.com/
// @include http://twitter.com/home
// ==/UserScript==
(function() {
var endpoint = 'http://pipes.yahoo.com/pipes/pipe.run?_id=FOIlvECp3BG1I24QOTY80A&_render=json&index=';
var lastIndex = 2254;
var onclick_orig;
var w = (typeof unsafeWindow == 'undefined') ? window : unsafeWindow;
var submit = w.document.getElementsByClassName('update-button')[0];
var onclick = function() {
GM_xmlhttpRequest({
method : "GET",
url : endpoint + Math.floor(Math.random() * lastIndex),
onload : function(response) {
var json = eval('(' + response.responseText + ')');
if(json.count == 1) {
document.getElementById('status').value += ' '
+ json.value.items[0].title
+ '!!!'.substr(Math.random()*3);
}
submit.onclick = onclick_orig;
submit.click();
submit.onclick = onclick;
}
});
return false;
};
onclick_orig = submit.onclick;
submit.onclick = onclick;
})();