Skip to content

Instantly share code, notes, and snippets.

@boazsender
Created August 15, 2010 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save boazsender/525224 to your computer and use it in GitHub Desktop.
Save boazsender/525224 to your computer and use it in GitHub Desktop.
$('selector').twitter('search terms');
$('selector').twitter({
from : 'BoazSender', // From this person
replies : false, // Include @replies?
ands : 'jquery bocoup', // All of these words
ors : 'gangster javascript', // Any of these words
nots : 'dirty words', // None of these words
});
$.twitter({from: 'BoazSender', replies : false}, function(tweets){
console.log(tweets);
});
// Default all twitter lists to exclude @replies and dirty words
$.twitter.options.replies = false;
// Set a whole bunch of defaults at once
$.extend($.twitter.options, {
replies : false,
retweets : false,
limit : 20,
nots : 'dirty words'
});
<style type="text/css">
.twitter-posts li {margin-bottom: 10px; font-size: 12px; clear: both; list-style-type:none;}
.twitter-posts li img {float:left; width: 48px; margin:0px 10px 10px 0px;border:1px solid #c2c2c2; -moz-box-shadow: 0px 0px 4px #c2c2c2; -webkit-box-shadow: 0px 0px 4px #c2c2c2; box-shadow: 0px 0px 4px #c2c2c2;}
.twitter-posts li a {text-decoration:none; color: #009;}
hr.space {clear:both; width: 100%; visibility:hidden;}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment