Reddit Server Error Banner Remover

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

Autor
KingHenry2K
Instalaciones diarias
0
Instalaciones totales
5
Calificaciones
0 0 0
Versión
1.0
Creado
10/9/2024
Actualizado
10/9/2024
Licencia
MIT
Funciona en

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.