Last active
July 27, 2024 14:45
-
-
Save NiLSPACE/a8c95b895982ba9d9dba108d191216af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Reddit Remove App Notification | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.reddit.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com | |
// @grant none | |
// ==/UserScript== | |
(async function() { | |
'use strict'; | |
let style = document.createElement("style") | |
style.innerText = ` | |
body.scroll-disabled { | |
position: initial !important; | |
overflow: auto !important; | |
} | |
.NavFrame > div:not([class]) { | |
display:none; | |
} | |
body { | |
overflow: auto !important; | |
pointer-events: initial !important; | |
} | |
shreddit-experience-tree { | |
display: none; | |
} | |
shreddit-async-loader[paint-group="xpromo"] { | |
display: none; | |
} | |
` | |
document.body.appendChild(style); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment