Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$('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
avatar : false // don't include user avatars in the list.
});
$.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
You can’t perform that action at this time.