Skip to content

Instantly share code, notes, and snippets.

@watagashi
Created October 20, 2010 12:11
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 watagashi/636302 to your computer and use it in GitHub Desktop.
Save watagashi/636302 to your computer and use it in GitHub Desktop.
auto appending hashtag for twicli http://twitter.com/_wa_/statuses/27925309744
(function(){
var footerSetting = footer;
registerPlugin({
switchTo: function(m) {
var sel = document.getElementsByClassName("sel");
if(sel.length < 1) return;
if(sel[0].id.indexOf("search-#") != 0) {
footer = footerSetting;
return;
}
footer = " " + sel[0].id.slice("search-".length);
if(footerSetting.length > 0) footer +=" " + footerSetting;
},
savePrefs: function(frm) {
footerSetting = footer;
}
});
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment