This file contains 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
// ==UserScript== | |
// @name Hashtag Filter | |
// @version 0.1 | |
// @description Removes pesky hashtags from your twitter feed. | |
// @match http://twitter.com/* | |
// @match https://twitter.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js | |
// ==/UserScript== | |
jQuery(document).ready(function() { |
This file contains 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
// ==UserScript== | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js | |
// ==/UserScript== | |
tweets = $('.tweet'); | |
pattern = new RegExp('sxsw','i'); | |
$.each(tweets, function(index, tweet) { | |
if(pattern.exec($(tweet).text())) { | |
tweet.remove() | |
} | |
}); |
This file contains 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
def copy_to_clipboard(string) | |
cmd = | |
if RUBY_PLATFORM =~ /linux/ | |
"xclip -selection clipboard" | |
else | |
"pbcopy" | |
end | |
`echo #{string} | tr -d "\n" | #{cmd}` | |
end |