Skip to content

Instantly share code, notes, and snippets.

@ino46
Forked from tobynet/Twitter_reform.js
Created February 20, 2010 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ino46/309615 to your computer and use it in GitHub Desktop.
Save ino46/309615 to your computer and use it in GitHub Desktop.
/*
※注意
マルチバイト文字の unicode エスケープは必要ありませんでした。
http://gist.github.com/309432 を使用してください。
参考 http://github.com/to/tombloo/commit/85c59c3195f8c9ff4bf91cecb04738e0c20c01cf
*/
addBefore(Twitter, 'post', function(ps){
var pre_str = "\u898b\u3066\u308b:";
if (ps.item) { ps.item = "\u300e" + ps.item + "\u300f"; }
ps.item = ps.item || "";
ps.description = ps.description ? ps.description : pre_str;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment