Created
October 20, 2010 12:11
-
-
Save watagashi/636302 to your computer and use it in GitHub Desktop.
auto appending hashtag for twicli http://twitter.com/_wa_/statuses/27925309744
This file contains hidden or 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
(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