Skip to content

Instantly share code, notes, and snippets.

@motemen motemen/gist:59284 forked from kentaro/gist:58834
Created Feb 6, 2009

Embed
What would you like to do?
// ==UserScript==
// @name Ichigo-Mashimaro
// @namespace http://kentarok.org/
// @include http://twitter.com/*
// ==/UserScript==
(function () {
var textarea = document.getElementById('status');
textarea.value = '';
var start = null;
textarea.addEventListener(
'keyup',
function (event) {
if (!start) start = (new Date);
if (event.target.value == '@kentaro しごとしろ') {
var time = (new Date) - start;
event.target.value = event.target.value + ' (' + time / 1000 + '秒)';
}
},
true
);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.