Remove unnecessary junk around images and gifs hosted on Reddit.
Reddit | clean media viewer [obsolete] by Eight_P
Details
AuthorEight_P
LicenseNo License
Categoryredd.it
Created
Updated
Size1.1 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
This snippet won't receive any future updates.
Check out some of the browser extensions that do the same, but better.
Source code
/* ==UserStyle==
@name Reddit | clean media viewer
@version 20231126.11.57
@namespace userstyles.world/user/Eight_P
@description Remove unnecessary junk around media hosted on Reddit.
@author Eight_P
@license No License
==/UserStyle== */
@-moz-document url-prefix("https://i.redd.it/"), url-prefix("https://preview.redd.it/"), url-prefix("https://www.reddit.com/svc/shreddit/cdn-media-page"), url-prefix("https://www.reddit.com/media?url=") {
:root {
--background-color: black ;
}
html {
background: var(--background-color) !important ;
}
body.v2 {
width: 100vw ;
height: 100vh ;
inset: 0 ;
margin: 0 ;
padding: 0 ;
background: var(--background-color);
display: flex ;
align-items: center ;
justify-content: center;
}
body.v2 * {
display: none !important ;
}
body.v2 :is(zoomable-img, main, faceplate-tracker, .cdn-media-page, shreddit-app) {
display: contents !important;
}
body.v2 :is(img[src], video[src]) {
display: block !important ;
/* margin: auto !important ; */
}
}