Skip to content

Instantly share code, notes, and snippets.

@ded
Created October 18, 2010 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ded/633282 to your computer and use it in GitHub Desktop.
Save ded/633282 to your computer and use it in GitHub Desktop.
using filters in twitter widget
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 20,
interval: 6000,
width: 'auto',
height: 300,
theme: {
shell: {
background: '#ffffff',
color: '#111'
},
tweets: {
background: '#ffffff',
color: '#111',
links: '#1e519e'
}
},
features: {
filters: {
negatives: /(fuck|shit|piss|cock|motherfuck)/
},
scrollbar: false,
loop: false,
live: false,
hashtags: true,
timestamp: true,
avatars: false,
behavior: 'all'
}
}).render().setUser('ded').start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment