Skip to content

Instantly share code, notes, and snippets.

@negipo
Created May 31, 2009 12:30
Show Gist options
  • Save negipo/120880 to your computer and use it in GitHub Desktop.
Save negipo/120880 to your computer and use it in GitHub Desktop.
// ==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