From 93474301b441192c13d4d1013d16aa59220a2981 Mon Sep 17 00:00:00 2001 From: calebvisage <68855603+calebvisage@users.noreply.github.com> Date: Wed, 11 Oct 2023 11:15:48 +0200 Subject: [PATCH] bcause f reddit --- README.md | 3 ++- script.js | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 script.js diff --git a/README.md b/README.md index b0fec34..8c213d5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # shreddit-userscript -Removes the blocking modal when viewing "mature content" + +Removes the blocking modal when viewing "mature content". diff --git a/script.js b/script.js new file mode 100644 index 0000000..177e162 --- /dev/null +++ b/script.js @@ -0,0 +1,8 @@ +const removeElement = () => { + const element = document.querySelector("shreddit-async-loader.theme-beta"); + if (element) { + element.remove(); + } +}; + +removeElement();