Discourse - Collapse Boosts

Collapse Discourse boosts: show first two by default, expand on hover, and display an “N+” counter when there are more.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
Pipecraft
1日のインストール数
0
累計インストール数
15
評価
1 0 0
バージョン
5.0.0
作成日
2026/04/07
更新日
2026/04/10
大きさ
5.21KB
ライセンス
MIT
対象サイト

Discourse - Collapse Boosts

By default, shows only the first two boosts on Discourse. When you hover the list, the remaining boosts smoothly expand, and an “N+” counter appears when there are more than two. Includes fade and delayed size changes to avoid jitter and layout shifts.

Changelog

  • v5.0.0
    • Improved mobile usability: constrain list height on small screens and enable scrolling
    • Added fallback for browsers without :has(): show a “+ more” hint after the second boost and reserve a clickable area to expand
    • Reduced hover jitter by delaying size/margin changes during collapse/expand
  • v4.0.0
    • Added “N+” counter when there are more than 2 boosts; counter hides on hover
    • Introduced delayed sizing: opacity updates immediately, size and padding collapse after a short delay to prevent hover jitter
    • Collapsed state compensates for parent flex gap with negative margin to remove empty spacing
    • Expand/collapse uses fade-in with instantaneous size toggling to avoid “pop-in” effects

More Useful Scripts

🏷️ UTags - Add User Tags to Links

  • Link: Greasy Fork · Greasy Fork · ScriptCat · GitHub
  • Features: Add custom tags and notes to user, post, video and other links
  • Highlights: Support special tag filtering (like spam, block, clickbait, etc.), data export/import, auto-mark viewed posts
  • Supported Sites: V2EX, X(Twitter), Reddit, GitHub, Bilibili, Zhihu, Linux.do, Youtube and 50+ websites
  • Description: Super useful tag management tool for adding tags to forum users or posts, making it easy to identify or block low-quality content

🧰 UTags Advanced Filter

  • Link: Greasy Fork · ScriptCat · GitHub
  • Features: Real-time filtering and hiding of scripts on GreasyFork
  • Highlights: Available as both a userscript and a browser extension
  • Supported Sites: Greasy Fork
  • Description: A tool that supports real-time filtering and hiding on GreasyFork, available in userscript and browser extension versions

⚡ UTags Shortcuts

  • Link: Greasy Fork · ScriptCat · GitHub
  • Features: Per-site grouping, icon support, floating or sidebar navigation panel
  • Highlights: Floating/Sidebar modes, URL/JS script support, visual editor, keyboard shortcuts
  • Supported Sites: All websites
  • Description: A powerful userscript that streamlines your browsing workflow with a customizable navigation panel for quick access to favorite links and scripts

🔗 Links Helper

  • Link: Greasy Fork · ScriptCat · GitHub
  • Features: Open third-party website links in new tabs, parse text links into hyperlinks
  • Highlights: Support custom rules, parse Markdown and BBCode formats, convert image links to image tags
  • Supported Sites: Universal for all websites, including Google, YouTube, GitHub, V2EX, etc.
  • Description: Enhance link browsing experience, automatically process various link formats for more convenient web browsing

🔍 Find Scripts For This Site

  • Link: Greasy Fork · ScriptCat · GitHub
  • Features: Quickly find scripts for the current site across multiple repositories
  • Highlights: Settings dialog, real-time sync, smart domain extraction
  • Supported Sites: All websites
  • Description: A user script to quickly find scripts for the current site across multiple repositories, now with a settings dialog and real-time sync across tabs

🖼️ Universal Image Uploader

  • Link: Greasy Fork · ScriptCat · GitHub
  • Features: Paste/drag/select images to batch-upload to Imgur/Tikolu/MJJ.Today/Appinn
  • Highlights: Auto-copy to Markdown/HTML/BBCode/Link, supports site buttons & local history, SPA-compatible
  • Supported Sites: All websites
  • Description: A user script that lets you paste, drag, or select images and batch-upload them to various providers, then auto-copy the result in your preferred format