-
-
Save ashikawa/4325533 to your computer and use it in GitHub Desktop.
kokubunize
This file contains hidden or 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 ねえねえ今どんな気持ち? | |
// @namespace http://udzura.jp/kokubun | |
// @description 国分太一fier | |
// @include *//www.facebook.com/* | |
// @version 0.0.1.20121205 | |
// ==/UserScript== | |
(function () { | |
var kimochi = [ | |
'ねえねえ今どんな気持ち?', | |
'今、どんな気持ち?', | |
'ねぇ、どんな気持ち?' | |
].join("\n"); | |
function kokubunize() { | |
var elms = document.getElementsByTagName('textarea'), | |
len = elms.length, | |
elm, | |
i; | |
for (i = 0; i < len; i++) { | |
elm = elms[i]; | |
if (elm.getAttribute('placeholder') === '今どんな気持ち?') { | |
elm.setAttribute('placeholder', kimochi); | |
elm.value = kimochi; | |
} | |
} | |
} | |
setInterval(kokubunize, 300); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@memo http://dotinstall.com/lessons/basic_chrome
Chrome拡張てこんな簡単に作れたんか。。