Skip to content
Stack Overflow Moderation Userscripts
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Update issue templates Jun 9, 2018
images
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
ChatTranscriptHelper.user.js
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
DiscussedOnMeta.user.js
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
INSTALL.md
LICENCE Initial Commit Apr 4, 2018
LightboxImages.user.js Classlist is not an array Apr 12, 2019
MigrationHelper.user.js
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
README.md Update README.md 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
TooManyCommentsFlagQueueHelper.user.js
UserActivityNotifications.user.js Request only when necessary Feb 23, 2019
UserHistoryImprovements.user.js Support for SEDM Jun 20, 2019
UserInfoSidebar.user.js
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

README.md

Stack Overflow Moderation Userscripts

by Samuel Liew

Bug reports, Forks, and PRs welcome!

See also: Other Stack Overflow Userscripts


Recommended

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)
    screenshot

User Info Sidebar

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

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
    screenshot

User Review Ban Helper

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

Display Inline Comment Flag History

  • Grabs post timelines and display comment flag counts beside post comments. This also permalinks to comment in post timeline
    screenshot
  • Displays flags on comment hover
    screenshot
  • 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
    screenshot
  • You can now multi-select delete/undelete posts by deleted user
    screenshot
  • Improved deleted user page, linkify URLs
    screenshot
  • Additional helpful links below for IP & username cross-referencing
    screenshot
  • 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
    screenshot

User History Improvements

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

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
    screenshot

User Social Media Profile Links

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

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.
    screenshot
  • Dropdown transformed with Chosen, allowing for text search of site names
    screenshot

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
    screenshot
  • 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
    screenshot
  • 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)
    screenshot

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
    screenshot
  • Badge links to user's flag history (opens in a new window)
  • Non-mods: Can view own flag badge on main profile page
    screenshot

Post Ids Everywhere

  • Inserts post IDs everywhere where there's a post or post link (for copying/easier x-referencing/etc)
    screenshot
  • Useful for copying ID of answer, for converting an answer to a comment of the target post
    screenshot
  • 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)
    screenshot
  • 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
    screenshot

Expand Short Links

Can you see the link in the post below?
screenshot

  • 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
    screenshot

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
    screenshot
  • On arrow mouseover, displays the Meta posts
    screenshot
  • 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
    screenshot

Election Supporter Flairs

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

Searchbar & Nav Improvements

  • (Parent) Option to search child meta
    screenshot

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

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

  • (Meta) Adds link to parent in left sidebar
    screenshot

  • Advanced Search Helper when search box is focused
    screenshot

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

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

    • Toggle from search results page
      screenshot

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)


screenshot

  • 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


screenshot

Comment Flag Type Colours

  • Works on user's comment flag history group page


screenshot

  • Works on user's mod comment history pages


screenshot

  • Works on mod comment flag queues


screenshot

Reduce Clutter

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

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
    screenshot
  • For mod queues, additional info (30-day revision history) is also retrieved
    screenshot
  • Detects if post has any revisions after being flagged
    screenshot

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
    screenshot
  • 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
    screenshot
    screenshot

Chat-specific userscripts

Chat Room Info Annotations

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

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
    screenshot
  • Add history link to message actions popup if not found
    screenshot

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
    screenshot
  • 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)
    screenshot

Queue-specific userscripts

Comment Flags Helper

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

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
    screenshot
  • Comment left on answer:
    Please [don't post identical answers to multiple questions](https://meta.stackexchange.com/q/104227). Instead, tailor the answer to the question asked. If the questions are exact duplicates of each other, please vote/flag to close instead.

Options:

  • Duplicate Comment (text)

Not An Answer Flag Queue Helper

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

Too Many Comments Flag Queue Helper

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

Possible Vandalism Deletions Helper

  • Sort answers first

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

  • Recommend action based on post info
    screenshot

Possible Vandalism Comment Deletions Helper

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

Possible Vandalism Edits Helper

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

Miscellaneous

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

In-Beta

Mobile Moderator Pages

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

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
    screenshot
    screenshot
    screenshot

Chat Emojis

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