Reddit Server Error Banner Remover

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

Autore
KingHenry2K
Installazioni giornaliere
0
Installazioni totali
5
Valutazione
0 0 0
Versione
1.0
Creato il
10/09/2024
Aggiornato il
10/09/2024
Licenza
MIT
Applica a

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.