Skip to content

Instantly share code, notes, and snippets.

@jwdeane
Created November 18, 2009 13:00
Show Gist options
  • Save jwdeane/237819 to your computer and use it in GitHub Desktop.
Save jwdeane/237819 to your computer and use it in GitHub Desktop.
Remove #fb from tweets
// Assuming use of http://code.google.com/p/twitterjs/ for publishing to your website, and
// http://apps.facebook.com/selectivetwitter/ for publishing to Facebook
function fbRemove() {
$('#tweet li').each(function() {
var el = $(this);
el.html(el.html().replace(/\s*#.*fb<\/a>/ig, ''));
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment