Skip to content

Instantly share code, notes, and snippets.

@udzura
Created December 5, 2012 05:34
Show Gist options
  • Save udzura/4212643 to your computer and use it in GitHub Desktop.
Save udzura/4212643 to your computer and use it in GitHub Desktop.
「今どんな気持ち?」をアレする user script
// ==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