Created
December 5, 2012 05:34
-
-
Save udzura/4212643 to your computer and use it in GitHub Desktop.
「今どんな気持ち?」をアレする user script
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 ねえねえ今どんな気持ち? | |
// @namespace http://udzura.jp/kokubun | |
// @description 国分太一fier | |
// @include https://www.facebook.com/* | |
// @version 0.0.1.20121205 | |
// ==/UserScript== | |
(function () { | |
function pingTaichi () { | |
var elms = document.getElementsByTagName('textarea'); | |
if(elms.length != 0) { | |
for(i = 0; i < elms.length; i++ ) { | |
var elm = elms[i]; | |
if(elm.getAttribute('placeholder') === '今どんな気持ち?') { | |
elm.setAttribute('placeholder', 'ねえねえ今どんな気持ち?'); | |
elm.value = 'ねえねえ今どんな気持ち?'; | |
} | |
} | |
} | |
} | |
setInterval(pingTaichi, 300); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment