Quick and dirty userstyle that removes every element of any StackOverflow site that isn't the question, the answers, the comments and the scores.
Un-garbage StackOverflow by maff
Details
Authormaff
LicenseMIT
Categorystackoverflow.com
Created
Updated
Size2.3 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
This was originally an AdBlock rule list, but I've ported it over to a userstyle so that it works easier in more places.
Changes
1.0.2.1
- match on onetrust id, not class
1.0.2
- removes the onetrust cookie box
1.0.1
- handles StackExchange subsites better
- adds documentation for each of the rules.
1.0.0
- initial release
Source code
/* ==UserStyle==
@name Un-garbage StackOverflow
@namespace github.com/openstyles/stylus
@version 1.0.2.1
@description when you go on stack overflow it's always like "here's the answers you wanted but also here's a bunch of distracting bullshit!!!". this fixes it.
@author @Maffsie
==/UserStyle== */
@-moz-document domain("stackoverflow.com"), domain("stackexchange.com"), domain("superuser.com"), domain("serverfault.com"), domain("askubuntu.com"), domain("mathoverflow.net"), domain("stackapps.com") {
body {
padding: 0 !important;
}
body > .container, div.container > div#content {
margin: 0 !important;
}
/* get rid of a majority of the worst things on stack over flow */
#sidebar, #left-sidebar, #post-form, .post-taglist, .ff-sans, #answers > aside.s-notice.s-notice__info, #answers > h2.bottom-notice, footer, header, #question-header > div:last-child, #mainbar > div > div > div.post-layout > div > div > div > div.post-signature, #question > div.post-layout:last-child > div.postcell > div:last-child, div > div > div.post-layout > div.post-layout--right > div > a.comments-link, .comment-score, .js-dismissable-hero, #trending-sort-info, .js-post-menu, .js-bookmark-btn, .js-post-issue, #onetrust-consent-sdk {
display: none !important;
}
/* pointless */
div.container, div.container > div#content, #mainbar, .mainbar {
max-width: unset !important;
width: auto !important;
}
/* this shit sets some shit to be a table. i disagree. */
#content:before, #content:after, .clearfix:before, .clearfix:after {
content: unset !important;
display: unset !important;
}
/* on certain subsites such as worldbuilding.se, the background image causes my browser to lag on -scrolling-. i hate the web. */
body.unified-theme {
background-image: unset !important;
}
/* gets rid of information about the answering user. nobody cares about your reddit gold. */
.postcell > .mb0 {
display: none !important;
}
/* literally what's the point in having votes for a question. "hey your question sucks" well it still shows up on google asshole */
#question > .post-layout > .votecell {
display: none !important;
}
}