8chan Collapsible Thread Chains (Toggle with Auto-Restore)

Make quote links collapsible with indented hierarchy, restore posts when toggled off

Fra 20.04.2025. Se den seneste versjonen.

Forfatter
ガキぺろぺろ
Vurderinger
0 0 0
Versjon
2.0.3
Lagd
19.04.2025
Oppdatert
20.04.2025
Size
9,7 kB
Lisens
MIT
Gjelder

8chan Collapsible Thread Chains (Toggle with Auto-Restore)

Disable InLine Reply from gear setting first before installing this script

A Tampermonkey/Greasemonkey userscript that enhances 8chan-style boards by allowing users to collapse and nest quote links, improving readability and making thread navigation more intuitive.

📌 Features

  • Collapsible Quote Chains
    Click any quote link (>>123456) or backlink to nest and display the quoted post inside the current one.

  • Auto-Restore System
    When a quoted post is collapsed and all reference links are closed, the original post is automatically restored to its original position.

  • Hierarchy Indentation
    Nested quotes appear with visual indentation and borders to clearly represent reply chains.

  • Restore Button for Moved Posts
    A "Restore" link appears where the post was moved from, letting users manually return it to its original place.

  • Toggle Styling
    Clicked quote links and backlinks highlight with a distinct color to indicate toggled state.

  • Lightweight Cloning
    If a post is already moved, additional references clone it rather than moving the post again.

  • Support for Backlinks and Quote Links
    Works for both forward and backward links (quote links and backlinks via .panelBacklinks).

  • Ctrl+Click Opens QR
    Holding Ctrl while clicking a quote link opens the Quick Reply (if supported by the board engine).

  • Auto-cleaning Backlink URLs
    Strips query strings from backlink hrefs for consistent behavior and compatibility.

🔧 Installation

Install with your favorite userscript manager:

Then add the script manually or install via GreasyFork (if published).

🌐 Supported URLs

🛠 Customization

You can tweak the styles in the GM_addStyle section to match your preferred aesthetic (e.g., border colors, indentation spacing).

💡 Tips

  • To collapse a post: Click on the quote link again after expanding it.
  • To restore a moved post: Use the inline "Restore" button or collapse all quote links referring to it.
  • Ctrl+Click for Quick Reply: Only works if the site's QR system supports it and qr.showQr is available.

📝 License

MIT License