samliew / so-mod-userscripts Goto Github PK
View Code? Open in Web Editor NEWStack Overflow Moderation Userscripts
License: MIT License
Stack Overflow Moderation Userscripts
License: MIT License
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.
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:
Expected behavior
Visited links should show the color declared by SO in primary.css. Can this please be reverted?
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:
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.
Desktop (please complete the following information):
Additional context
Other users replies are highlighted, only your own messages aren't.
With the Reduce Clutter script enabled, this is what I see on questions now (screenshot is from Meta.SE):
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:
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!
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?
In timezones with 0.5 steps (30 mins) difference, the timestamps are displayed incorrectly
Need to update Too Many R/A feature on CommentFlagsHelper due to new user comments history mod UI.
https://stackoverflow.com/admin/links
Envision a dashboard of info from all important stats pages (recent failed audits, recent suspensions, etc.)
Add more useful links that aren't displayed here yet?
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:
Expected behavior
A dark version of the normal hamburger menu on the top left.
Screenshots
Normally, the top left hamburger menu looks like this:
In Dark Mode, it is invisible:
Desktop (please complete the following information):
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:
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):
Describe the bug
The moderator message topbar does not show.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected a diamond item in the topbar
Desktop (please complete the following information):
Additional context
The diamond topbar item is missing.
cc: @samliew
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:
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.
Desktop (please complete the following information):
Just like in #70, the close buttons are shown in the Reopen queue. I'm using version 3.2.4 of the userscript
Describe the bug
For the script AdditionalPostModActions, the menu option to convert answer to comment on the question will fail silently when the answer content contains two @ symbols
Error message:
Only one additional @user can be notified; the post owner will always be notified
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&d=identicon&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.
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:
[movement] is:q score:..-1 closed:no
Expected behavior
'Relevance' should be included in the saved search initially
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 ?
Currently the Review Queue Helper script seems to auto skip questions where any of the following conditions are true (non-exhaustive):
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.
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.
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?
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:
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):
Additional context
nice script otherwise!
Improve https://chat.stackoverflow.com/admin/recent-flags and https://chat.stackoverflow.com/admin
Possibly pull in important info into a dashboard-like page displaying chat overview or latest flags with permalinks.
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):
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.
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.
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
.
How can I set a tag moderator-only with a http request?
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):
Userscript manager:
I am not familiar with JavaScript, so I don't know what is wrong here.
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!
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:
And editing it:
That's not the actual content of the comment, however. Visiting the post, the comment looks like this:
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
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
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:
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):
Additional context
N/A
Describe the bug
In the close vote dialog all the keyboard hints are clutterd in the left top corner.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The keyboard [1], [2] etc near the option they represent
Screenshots
https://i.stack.imgur.com/zf5BU.png
Desktop (please complete the following information):
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.
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:
Expected behavior
The character that is above the 2 is entered in the comment box
Desktop (please complete the following information):
Additional context
Was in Low Quality queue, in case it matters
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
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:
Expected behavior
The voting arrows should be where they are when the extension is disabled.
Screenshots
Desktop (please complete the following information):
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:
Expected behavior
The flag dialog doesn't close and the ' appears in the message
Desktop (please complete the following information):
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:
Expected behavior
This doesn't happen in private browsing, where the script is turned off.
Screenshots
In room:
In transcript:
Without userscript:
Desktop (please complete the following information):
Thanks!
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:
Another thing: the color of links in some areas (I noticed it when uploading a picture) is the same as the general text color:
Thanks! This is a cool idea.
Create a userscript for https://stackoverflow.com/admin/dashboard?flagtype=postrollbackwarauto
Display number of rollbacks (and user), and revision timestamps.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.