GithubHelp home page GithubHelp logo

samliew / so-mod-userscripts Goto Github PK

View Code? Open in Web Editor NEW
121.0 6.0 33.0 8.75 MB

Stack Overflow Moderation Userscripts

License: MIT License

JavaScript 100.00%
stackoverflow stack-overflow userscript userscripts javascript

so-mod-userscripts's Introduction

Stack Overflow Moderation Userscripts

by Samuel Liew

Bug reports, Forks, and PRs welcome!


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:

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

Recommended chat userscripts:


General userscripts

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
  • On pagination dots "..." mouseover, adds additional 30 in-between links
    screenshot
  • Opens image links in a lightbox instead of new window/tab in main & chat
  • Anonymizes user links in posts and comments
  • Masks and hides user-identifying info on page (IPs and email addresses)
    screenshot
  • Redact button can be found fixed on the bottom-left of the screen
  • Removes unnecessary elements from the UI
    • Show comment vote/flag icons only on comment hover instead of all the time
    • Reduces contrast of edited comment icon
      screenshot
    • Show "Edit" (tags) link only on tag list hover
      screenshot
    • Hides announcement bar containing keywords like "podcast"
  • See comments in userscript source for more info
  • (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
  • Instant Filter Toggles

    • Toggle from search results page
      screenshot
  • 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
  • Unlock the max-width of all Stack Exchange sites and utilize your wide screen
  • Change your preferred width size in source code
  • Responsive print styles for all sites on the network, as well as chat and chat transcripts
  • Strips out unnecessary information from the page only when printing, leaving just the main content
  • Allows you to retract pending post flags from your flag history page
  • Notifies you if you have any declined flags in the past few days
  • Batch-move saved posts between private lists
  • Undo button when unsaving a post
  • Quick move dropdown after saving in Q&A
  • Adds site names to link in Hot Network Questions sidebar module
  • Links open in new tab/window

Q&A userscripts

  • 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
  • Able to quickly dispute or comment lock a post with custom number of days, as well as unlock
  • Quickly destroy users (with <200 rep) if they are posting spammy content (post age <30 days) (requires confirmation, 5-second throttle)
  • Post dissociation link quickly composes a post dissociation request for post user with link of post inserted into dissociation message template
  • (Stack Overflow) assists with re-duping of old questions closed with the old duplicate notice
  • (Meta Stack Overflow) one-click closing, deleting questions as off-topic, and posting canned comment
  • Similar to the above, but places the buttons under each post menu (above comments)
  • Rewrites chat room links to chat transcript in Q&A comments, to avoid joining the room directly

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
  • Fetch details about questions from the API
  • See who hammer-duped a question, or which mod closed it, and which close reason
  • Comments preview on hover
  • Mini images, tables, code snippet
  • 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
  • Experiment to hide all post scores until you have voted for the post
  • Does not hide post scores for own posts, as well as locked or deleted posts.
  • 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
  • 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)
    • Option to toggle visibility of deleted answers (visible to 10k rep users)


screenshot

  • Replaces the link text in comments and posts with the full question title, and adds post info in the title attribute
  • Works in chat & chat transcripts too
  • 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
  • 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
  • Hide all user reputation on the site
  • Remove your referral user id when copying a post share link
  • Add post menu item to send request to OAI Detector to get probability of AI-generated content
  • Add post menu item to trawl through your votes pages to find the date/time you voted for a post

Comment Moderation

  • 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

  • Allows moderators to undelete comments deleted by any user, including ex-mods and Community user
  • 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
  • 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)

Better comments layout for easier readability and moderation.

  • Reduce comment body font-size to 96%
  • Comment meta-text is on a new line, font-size reduced to 90%
  • Usernames in comments are italicized
  • Deleted comment info is floated right to keep comments compact instead of taking up a new line
  • Delete links are floated right (to make it consistent with Undelete links)
  • When mouse is over comments section, show faint preview of all delete links
  • Comment hover background
    screenshot

User Moderation

  • 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
  • Improvements for /admin/find-users
  • Adds a message menu to userinfo boxes
  • Select from usual mod message or CM message templates
  • Selected templates are automatically selected on landing on the new message page
  • Adds user quick links under display name in posts (opens in new tabs)
    screenshot
  • Assists in building low-quality-questions mod messages.
  • For SO Meta only, fetch and display user's deleted posts in markdown format.
    screenshot
  • Display Windows notification when user page is open and user has new activity (new post, new comment, new edit, etc.)
  • Fixes broken links in user annotations, and minor layout improvements
    screenshot
  • Adds user moderation collapsable left-sidebar to user-specific pages: quick links & selection of user details from Mod Dashboard
    screenshot
  • On user profile pages, expands user network links menu and add chat profile links
  • Assists in building suspicious votes CM messages
  • Highlight same users across IPxref table (hover to highlight, click to pin highlight)

Reviews Moderation

  • 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
  • Keyboard shortcuts for review action buttons
  • Keyboard shortcuts for popup action dialogs (close, flag, delete, reject edit)
  • Auto-focus submit button when option selected in popup action dialogs (e.g.: so you can go "2 > 2 > space" to submit)
  • Automatically skips review audits
  • Esc goes back a previous dialog pane
  • More options available when SOMU Options userscript is installed
  • 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

Mod Improvements & New Tools

  • Expands all sections
  • Adds question or answer filters to Delete votes page
    screenshot
  • Before/After (screenshot redacted using RedactedScreenshots, and also running CommentFlagsHelper and CommentFlagTypeColours)
    screenshot
  • Use new responsive menu
    screenshot
  • 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
  • Better UI for recent moderator flag handling history
  • Automatically updates every 30 seconds
  • Displays link to switch to your recently sent mod messages in the inbox dialog
    screenshot
  • 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

Mod Queue-specific userscripts

  • 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
  • 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)
  • Inserts several sort options for the NAA / VLQ / Review LQ Disputed queues
    screenshot
  • Display deleted comments and user who deleted the comments
  • UI is similar to commenttoomanydeletedrudenotconstructiveauto queue + Comment Flags Helper
    screenshot
  • Sort answers first

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

  • Recommend action based on post info
    screenshot

  • Similar to the above, display revision count, post age
  • Does not recommend as edits still need to be reviewed manually
  • 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

Chat UI & Chat Moderation

  • Allows users to insert unicode emojis into chat
    screenshot
  • If chat messages contains just a single emoji, increase size
    screenshot

Works with "No Oneboxes In Chat" and "Stack Exchange Dark Mode".

  • New responsive user list displaying usernames and total count
  • Timestamps on every message in live chat
  • Use tiny signatures and avatars only
  • Mods with diamonds in signatures
  • Message parser (smart links and link expander)
  • Minimize room description and room tags (hover to expand)
  • Topbar with live inbox notifications and chat domain switcher
  • Link to rejoin starred rooms
  • Expand starred messages in sidebar on hover and on print
  • Starred messages are now scrollable instead of having to click on "show more"
  • On mouseover user signatures or mentions, highlight occurences of same user's links and mentions on page
  • Room owner changelog in access info page
  • Add transcript and room owners links above user list
  • Print styles for live chat and transcripts (for printing to PDF with clickable links)
  • (Mobile) font size increase
  • and more...
  • 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]
  • Do not install if you have ChatImprovements as it already includes this feature
  • Adds pagination to user's recent messages page
  • Add "Redact + Purge + Delete" button to message history page
    screenshot
  • Add history link to message actions popup if not found
    screenshot
  • Display users' annotation count in chat room general info tab
    screenshot
  • Replaces timestamps in chat transcripts with your local time
  • 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
  • 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
  • Do not install if you have NoOneboxesInChat, as it already includes this feature
  • Collapses oneboxes from chat transcripts, bookmarked conversations (live chat untouched)
  • Click to display onebox
  • Show deleted messages from live chat, chat transcripts, bookmarked conversations
  • Works with No Oneboxes in Chat userscript

Miscellaneous

  • 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
  • Flair users who voted in the elections...
    • mods: when you were elected
    • users: for the latest election
      screenshot

so-mod-userscripts's People

Contributors

certainperformance avatar codygray avatar dependabot[bot] avatar double-beep avatar geisterfurz007 avatar gparyani avatar hyper-neutrino avatar kamil-tekiela avatar lunarwatcher avatar machavity avatar makyen avatar mebeim avatar mjpieters avatar oaphi avatar purplemagick avatar rjrudman avatar rschrieken avatar ryanmentley avatar samliew avatar theharmonicrealm avatar zeeveez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

so-mod-userscripts's Issues

Disable keyboard shortcuts for ReviewQueueHelper

Working in review queues with your userscript is much more comfortable due to the quicklinks. But from time to time, when writing a comment that contains numbers, one of the quicklinks is randomly triggered - I haven't found out a precise pattern besides the numbers. It would be cool if there was any way to disable the keyboard shortcuts, such that this happens no more.

Add suspend button to mod flag queue

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
This script will add a suspend button near the post owner username in the mod flag review queue.

Describe alternatives you've considered
None

Additional context
When the button is clicked the moderator will be prompted for a suspension duration and the user will be suspended from the site for the selected duration.

cc: @samliew

Hyperlinks in comments broken when filtering by comments

Describe the bug
A bit difficult to describe, screenshots are more useful.

Here's what the flagged comment looks like when filtering to 'not relevant' comments:

image

And editing it:

image

That's not the actual content of the comment, however. Visiting the post, the comment looks like this:

image

This has suspiciously happened with the re-naming of comment flags, so perhaps that's a reason.

This happens for every comment with a link in it

[Post Timeline Filters] votes only filter

I love the filters, but find myself looking for a 'votes only' filter, when reconstructing, say, sock voting patterns.

Right now, all the filters given remove voting, so the only option to look at the votes is to use the unfiltered Show All option. Which, with a busy history of commenting, editing or flagging, can be hard to scan for just the votes.

So, next to 'Hide Votes', can we have a 'Votes only' filter?

I imagine this is as simple as adding

            case 'only-votes':
                filterFn = function(i, el) {
                    const eType = $(el).find('span.event-type').text();
                    return eType == 'votes';
                };
                break;

and adding

                <a data-filter="only-votes">Votes</a>

to $filterOpts.

Add a few additional patterns to CommentFlagsHelper to look for downvote comments

Is your feature request related to a problem? Please describe.
Can orange highlighting be added to "downvote", "downvoter", "downvoted" (with and without spaces between "down" and "vote") and the "up-?voted?" pattern be modified to support the space as well. These are in CommentFlagsHelper.user.js

Describe the solution you'd like
I'd like these voting terms to be highlighted

Additional context
I'm not good at efficient regexes. I could copy the up-?voted? pattern, but I don't usually see the "downvoted" ones hyphenated, usually they are spaced. It may make sense to check for both a space or a hyphen though.

Keyboard shortcuts don't work from the numericpad

Describe the bug
When reviewing with keyboard shortcuts I use the numeric keyboard instead of the top row of number keys on the keyboad. The numeric keys do nothing.

To Reproduce
Steps to reproduce the behavior:

  1. Enable numlock (if you are on a laptop /small keyboard)
  2. Review an item
  3. Click the desired number on the keypad
  4. nothing happens

Expected behavior
Both the top lever numerkeys as well as the numeric keys need to be bound to the appropriate action

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version 74.0.3729.169

[Stack Exchange Dark Mode] Chat reply messages to self aren't highlighted

Describe the bug
When a user replies to a message that you posted and you hover over it with the cursor, the highlight applied to the message replied to isn't visible.

To Reproduce
Steps to reproduce the behavior:

  1. Post a message
  2. Have a user reply to the message
  3. Mouse over the reply
  4. The message replied to isn't highlighted

Expected behavior
The message that was replied to should be highlighted.

Screenshots
In the below screenshots you can see the highlighted message from the down arrow to the left of it, cursor wasn't captured.

Expected functionality:
image

Actual functionality:
image

Desktop (please complete the following information):

  • OS: Windows 10 Home
  • Browser: Google Chrome
  • Version: Version 76.0.3809.100 (Official Build) (64-bit)

Additional context
Other users replies are highlighted, only your own messages aren't.

Hover expand navigation links apparently adds a shortcut that incorrectly overrides one in Firefox

On post search results pages, if I press (I'm on Mac but this is probably the same issue on Windows with ctrl+/) command+/, the shortcut to go backward/forward a page on Firefox, instead of going back a page the search results page number increases or decreases by one.

Can this be changed to only trigger if just the arrow key is pressed, so if command or control or another button is pressed at the same time the browser's command will trigger rather than the shortcut on the website?

I'm on Firefox 74.0, which is up to date. I don't think I have seen this happen before, but its nature makes it generally not very noticeable.

Thanks!

Add a button to add an auto-comment in the LQP review

Many items in the LQP review queue are often code-only answers which are incorrectly flagged by other users. I am just bored to click add comment > find the an auto-comment > insert > add it.

I suggest to add a button somewhere to automatically add an auto-comment (could be a code-only, an NAA or even a VLQ, since the Recommend Deletion ones are very poor). These comments can be customized by the user.

ChatMoreMagicLinks - Edits and messes up Oneboxing for certain posts

Tried to onebox the meta post:

https://meta.stackoverflow.com/questions/349834/mcve-shortcut-link-in-chat

Only to find it edited by the user script into:

<div class="onebox ob-post"><div class="ob-post-votes" title="This question has a score of 55.">55</div><img class="ob-post-siteicon" src="//meta.stackoverflow.com/content/Sites/stackoverflowmeta/img/apple-touch-icon.png" title="Meta Stack Overflow" width="20" height="20"><div class="ob-post-title">Q: <a rel="noopener noreferrer" style="color: #4E82C2;" href="//meta.stackoverflow.com/questions/349834/mcve-shortcut-link-in-chat">MCVE shortcut link in chat</a></div><p class="ob-post-body"><img class="user-gravatar32" src="https://www.gravatar.com/avatar/ec430cc01ef4cf4ae63ebbe9e8596f72?s=128&amp;d=identicon&amp;r=PG" title="Code-Apprentice" alt="Code-Apprentice" width="32" height="32">Many of the shortcut links to help topics work in chat, including [ask], [answer], [main], and [meta]. This is a very useful feature. However, [Minimal, Complete, and Verifiable example](stackoverflow.com/help/mcve) does not work. Can we get the [mcve] shortcut in chat? While you are at it, enable the help/* links as well.
</p><div class="ob-post-tags"><a rel="noopener noreferrer" href="//meta.stackoverflow.com/questions/tagged/feature-request"><span class="ob-post-tag" style="background-color: #F7FDFF; color: #566E76; border-color: #566E76; border-style: solid;">feature-request</span></a> <a rel="noopener noreferrer" href="//meta.stackoverflow.com/questions/tagged/chat"><span class="ob-post-tag" style="background-color: #F7FDFF; color: #566E76; border-color: #566E76; border-style: solid;">chat</span></a> <a rel="noopener noreferrer" href="//meta.stackoverflow.com/questions/tagged/help-center"><span class="ob-post-tag" style="background-color: #F7FDFF; color: #566E76; border-color: #566E76; border-style: solid;">help-center</span></a></div></div>

Tested sandbox link:
https://chat.stackoverflow.com/transcript/message/42615577#42615577

Reproduced in both Firefox and Chrome.

But not able to repro for other posts.

Contrast too low, especially on low-brightness settings

This is about the dark mode script.

Is your feature request related to a problem? Please describe.
There is some excessively low contrast in some areas. The color for a lot of the text (i.e. the one used in the body of posts and many other areas) is too dark to be very readable with the background, which is not extremely dark. Another thing: the flag icon to report comments (when not hovered over) is almost invisible.

This is not a big problem on high brightness, but, as it is a dark mode, it should be easy to read on low brightness, where it is very significant.

Examples of low contrast

See post body, comment, and flag icon:

Body of post, comment text, and flag icon are low-contrast

Another thing: the color of links in some areas (I noticed it when uploading a picture) is the same as the general text color:

Link color is no different from text

Thanks! This is a cool idea.

The diamond topbar item is missing.

Describe the bug
The moderator message topbar does not show.

To Reproduce
Steps to reproduce the behavior:

  1. Install the PersonalModMessageHistory.user.js
  2. Edit the script and remove the moderator check
  3. Go to homepage
  4. The diamond topbar item is missing.

Expected behavior
Expected a diamond item in the topbar

Desktop (please complete the following information):

  • OS: Mac
  • Browser Chrome

Additional context
The diamond topbar item is missing.

cc: @samliew

Low contrast date text with Chat Improvements in The Restaurant

Describe the bug
With the userscript Chat Improvements, the text color of times on messages in the Restaurant at the End of the Universe and other Sci-Fi rooms (and possibly rooms on other sites) is changed from white text on black to dark gray and unreadable text on black.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Restaurant at the End of the Universe or other Sci-Fi chat room with Chat Improvements on.
  2. Look at a message with a timestamp box on the transcript or in the room.

Expected behavior
This doesn't happen in private browsing, where the script is turned off.

Screenshots
In room:
no contrast in the room
In transcript:
no contrast in the transcript
Without userscript:
high contrast without the script

Desktop (please complete the following information):

  • OS: MacOS 10.15
  • Browser: Firefox
  • Version: 70.0.1

Thanks!

Background inverted in The Restaurant at the End of the Universe by Chat Improvements

Describe the bug
With the userscript Chat Improvements, the background image on the Restaurant at the End of the Universe and other Sci-Fi rooms is inverted. Happens in Unix & Linux chat, too.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Restaurant at the End of the Universe with Chat Improvements on
  2. Look at the bottom of the page
  3. See the inverted colors

Expected behavior
This doesn't happen in other rooms.

Screenshots
It is inverted on the Restaurant:

And Unix (bottom screenshot is the normal appearance):

Desktop (please complete the following information):

  • OS: MacOS 10.15
  • Browser: Firefox
  • Version: 70.0.1

Additional context
nice script otherwise!

Allow me to type an @ or # or $ when the review helper script is active

Describe the bug
I tried to @-reply a user in a comment on a review. The @ is on top of the 2 on my keyboard layout. So I press shift, hit @ and instead of that key appearing in the comment I'm put in post edit mode, obviously because the script assumes I pressed the 2 key.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a review
  2. Click add comment
  3. Press shift and '2'
  4. Post is put in edit mode

Expected behavior
The character that is above the 2 is entered in the comment box

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version 74.0.3729.169

Additional context
Was in Low Quality queue, in case it matters

[Stack Exchange Dark Mode] Grey review queue markers not visible

Describe the bug
When viewing the review queue list from the dropdown menu the grey markers used to show that there are items available for review aren't visible. As a result it's not possible to see which queues have reviews available and which don't.

To Reproduce
Steps to reproduce the behavior:

  1. Click the reviews button in the top bar of SO to open the dropdown.
  2. Review queue markers aren't visible

Expected behavior
Review queue markers are visible.

Screenshots
In the below screenshots you can see the expected markers and the lack of them in dark mode.

Expected functionality:
image

Actual functionality:
image

Desktop (please complete the following information):

  • OS: Windows 10 Home
  • Browser: Google Chrome
  • Version: Version 76.0.3809.100 (Official Build) (64-bit)

Stack Exchange Dark Mode - Hamburger menu on the top left is not visible

Describe the bug
The hamburger menu on the top left (the one that appears if you disabled left navigation) is invisible when using Stack Exchange Dark Mode on all sites.

To Reproduce
Steps to reproduce the behavior:

  1. Go to your stack overflow profile and disable left navigation in the "preferences" tab in the "edit profile and settings" tab.
  2. Turn on Stack Exchange Dark Mode
  3. The hamburger menu on the top left is invisible

Expected behavior
A dark version of the normal hamburger menu on the top left.

Screenshots
Normally, the top left hamburger menu looks like this:

スクリーンショット 2019-06-29 9 33 26

In Dark Mode, it is invisible:

スクリーンショット 2019-06-29 9 33 01

Desktop (please complete the following information):

  • OS: macOS 10.14.3
  • Browser: Safari
  • Version: 12.0.3 (14606.4.5)

Display meta flags on the main mod dashboard

Too often do I find myself going to meta and finding unresolved flags there that I totally wasn't aware of because I mostly visit meta for new posts only.

Maybe it's just my problem (me being lazy), but would it be useful for anyone else to have the meta flag counter (in grey?) near the main flag counter on the main site, and vice versa?

Reduce-Clutter has bad coloring on :visited links

Summary
The Reduce-Clutter script recently changed the color of :visited links. It was a proper dark blue (#0064bd) set by Stack Overflow, but now it is a garish purple (#5c08c3) set by the script.

To Reproduce
Steps to reproduce the behavior:

  1. Install Reduce-Clutter
  2. Click a link on SO.
  3. Go back in your browser to see the link now show the new color

Expected behavior
Visited links should show the color declared by SO in primary.css. Can this please be reverted?

Added keyboard shortcuts to the mod queue

Keyboard shortcuts do make like more easy, would it be possible to add some keyboard shortcuts to the mod queue? Nothing fancy, just a few simple ones.

U to select the first flag in the queue
K to go to the previous flag in the mod queue
J to go to the next flag in the mod queue

and then, the left hand buttons for handling itself. For example, on a NAA flag

A for converting to comment
W for no further action, highlighting the text (can Tab and then Enter to submit, anyway)
D for deleting (wow, coincidence D for delete)

Handling the decline reasons might need additional ones (perhaps numbers?), but that is probably not worth the effort.

[Review Queue Helper] Mod flag dialog autoclosing on single quote

Describe the bug
When writing a custom mod flag on a post pressing the single quote key (') closes the flag dialog.

To Reproduce
Steps to reproduce the behavior:

  1. Open any question.
  2. Click the flag button to open the flag dialog and choose "in need of moderator intervention".
  3. Enter a single quote (this can be on it's own or as part of a full message).
  4. Flag dialog closes.

Expected behavior
The flag dialog doesn't close and the ' appears in the message

Desktop (please complete the following information):

  • OS: Windows 10 Home
  • Browser: Google Chrome
  • Version: Version 76.0.3809.100 (Official Build) (64-bit)

[Review Queue Helper] Allow users to toggle skip conditions

Currently the Review Queue Helper script seems to auto skip questions where any of the following conditions are true (non-exhaustive):

  • Question has multiple answers
  • Question has accepted answer
  • Review item is an audit

While I like skipping the last one (don't want to waste votes or risk getting dinged on a bad audit item, etc.), I don't want to skip on the first two occasions. I personally think it's more important to review those as they require corrective action (in either direction), which is more important/has more weight than an initial action.

Can we please have an option panel somewhere that allows us to choose each of the conditions where an item will be skipped? I like some of the features of this userscript but the current auto-skip criteria make the script unusable for me.

Strange interaction between script and favicons

In Firefox 69.0 on Windows 10 Enterprise I am seeing a bizarre interaction between Show Deleted Messages in Chat and the favicon shown in certain active chat rooms (not transcripts). When I have a tab open in rooms on Mi Yodeya (such as https://chat.stackexchange.com/rooms/468/vdibarta-bam), the favicon initially shows as the site icon and then switches to the SE generic icon after a few seconds (no more than a minute). With the script disabled, I do not see this behavior. I have not seen this behavior in rooms on other sites I frequent, only this one. (I routinely use chat rooms on about half a dozen sites, so that's not an exhaustive test.)

I have NO IDEA how this script and favicons could be interacting. I don't see anything glaringly obvious in the source (I don't really know JS so would miss subtle). This does not happen in Chrome on my Mac; I will try to remember to test Firefox on Mac later. I isolated the behavior by first checking that it doesn't happen with Tampermonkey turned off, and then disabling scripts (with tab reloads) one at a time until it stopped happening. I then disabled all scripts EXCEPT this one and reproduced the behavior. I've cleared the browser cache; no change.

A few days ago I moved to a new Windows machine and from Win 7 to Win 10. I never saw this behavior on the old machine. The Firefox there might have been up to a week out of date.

I'm at a loss on how to debug this further. (And I don't assume that Windows is blameless, since this only started on the new machine, though I have no guesses about interactions at that level.) Any ideas?

[Dark mode] does not work on Firefox + Greasemonkey

Describe the bug
Dark mode is not working on Firefox 72 + Greasemonkey.

ReferenceError: GM_addStyle is not defined

is shown in the console.

Desktop (please complete the following information):

  • OS: macOS Sierra 10.12.6
  • Browser: Firefox 72 + Greasemonkey 4.9

Default 'Order By' not saved in saved searches

Describe the bug
When creating a saved search, the order by is not recorded, which causes problems when changing pages.

To Reproduce
Steps to reproduce the behavior:

  1. Created a saved search. In my case, [movement] is:q score:..-1 closed:no
  2. Scroll down, click page 2
  3. Search is not recognized as bookmarked, and allows you to bookmark again
  4. When book marking again, the search type is saved (in this case, 'relevance'). See screenshow, the top row is the newest bookmark:

image

Expected behavior
'Relevance' should be included in the saved search initially

[bug] up arrow is not shown

Comments under posts would show flag button and up arrow
When dark mode script is used, only flag button is shown, but up arrow is not shown until it is hovered.

Chat Emojis is making chat messages box bigger

Describe the bug
I think I have found a bug in the ChatEmojis.user.js userscript. It seems that it makes the chat message box bigger and so, new messages appear behind it and usernames are inside it when starting writing their name, e.g. start writing @Sam and the username (Samuel Liew) will appear inside the box.

To Reproduce
Steps to reproduce the behavior:
Just make sure that the userscript is installed and go to a random room. The bug will appear at the bottom of the page where the box exists.

Expected behavior
The box had to be as it was when the userscript was not active/installed; smaller.

Screenshots
How the box is (with a message above it):

How it is when I am going to ping sombody:

How it should be (with a message above it):

How it should be when going to ping somebody:

Desktop (please complete the following information):

  • OS: Windows 10, version 10.0.17763.316
  • Browser: Microsoft Edge
  • Version 44.17763.1.0

Userscript manager:

  • Name: Tampermonkey
  • Version: 4.8.5847

I am not familiar with JavaScript, so I don't know what is wrong here.

Redacted screenshots throws console error

Trying to redact a question page throws errors in the console:

Error: attribute d: Expected number, "….72.56-1.18 1.22-1.\u2588\u2588\u2588.\u2588\u2588\u2588.03 1.…"

Breaks on the following code:

elem.innerHTML = elem.innerHTML
    .replace(ipRegex, '$1.███.███$2')
    .replace(emailRegex, '$1██████@██████.$4');

It's picking up the help icon, and probably thinking the svg path is an IP address

Reduce Clutter reduces "edit tags" too much

With the Reduce Clutter script enabled, this is what I see on questions now (screenshot is from Meta.SE):

screenshot

The text is very light -- for me it's at the "what's that smudge?" point, where either darkening it or removing it would be better than leaving it as-is.

With the script disabled it looks like this:

screenshot

I'm hoping this was an unintended side effect of some other change. I don't want to have to choose between "edit tags" being legible and having to see the comment icons all the time.

Thanks!

css version?

I see your userscript automatically change darkness according to specific times but instant manual on/off css switch on Stylus extension gives more freedom to users instead of the need to reload all related pages to active js. It's much quicker to switch css than reloading the entire page.
Would you consider also posting your scripts on userstyles.org ?

The numeric keypad 0 in the review queue helper doesn't work

Describe the bug
The 0 key found on the keyad doesn't work for selecting a button from review.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the close vote queue
  2. Notice there is [0] Opinion
  3. Click 0 on the keypad
  4. Nothing happens

Expected behavior
If you click the 0 on the normal keyboard, the review action is taken. I expected the same for the numkey-0

Screenshots
Meh

Desktop (please complete the following information):

  • OS: Win10
  • Browser Chrome
  • Version latest

Additional context
N/A

Visual bug - voting options shifted lower than expected

Describe the bug
I'm not sure how long this has been a thing since I haven't been on SO in a few days, but I noticed this morning that when this extension is enabled the voting arrows are shifted lower than they should be.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any question (as a non-mod - I'm not sure if this is a problem for mods)
  2. See error (screenshot 1 vs 2)

Expected behavior
The voting arrows should be where they are when the extension is disabled.

Screenshots

  1. With extension enabled
    Voting buttons are shifted down

  2. Without extension enabled
    Voting buttons are where they should be

Desktop (please complete the following information):

  • OS: macOS Mojave 10.14.6
  • Browser: Firefox Quantum
  • Version: 68.0.2 (64-bit)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.