Skip to content
Stack Overflow Moderation Userscripts
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Update issue templates Jun 9, 2018
lib Update common.js Jun 3, 2019
AdditionalPostModActions.user.js New post layout Mar 12, 2019
ChatEmojis.user.js Fix #20 - positioning of autocomplete box Mar 9, 2019
ChatImprovements.user.js Separate function for applying new timestamps Jul 9, 2019
ChatMoreMagicLinks.user.js Bugfix Sep 12, 2018
ChatPagination.user.js Fix for mobile transcript pagination Feb 13, 2019
ChatRedactMessages.user.js Update ChatRedactMessages.user.js Mar 4, 2019
ChatRoomInfoAnnotations.user.js Update mod check Oct 25, 2018
ChatTranscriptsByDefault.user.js Don't parse chat room info links Oct 7, 2018
CommentFlagTypeColours.user.js Also work on question pages (for mods) Jun 18, 2019
CommentFlagsHelper.user.js Remove additional padding now that it's fixed Jun 14, 2019
CommentUndeleter.user.js Also check for new undelete link Mar 14, 2019
CommentUserColours.user.js important border to avoid being overridden by dark modes Sep 30, 2018
CreatePrivateModChatroom.user.js Button might not be orange on non-SO chat Mar 26, 2019
DeletedUsersHelper.user.js Fix for FF empty complex css, fix for flex on body Jul 10, 2019
DisplayInlineCommentFlagHistory.user.js Only show comment flag status if not active Feb 15, 2019
DuplicateAnswersFlagsHelper.user.js Set update and download targets to master Jun 1, 2019
ElectionSupporterFlairs.user.js Exclude several user tabs May 23, 2018
ExpandShortLinks.user.js Do not parse links with no text content Jun 28, 2019
FetchQuestionStats.user.js Update FetchQuestionStats.user.js Feb 1, 2019
FetchVoteCountsAgain.user.js Update to work in reviews Apr 8, 2019
FindUsersAdditionalInfo.user.js Override width set by other userscript May 18, 2019
HideViewedPosts.user.js Moderator check May 15, 2018
HoverExpandNavigationLinks.user.js Bugfix Jun 13, 2019
LICENCE Initial Commit Apr 4, 2018
LightboxImages.user.js Classlist is not an array Apr 12, 2019
MobileModeratorPages.user.js Update MobileModeratorPages.user.js Oct 20, 2018
ModFlaggerStats.user.js Set update and download targets to master Jun 1, 2019
ModPopupDialogImprovements.user.js Revert add comment focus experiment Dec 18, 2018
ModUserQuicklinksEverywhere.user.js Update ModUserQuicklinksEverywhere.user.js Apr 7, 2019
ModeratorHistoryImprovements.user.js Add more CM-only cases Jun 27, 2019
NetworkElectionSchedule.user.js Ignore inserting year for es. Mar 7, 2019
NoOneboxesInChat.user.js Preload images Mar 11, 2019
NoOneboxesInChatTranscripts.user.js Expose hideOneboxes function. Add functionality to re-hide onebox Oct 9, 2018
NotAnAnswerFlagQueueHelper.user.js Set update and download targets to master Jun 1, 2019
PersonalModMessageHistory.user.js Update for new ui Apr 27, 2019
PossibleVandalismCommentDeletionsHelper.user.js Rename PossibleVandalismCommentDeletionsHelper to PossibleVandalismCo… Jun 8, 2018
PossibleVandalismDeletionsHelper.user.js Set update and download targets to master Jun 1, 2019
PossibleVandalismEditsHelper.user.js Fix incorrect day calcuation Aug 11, 2018
PostBanDeletedPosts.user.js Bugfix Apr 2, 2019
PostHeadersQuestionToc.user.js Update for new sidebar UI Apr 29, 2019
PostIdsEverywhere.user.js Fix issue with tag popup rss subscribe modal Jun 5, 2019
PostTimelineFilters.user.js Fix for timeline v2 Jun 30, 2019 Update Jun 12, 2019
RedactedScreenshots.user.js Needs to be on top of the now-opaque waffle bar Jun 4, 2019
ReduceClutter.user.js Remove Products menu in the top bar Jun 24, 2019
RefreshEmptyModQueue.user.js Increment refresh duration if countdown started Apr 7, 2019
RejectedSuggestedEdits.user.js Move backoff functions to common library Jan 10, 2019
ReviewQueueHelper.user.js Temporarily disable manual audit check Jul 9, 2019
SOMU-options.user.js Support for bool options, and ReviewQueueHelper Jun 8, 2019
SearchbarNavImprovements.user.js Fix for missing search submit button Jun 13, 2019
ShowDeletedMessagesInChat.user.js Bugfix for mobile transcripts Feb 13, 2019
StackExchangeDarkMode.user.js Remove global opacity change Jul 17, 2019
StackExchangeWiderMode.user.js Fix for Teams Jun 30, 2019
StackOverflowDarkMode.user.js Move to StackExchangeDarkMode.user.js Jun 12, 2019
SuspiciousVotingHelper.user.js Bold dates in custom flag text Mar 28, 2019
UserActivityNotifications.user.js Request only when necessary Feb 23, 2019
UserHistoryImprovements.user.js Support for SEDM Jun 20, 2019
UserReviewBanHelper.user.js Add ban history to ban lookup form Jun 28, 2019
UserSocialMediaProfileLinks.user.js Create UserSocialMediaProfileLinks.user.js Jul 8, 2018
UserlinkTooltips.user.js Bugfix Apr 4, 2019

Stack Overflow Moderation Userscripts

by Samuel Liew

Bug reports, Forks, and PRs welcome!

See also: Other Stack Overflow Userscripts


These are highly recommended for moderators. Minor changes to the UI/defaults makes your mod life easier by a huge amount (saving clicks, or having to hunt for a particular link/mod feature, or displaying more info upfront). Click these to jump to their descriptions below:

These are highly recommended for everyone because they are too awesome:

General userscripts

Mod User Quicklinks Everywhere

  • Adds user quick links under display name in posts (opens in new tabs)

User Info Sidebar

  • Adds user moderation collapsable left-sidebar to user-specific pages: quick links & selection of user details from Mod Dashboard

Mod Popup Dialog Improvements

  • Delete moved comments is checked by default
  • Prevent Mod actions in Flag Queue redirecting to post - instead opens in a new tab

Personal Mod Message History

  • Displays link to switch to your recently sent mod messages in the inbox dialog

User Review Ban Helper

  • Display users' prior review bans in review (links to review ban history), ban quicklink
  • Insert review ban/unban button in user review ban history page
  • If ban quicklink is clicked from a review, auto user lookup if user ID passed via hash, auto-fill reason with review URL
  • Link ban counts in table to user's review history

Display Inline Comment Flag History

  • Grabs post timelines and display comment flag counts beside post comments. This also permalinks to comment in post timeline
  • Displays flags on comment hover
  • Clear CommentFlags cache on weekends
  • On post timeline page, if comment is found in URL, also expand flags on the comment
  • Fixes display style on comment flags expansion (jQuery show/hide defaults to block, breaking table)

Deleted Users Helper

  • Redirects user 404 pages to main profile
  • Linkify deleted users, show display name on mouseover
  • You can now multi-select delete/undelete posts by deleted user
  • Improved deleted user page, linkify URLs
  • Additional helpful links below for IP & username cross-referencing
  • When PII is loaded on user mod page, format the info in a textarea for easier copying into delete/destroy reason so it will look like this

User History Improvements

  • Fixes broken links in user annotations, and minor layout improvements

Post Ban Deleted Posts

  • When user posts on Meta Stack Overflow regarding a post ban, fetch and display deleted posts (must be mod) and provide easy way to copy the results into a comment

User Social Media Profile Links

  • When user PII is loaded, add links to social media profile

Refresh Empty Mod Queue

  • If current mod queue is empty, reload page occasionally
  • Also puts the flag count back in the navbar in case you miss it or need a link to the empty flag queue for some reason

Migration Helper

  • Dropdown list of migration targets displaying site icon/logo/header images and links to the selected site's on-topic page and mod list. Displays additional information for custom flagger for selected network site.
  • Dropdown transformed with Chosen, allowing for text search of site names

Suspicious Voting Helper

  • Assists in building suspicious votes CM messages
  • Highlight same users across IPxref table (hover/click to pin highlight)

Additional Post Mod Actions

  • Adds a menu of quick mod-actions instead of having to wait for mod menu to load and having to select items in the mod menu
  • The items in the menu are disabled/hidden depending on context, and also slightly different options based on whether it's a Q or A
  • Post dissociation link quickly composes a post dissociation request for post user with link of post inserted into dissociation message template

Post Timeline Filters

  • Inserts several filter options for post timelines, useful for old posts with humongous timelines
  • Hides daily summaries by default
  • Fixes display style on comment flags expansion (jQuery show/hide defaults to block, breaking table)

Mod Flagger Stats

  • On post hover in mod flag queue, get and display flaggers stats (via tooltip on flag badge):
    Reputation, Total Flags, Declined Flags, % Declined
  • Badge links to user's flag history (opens in a new window)
  • Non-mods: Can view own flag badge on main profile page

Post Ids Everywhere

  • Inserts post IDs everywhere where there's a post or post link (for copying/easier x-referencing/etc)
  • Useful for copying ID of answer, for converting an answer to a comment of the target post
  • When double clicked, opens post timeline in new tab

Redacted Screenshots

  • Anonymizes user links in posts and comments
  • Masks and hides user-identifing info on page (IPs and email addresses)
  • Redact button can be found fixed on the bottom-left of the screen

Hover Expand Navigation Links

  • On pagination dots "..." mouseover, adds additional 30 in-between links

Expand Short Links

Can you see the link in the post below?

  • Appends _link to short link texts in posts and comments so they can be easily seen and clicked on
  • Link is also bolded and color set to red
  • E.g.: Link . visually becomes ._link

Discussed On Meta

This userscript has only been tested on Tampermonkey, and requires additional permissions for cross-site requests to Meta as it's on a different domain. Simply click on "Always allow" when prompted.

  • For questions, displays info if it's discussed on Meta
  • On arrow mouseover, displays the Meta posts
  • Works for posts with IDs >= 100000 only to prevent false positives

Comment User Colors

  • Unique border colour for each user in comments to make following users in long comment threads easier
  • Only appears if user has more than one comment on the page

Election Supporter Flairs

  • Flair users who voted in the elections...
    • mods: when you were elected
    • users: for the latest election

Searchbar & Nav Improvements

  • (Parent) Option to search child meta

  • (Meta) New search bar on meta sites, and option to search parent site

  • (Parent) Adds link to child meta in left sidebar

  • (Meta) Adds link to parent in left sidebar

  • Advanced Search Helper when search box is focused

    • Fill-in your watched/ignored tags!
    • Tag autocomplete
    • Username autocomplete
    • Useful add-ons!
  • Saved Searches

    • Toggle from search results page
    • View list via toggle button in Advanced Search Helper
  • Auto Refresh

    • Toggle from search results page

Post Headers & Question TOC

  • Sticky post headers to help when scrolling long posts / comment threads
    • User, revision history, post timeline links
    • Clicking on empty middle area scrolls to start of post (replaces URL hash)


  • Question Table of Contents of Answers in sidebar below Featured Posts module
    • Only shown when there are five or more answers
    • Answer score, accepted, user display name, indicates mods and deleted users, datetime
    • Sorted by current answer sort order (active/oldest/votes)
    • Clicking on answer links scrolls to start of post (replaces URL hash)
    • Toggle deleted answers in ToC


Comment Flag Type Colours

  • Works on user's comment flag history group page


  • Works on user's mod comment history pages


  • Works on mod comment flag queues


Reduce Clutter

  • Show comment vote/flag icons on comment hover
  • Reduces contrast of edited comment icon
  • Show "Edit" (tags) link only on tag list hover

Lightbox Images

  • Opens image links in a lightbox instead of new window/tab in main & chat

Fetch Vote Counts Again

  • Fetch vote counts for posts and enables you to click to fetch them again, even if you do not have sufficient rep
  • Also enables fetch vote counts on posts in mod flag queue

Fetch Question Stats

  • Display number of recent comments (in the last 30 days) on each post in question lists
  • For mod queues, additional info (30-day revision history) is also retrieved
  • Detects if post has any revisions after being flagged

Rejected Suggested Edits

  • Adds new page /review/suggested-edits/history/rejected
  • Adds link to above page via mod links page (/admin/links) as well as Suggested Edits tabs
  • has toggle date format (like post timelines) and pagination
  • anonymous users are easy to spot because they are unlinked
  • click on left arrow toggle to display review summary
  • anonymous edits reviews are preloaded so we can detect whether they have spam rejection reasons

Chat-specific userscripts

Chat Room Info Annotations

  • Display users' annotation count in chat room general info tab

Chat Transcripts By Default

  • Rewrites chat room links in comments to chat transcript, to avoid joining the room

Chat Transcript Helper

  • Replaces timestamps in chat transcripts with your local time

No Oneboxes in Chat Transcripts

  • Collapses oneboxes from chat transcripts, bookmarked conversations (live chat untouched)
  • Click to display onebox

No Oneboxes in Chat

  • Collapses oneboxes from live chat, chat transcripts, bookmarked conversations
  • Click to display onebox
  • Has exposed function to work together with Show Deleted Messages in Chat userscript

Chat More Magic Links

  • Some magic links are not parsed in Stack Overflow Chat. This script parses and submit expanded magic links via an edit to your latest message.
  • List of additional magic links handled by this userscript:
    • [mcve]
    • [help]
    • [help/on-topic]
    • [help/dont-ask]
    • [help/behavior]
    • [meta-help]
    • [tour]
    • [chat]

Show Deleted Messages in Chat

  • Show deleted messages from live chat, chat transcripts, bookmarked conversations
  • Works with No Oneboxes in Chat userscript

Chat Redact Messages

  • Add "Redact + Purge + Delete" button to message history page
  • Add history link to message actions popup if not found

Create Private Mod Chatroom

  • One-click button to create private mod chatroom from user chat profile, and then grants the user write access immediately after
  • When entering this room, add view chat profile and superping buttons in message
  • Clicking on superping button will generate a superping with instructions on how to join the room (because inbox only links to room transcript, and new users may not know what to do)

Queue-specific userscripts

Comment Flags Helper

  • Highlight common chatty/rude keywords
  • Some style improvements
  • Rename "dismiss" link to "decline" with hover warning color
  • Add "dismiss + delete" option on hover
  • Always expand comments if post is expanded (includes deleted posts), and highlights flagged user comments in expanded posts
  • Quick purge all comments link (with confirmation prompt)
  • Option to review from the bottom of the page (so page won't jump around after handling each flag)
  • Option to hide comments posted within the past day

Duplicate Answers Flags Helper

  • Add action button to delete AND insert duplicate comment at the same time, saving you from deleting and then having to open up a new tab to manually insert comment
  • Comment left on answer:
    Please [don't post identical answers to multiple questions]( Instead, tailor the answer to the question asked. If the questions are exact duplicates of each other, please vote/flag to close instead.


  • Duplicate Comment (text)

Not An Answer Flag Queue Helper

  • Inserts several sort options for the NAA / VLQ / Review LQ Disputed queues

Too Many Comments Flag Queue Helper

  • Auto-expand unhandled posts
  • Display post info at the bottom
  • Inserts quicklinks to "Move comments to chat + delete" and "Delete all comments"
  • Confirmation displayed after successful response from server (don't forget to mark as helpful)

Possible Vandalism Deletions Helper

  • Sort answers first

  • Display post score, number of undeleted answers, post age

  • Recommend action based on post info

Possible Vandalism Comment Deletions Helper

  • Display deleted comments and user who deleted the comments
  • UI is similar to commenttoomanydeletedrudenotconstructiveauto queue + Comment Flags Helper

Possible Vandalism Edits Helper

  • Similar to the above, display revision count, post age
  • Does not recommend as edits still need to be reviewed manually


SOMU Options

  • Required for userscripts that allows further customization
  • See options under each userscript above for info on what is available
  • Options sidebar will appear on pages that the respective userscripts are running on


Mobile Moderator Pages

  • Before/After (screenshot redacted using RedactedScreenshots, and also running CommentFlagsHelper and CommentFlagTypeColours)
  • Use new responsive menu

Stack Overflow Dark Mode

Stack Exchange Dark Mode

  • Dark theme for Stack Exchange.
  • Some elements have reduced opacity until focused/mouseover (sidebar modules/images/timestamps). Some important colours are retained.
  • Code highlighting in darker colours

Chat Emojis

  • Allows users to insert unicode emojis into chat
  • If chat messages contains just a single emoji, increase size
You can’t perform that action at this time.