Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
hide lame stuff on twitter.com
$().ready(function() {
$("<style type='text/css'>.trends-inner{ display: none }</style>").appendTo("head");
$("<style type='text/css'>p.promo{ display: none }</style>").appendTo("head");
});
@gilesbowkett

This comment has been minimized.

Show comment Hide comment
@gilesbowkett

gilesbowkett Apr 25, 2011

to be clear, this eliminates the "trending topics" section, and the little ad links for the iPhone and iPad Twitter clients

Owner

gilesbowkett commented Apr 25, 2011

to be clear, this eliminates the "trending topics" section, and the little ad links for the iPhone and iPad Twitter clients

@peterc

This comment has been minimized.

Show comment Hide comment
@peterc

peterc Apr 25, 2011

Cool, will give this a try! Any reason why you had to take this approach rather than $('.trends-inner').hide() though? (I know Twitter's rendering process is a Bit Complicated™)

peterc commented Apr 25, 2011

Cool, will give this a try! Any reason why you had to take this approach rather than $('.trends-inner').hide() though? (I know Twitter's rendering process is a Bit Complicated™)

@gilesbowkett

This comment has been minimized.

Show comment Hide comment
@gilesbowkett

gilesbowkett May 26, 2011

sry re delay. iirc using hide() just resulted in the call to hide() occuring before the elements satisfying the query even existed. I think I actually fiddled with LiveQuery unsuccessfully for a while before I threw my hands up and just went with the CSS hack.

Owner

gilesbowkett commented May 26, 2011

sry re delay. iirc using hide() just resulted in the call to hide() occuring before the elements satisfying the query even existed. I think I actually fiddled with LiveQuery unsuccessfully for a while before I threw my hands up and just went with the CSS hack.

@peterc

This comment has been minimized.

Show comment Hide comment
@peterc

peterc May 26, 2011

Ah, good point. I encountered similar issues with the "old" Twitter client when doing some work like this. Good call.

peterc commented May 26, 2011

Ah, good point. I encountered similar issues with the "old" Twitter client when doing some work like this. Good call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment