Created
May 31, 2009 12:30
-
-
Save negipo/120880 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name HelpMeOnoMatope | |
// @namespace http://polog.org/ | |
// @include http://favotter.matope.com/* | |
// ==/UserScript== | |
var url = 'http://twitter.com/statuses/user_timeline/ono_matope.json'; | |
if(document.title != '503 Service Temporarily Unavailable' && !/Sorry, Database Server is down なう/.test(document.body.innerHTML)) | |
return; | |
GM_xmlhttpRequest({ | |
method: 'GET', | |
url: url, | |
onload: parseTimeLine | |
}); | |
function parseTimeLine(res){ | |
var json = eval("(" + res.responseText + ")"); | |
var a = []; | |
json.forEach(function(conv){ | |
a.push(conv.text); | |
}); | |
document.body.innerHTML = document.body.innerHTML + a.join("<br />") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment