Skip to content

Instantly share code, notes, and snippets.

@rotemdan
Created September 15, 2021 07:15
Show Gist options
  • Save rotemdan/4ef6e8163c621ecad0630d72df2f146e to your computer and use it in GitHub Desktop.
Save rotemdan/4ef6e8163c621ecad0630d72df2f146e to your computer and use it in GitHub Desktop.
Cleans up Wikipedia. Removes all UI elements. To be used with a stylesheet extension like Stylus.
body, html
{
font-family: sans-serif !important;
width: auto !important;
height: auto !important;
}
h1, .mw-headline
{
font-family: sans-serif !important;
}
div#bodyContent
{
line-height: 1.4 !important;
font-size: 15px !important;
font-weight: 400 !important;
}
div#content
{
width: 650px !important;
margin-left: auto !important;
margin-right: auto !important;
background-image: none !important;
border: 0 !important;
}
div#mw-head
{
width: auto !important;
}
div#siteNotice, div#p-personal, div#p-logo, div#p-lang,
div#p-interaction, div#p-coll-print_export, div#p-tb, div#mw-panel, div#footer,
div#left-navigation, div#p-views, div#mw-page-base, div#mw-head, .ambox, .mw-editsection,
div#protected-icon,.articleFeedback, div#siteSub, div#centralNotice, div#mw-fr-revisiontag, sup.reference
{
display: none !important;
}
div#right-navigation, div#p-search
{
float: none !important;
margin-left: auto !important;
margin-right: auto !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment