Skip to content

Instantly share code, notes, and snippets.

@Bhargav-Rao
Created May 29, 2017 21:01
Show Gist options
  • Save Bhargav-Rao/09d923c0d90f193cd8f4d0fab71213c4 to your computer and use it in GitHub Desktop.
Save Bhargav-Rao/09d923c0d90f193cd8f4d0fab71213c4 to your computer and use it in GitHub Desktop.
@DavidPostill
Copy link

And another one:

Art's Mod Message Templates

@Glorfindel83
Copy link

I've just written a userscript to 'refresh' the flag queue automatically and send a desktop notification when there are new flags. It's available here.

@Bhargav-Rao
Copy link
Author

@fredley
Copy link

fredley commented Jan 30, 2018

There is some mod-specific stuff in Porkchat, my Chrome/FF extension. This includes:

  • editing deleted messages
  • autocomplete of sites in TL
  • editing permissions from within the room dropdown menu

@samliew
Copy link

samliew commented Apr 4, 2018

Comment Flags Helper

  • Highlights flagged user comments in expanded posts
  • Always expand comments if post is expanded
  • Highlight common chatty keywords

@rjrudman
Copy link

rjrudman commented Apr 9, 2018

Socky.

A dashboard for detecting sock puppets. Grabs users found in /admin/show-user-votes/ and lists them as a table for comparison.

Displays:

  • Users found in /admin/show-user-votes/
  • Previous names
  • PII (click to load)
  • Activity graph, with an easy way to bulk compare users
  • Reputation log
  • Warning if the 'voting ring' graph is detected

Dashboard looks like this: https://i.stack.imgur.com/Wx94M.png

Source can be found here in a private repository. If you'd like access, feel free to ping me, and I'll add you to the repo

@rjrudman
Copy link

rjrudman commented Apr 9, 2018

@rjrudman
Copy link

Link user ids referenced in CM invalidation response

// ==UserScript==
// @name         Links for invalidated
// @version      0.1
// @author       You
// @match        https://stackoverflow.com/admin/cm-message/*
// @grant        none
// ==/UserScript==

$(function() {
    const messageCode = $('tr.msg.msg-user pre > code');
    const messageCodeHtml = messageCode.html();
    const replaced = messageCodeHtml
    .replace(/(\d+) - (\d+)\: invalidated (\d+) votes/g, '<a href="/users/$1" target="_blank">$1</a> - <a href="/users/$2" target="_blank">$2</a>: invalidated $3 votes')
    .replace(/invalidated (\d+) votes from (\d+) to (\d+)/g, 'invalidated $1 votes from <a href="/users/$2" target="_blank">$2</a> to <a href="/users/$3" target="_blank">$3</a>');
    messageCode.html(replaced);
});

@samliew
Copy link

samliew commented Apr 12, 2018

Mod User Quicklinks Everywhere

  • Adds user moderation links sidebar with quicklinks & user details (from Mod Dashboard) to user-specific pages
  • Adds quicklinks to user infobox in posts

@Bhargav-Rao
Copy link
Author

Deprecated list - use https://stackoverflow.com/c/moderators/q/37/13 instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment