Skip to content

Instantly share code, notes, and snippets.

@darragh
Created September 6, 2009 18:25
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 darragh/181909 to your computer and use it in GitHub Desktop.
Save darragh/181909 to your computer and use it in GitHub Desktop.
jetpack.tabs.onReady(function onNextPage(doc)
{
if (doc.location.href.match(/http:\/\/twitter.com/)) {
$(doc).find('html').css({'overflow': '-moz-scrollbars-vertical'});
$(doc).find('#trends a, #trends_list a').click(function() {
$(doc).find('#home_search_q, #sidebar_search_q').val($(this).attr('name'));
});
$(doc).find('a.search-link').click(function() {
$(doc).find('#sidebar_search_q').val($(this).attr('title'));
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment