Reddit Server Error Banner Remover

Removes the "We had a server error..." banner from Reddit.

Fejlesztő
KingHenry2K
Napi telepítések
0
Telepítések száma
5
Értékelések
0 0 0
Verzió
1.0
Létrehozva
2024.09.10.
Frissítve
2024.09.10.
Licensz
MIT
Érvényes

Description

This script automatically removes the "We had a server error..." banner from Reddit. The error message may appear when there are server issues, but it can also appear on accounts that are shadowbanned.

How it works

The script utilizes a function called deepQuerySelectorAll to search through both the regular DOM and shadow DOM elements. It looks for the error banner (div.banner.error) across all shadow roots. Once found, it removes the banner by setting its display property to none, or by removing it entirely from the DOM.

Additionally, the script uses a MutationObserver to monitor for any dynamic changes on the Reddit page, ensuring that if the banner reappears, it will be removed again.

Installation

  1. Install Tampermonkey (or any other user script manager) on your browser.
  2. Click the "Install" button on this page.
  3. The script will automatically run on Reddit pages and remove the server error banner.