Reddit Server Error Banner Remover

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

Tính đến 10-09-2024. Xem phiên bản mới nhất.

Tác giả
KingHenry2K
Đánh giá
0 0 0
Phiên bản
1.0
Đã tạo
10-09-2024
Đã cập nhật
10-09-2024
Size
2 KB
Giấy phép
MIT
Áp dụng cho

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.