Skip to content

Instantly share code, notes, and snippets.

@yancya
Forked from udzura/kokubun.user.js
Created March 17, 2013 13:18
Show Gist options
  • Save yancya/5181467 to your computer and use it in GitHub Desktop.
Save yancya/5181467 to your computer and use it in GitHub Desktop.
// ==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