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();