Reddit Server Error Banner Remover

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

Автор
KingHenry2K
Установок в день
1
Всего установок
5
Оценки
0 0 0
Версия
1.0
Создан
10.09.2024
Обновлён
10.09.2024
Лицензия
MIT
Работает на

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.