Greasy Fork 支持简体中文。

Bluesky Search External Link Filter

Hides Bluesky Search posts containing external links.

作者
Cochinver
今日安裝
0
安裝總數
0
評價
0 0 0
版本
1.5
建立日期
2025-02-20
更新日期
2025-02-20
尺寸
1.5 KB
授權條款
未知
腳本執行於

remove posts with external links from bluesky search

ai:

Bluesky Search External Link Filter

Overview

This user script hides posts containing external links on Bluesky Search (bsky.app/search). It ensures that only posts linking to content within Bluesky remain visible, reducing clutter from external sources.

Features

  • Automatically hides posts with links pointing outside bsky.app.
  • Runs only on Bluesky Search (https://bsky.app/search*).
  • Efficient mutation observer ensures real-time filtering as new posts load.
  • Non-destructive hiding (CSS-based) allows easy re-enabling via dev tools.

Installation

  1. Install a user script manager:

    • Violentmonkey (Recommended)
    • Tampermonkey (Optional)
    • Greasemonkey (Optional)
  2. Click "Create a new script" in your user script manager.

  3. Copy and paste the script.

  4. Save and enable the script.

How It Works

  • The script scans for posts under the Bluesky search page structure.
  • It checks each post for external links (i.e., links not containing bsky.app).
  • If an external link is found, the script hides the post.
  • A mutation observer ensures new posts are checked dynamically.

Notes

  • The script does not remove posts, only hides them using display: none.
  • You can inspect hidden posts via browser dev tools (F12 → Elements tab).

License

This script is open-source and provided without warranty. Modify and share freely!