Skip to content

Instantly share code, notes, and snippets.

@leeourand
leeourand / hashtagbegone.js
Created March 27, 2013 21:57
Removes pesky hashtags from your twitter feed.
// ==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() {
@leeourand
leeourand / De-SXSW.js
Created March 8, 2013 15:19
Greasemonkey script that removes SXSW tweets from your timeline.
// ==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()
}
});
@leeourand
leeourand / clipboard.rb
Created January 7, 2011 20:42
This hangs for some reason on Linux (Mac OS X Works fine)
def copy_to_clipboard(string)
cmd =
if RUBY_PLATFORM =~ /linux/
"xclip -selection clipboard"
else
"pbcopy"
end
`echo #{string} | tr -d "\n" | #{cmd}`
end