Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
twitter.com web version, minus the bullshit
1 $().ready(function() {
2 // don't show me trending topics
3 $("<style type='text/css'>.trends-inner{ display: none }</style>").appendTo("head");
4
5 // don't show me promoted tweets
6 $("<style type='text/css'>p.promo{ display: none }</style>").appendTo("head");
7
8 // don't recommend that I follow anybody
9 $("<style type='text/css'>.user-rec-component{ display: none }</style>").appendTo("head");
10
11 // don't show me extraneous HRs either
12 $("<style type='text/css'>.component-spacer{ display: none }</style>").appendTo("head");
13
14 // in fact, just shut the fuck up
15 $("<style type='text/css'>div.dashboard{ display: none }</style>").appendTo("head");
16 });
17
@gilesbowkett

This comment has been minimized.

Show comment Hide comment
@gilesbowkett

gilesbowkett Jun 10, 2011

it ain't dry, but it works

Owner

gilesbowkett commented Jun 10, 2011

it ain't dry, but it works

@gilesbowkett

This comment has been minimized.

Show comment Hide comment
@gilesbowkett

gilesbowkett Jun 10, 2011

I use this method because Twitter populates a lot of stuff via Ajax. I experimented with inlining LiveQuery into default.js, but it was too much of a PITA

Owner

gilesbowkett commented Jun 10, 2011

I use this method because Twitter populates a lot of stuff via Ajax. I experimented with inlining LiveQuery into default.js, but it was too much of a PITA

@darkhelmet

This comment has been minimized.

Show comment Hide comment
@darkhelmet

darkhelmet Jun 10, 2011

Why don't you just remove them?

$('.trends-inner, p.promo, .user-rec-component, .component-spacer').remove()

Why don't you just remove them?

$('.trends-inner, p.promo, .user-rec-component, .component-spacer').remove()

@semanticart

This comment has been minimized.

Show comment Hide comment
@semanticart

semanticart Jun 10, 2011

removing doesn't work because they're dynamically added after the page load. dotjs fires at load time.

removing doesn't work because they're dynamically added after the page load. dotjs fires at load time.

@darkhelmet

This comment has been minimized.

Show comment Hide comment
@darkhelmet

darkhelmet Jun 10, 2011

Makes sense. Lamesauce.

Makes sense. Lamesauce.

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