[Userscript] PostModeMenu+

Posted under General

PostModeMenu+ adds additional options to the mode menu underneath the Search bar on the posts page. It also provides additional enhancements, including drag/select multiple posts and limiting concurrent network calls to reduce the likelihood of network errors.

Installation

Project page
Main script
Usage notes
Available modes
  • View (mandatory)
  • Edit
  • Tag script
  • Commentary
  • Vote up
  • Vote down
  • Unvote
  • Copy ID - Copies the post ID(s) to the clipboard.
  • Copy Short - Copies the post shortlink, e.g. post #1234
  • Copy Link - Copies the post HTTP link, e.g. post #1234
  • Favorite
  • Unfavorite
Drag/select

Available only in the additional modes, plus the Tag Script mode. Click and drag, releasing the mouse once all of the desired posts have been selected. The current mode action will then be applied to all selected posts.

Select only

When this mode is on, clicking posts or drag/selecting them will only leave posts in a selected state. The desired mode menu function is only activated after clicking the "Apply All" button. Additionally, All/None/Invert buttons have been provided to facilitate batch selection changes.

Network config

Limits the number of concurrent network calls to N (default is 5), in order to avoid getting HTTP 429 TOO MANY REQUEST ERRORS or other network errors. Additionally, if there are network errors, the specific posts where these errors occurred can be highlighted.

Settings

Settings can be modified from User Settings -> Userscript Menus -> PostModeMenu.

Final

Any suggestions or feedback is appreciated.

Latest edits

  • (2026-03-31)
    • Version 10
      • Update to latest library

Versions

Show
  • (2022-08-02)
    • Version 5 Initial release
  • (2022-08-19)
    • Version 6
      • Select only mode
      • Long text inputs
      • Network error highlights
  • (2022-08-27)
    • Version 7
      • Additional modes: Favorite, Unfavorite
      • Additional separators
      • Responsive rate limiting
  • (2023-11-02)
    • Version 8
      • Additional mode: Edit
  • (2025-12-16)
    • Version 9
      • Additional mode: Commentary
      • Revised GUI
  • (2026-03-31)
    • Version 10
      • Update to latest library

Updated by BrokenEagle98

Version 6 release
  • Additions:
    • Select only mode, where posts are selected first before processing them
      • All/None/Invert buttons for select only mode
    • Optional long search and tag script bars that span the entire screen
    • Optional highlight mechanism for posts when network errors occur
  • Changes:
    • Renamed upvote to vote up, and downvote to vote down, to avoid confusion with unvote
    • When in select only mode, posts are not unselected when changing between modes
    • However, posts are unselected when toggling the select only mode on/off
Version 7 release
  • Additions:
    • Additional modes: Favorite, Unfavorite
      • Copy Short - copies the post shortlink, e.g. post #1234
      • Copy Link - copies the post HTTP link, e.g. post #1234
    • Additional separators: colon, semicolon
    • Responsive rate limiting: reads the API limit sent back by Danbooru and adjusts accordingly
  • Changes:
    • Hide the script controls when an enabled mode is not selected
    • For copy short mode, it adds a space before "post"; for copy link, it adds a space before and after the link.
Version 9 release
  • Additions:
    • Additional modes: Commentary
      • Can load commentary from post
        • There is a user setting to make this automatic
      • Can load commentary from parent
      • Can load commentary from pool
    • Mode menu can be undocked
  • Changes:
    • "Select only" control is always shown
    • Can change the order of modes
    • Can group tags by category, like on the post page
    • Updated colors for light/dark mode
    • Now updates post previews directly
      • So it longer causes blacklist issues
      • Or removes any attached event handlers
    • Overrides the post score controls
      • Same advantage as updating the post preview directly
1