$().ready(function() { | |
$("<style type='text/css'>.trends-inner{ display: none }</style>").appendTo("head"); | |
$("<style type='text/css'>p.promo{ display: none }</style>").appendTo("head"); | |
}); |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
to be clear, this eliminates the "trending topics" section, and the little ad links for the iPhone and iPad Twitter clients |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
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™) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
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.
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. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
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. |
to be clear, this eliminates the "trending topics" section, and the little ad links for the iPhone and iPad Twitter clients