Skip to content

Instantly share code, notes, and snippets.

@mattn
Created July 7, 2009 01:31
Show Gist options
  • Save mattn/141809 to your computer and use it in GitHub Desktop.
Save mattn/141809 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name a chin chin a chin
// @namespace http://mattn.kaoriya.net/
// @include http://wassr.jp/my/
// ==/UserScript==
(function() {
var forms = document.getElementsByTagName('form');
for (var n = 0; n < forms.length; n++) {
if (forms[n].action == 'http://wassr.jp/my/status/add') {
forms[n].addEventListener('submit', function() {
document.getElementById('MessageText').value += ' チンチン';
}, false);
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment