Userscripts Comments Fix

By sizzlemctwizzle Last update Apr 21, 2013 — Installed 14,732 times.

SUGGESTIONS

in
Subscribe to SUGGESTIONS 362 posts, 17 voices



sizzlemctwizzle Script's Author
FirefoxMacintosh

Update to modify an @include that lets you use the keyboard shortcuts with this script.

 
sizzlemctwizzle Script's Author
FirefoxWindows

Latest update allows you to use selection quoting while replying to private messages. If you've already installed the other script, uninstall it since this script now contains the same functionality.

 
Marti Scriptwright
FirefoxX11

In this diff you seem to have busted the "look and feel" of the up and down arrows in replies by putting in some really odd characters... If you are looking to "XHTML spec" it... use unicode escaping e.g. \uXXXX

e.g.

...
create('a', {href: '#header',
textContent: '\u21d1',
style: 'font-size:14px;align:left;'}),
create(' | '),
create('a', {href: '#footer',
textContent: '\u21d3',
...

Also inline reply to pm seems to be broken because of this perhaps.

 
sizzlemctwizzle Script's Author
FirefoxMacintosh

Marti wrote:
you seem to have busted the "look and feel" of the up and down arrows
Sorry I was editing the script on a windoze computer in the library. Fixed now.

 
Marti Scriptwright
FirefoxX11

sizzlemctwizzle wrote:
editing the script on a windoze computer in the library
LOL Notepad? ;) Thanks :)

 
sizzlemctwizzle Script's Author
FirefoxMacintosh

Marti wrote:
LOL Notepad? ;) Thanks :)
Notepad++ actually. Haven't written any code in Notepad for a few years.

 
timendum Scriptwright
FirefoxX11

Hi,
a little request for keyboard hard user like me:
add tabindex=1 to the text area and tabindex=2 to the "Post reply" button, so after typing my message, i can "tab + enter" to send the post.
And tabindex=3 for "preview" would be perfect.

Before your script it worked, but now shortcuts are between the text and the button.

Thanks!

 
Marti Scriptwright
FirefoxX11

Version 2.2.5.8 CHANGELOG
- Supports review reporting of spam... Should show up next to yes/no in the single review page when it's not owned and also on each comment. My review for example is here for this script
- Supports article (blog) reporting of spam
- Strips out beginning http://userscripts.org and https://userscripts.org when using metakey + l (el).
- Most Hotkeys now work in issues... although not fully tested with selection quoting since quote link is absent.

Known issues:
- Can mark yourself as a spammer in the replies of a review or article... don't do that
- to top and to bottom arrows not present in review and article comments

Thanks for the accepting Sizzle ;) :P


Version 2.2.5.9 CHANGELOG
- Checks the local list to see if it's already present to prevent duplicates... this is different than the check for duplicates already reported in the spam topic.
- Known issues fixed from 2.2.5.8

Many Thanks Sizzle! :)

 
Mango Scriptwright
FirefoxWindows

I find the wordwrap on code blocks annoying. It's easy to disable, though (remove pre, code { white-space:pre-wrap !important; } from the GM_addStyle() call), so I'm satisfied with that if you don't care to change anything.

 
Marti Scriptwright
FirefoxX11

Mango wrote:
I find the wordwrap on code blocks annoying.
Try using this script. It is geared more towards the look and the feel of USO versus what this scripts functionality is. :)

 
ameboide Scriptwright
FirefoxWindows

Suggestions for spam reporting:
- Report review as spam from the reviews list
- Report thread as spam from the threads list (not sure how the interface should look...)
- Implement captchas, rel=nofollow, links blacklists, and/or some other form of anti-spam thingy

 
Marti Scriptwright
FirefoxX11

ameboide wrote:
Report review as spam from the reviews list
Since the popup form dialog doesn't get initialized on that page this is currently not possible without generating it from scratch and doing some voodoo. 2.2.5.8 started in with that but, with the complete code not published, it bombed due to this... luckily I didn't have the code in when Sizzle reviewed it and posted that version.

Another thing you are completely missing is that you should only report a user once... this is how all the admins prefer it. So technically this request should be denied as it is a waste of end user resources with multiple click listeners and conditionals.

ameboide wrote:
Report thread as spam from the threads list (not sure how the interface should look...)
Same problem as before. Everyone is capable of going to a single page.

ameboide wrote:
- Implement captchas, rel=nofollow, links blacklists, and/or some other form of anti-spam thingy
Not sure why you struck this out... but some of these are probably beyond the scope of this script and more of a USO backend request as you already know. ;)

 
ameboide Scriptwright
FirefoxWindows

Marti wrote:
Another thing you are completely missing is that you should only report a user once... this is how all the admins prefer it. So technically this request should be denied as it is a waste of end user resources with multiple click listeners and conditionals.
I meant reporting from the list of reviews of the script, not the list of reviews made by the user...
The previous reason still stands anyway, so nevermind.
Marti wrote:
Everyone is capable of going to a single page.
Everyone is capable of most of the things this or any other script does, it was just a matter of saving one click. But again, the other reason is still good enough.
Marti wrote:
Not sure why you struck this out... but some of these are probably beyond the scope of this script and more of a USO backend request as you already know. ;)
And that's exactly why I struck that out :P

 
Tim Smart Scriptwright
ChromeX11

Something that you might like is a more editor like textarea in terms of indentation. Example implementation: https://github.com/Tim-Smart/userscripts/commit...

USO meets Markdown is using it and I love it so much you just might too :) HTML doesn't quite need it as much as markdown, but it can make sure complex html structures are easier to manage. Also makes editing code snippets a lot more tolerable.

 
Marti Scriptwright
FirefoxX11

Version 2.2.5.10 CHANGELOG
- Added Quick Dashboard menu item to open spam report manager... still present in User Scripts commands.

For those of you that are new to this... the black box that pops up is part of USO and is currently required to submit a report. Therefore any page that doesn't have this initialized by USO will currently not be able to dynamically add a Report Spam button nor the quick dashboard link. This is by USO design.

- Workaround for failed deleted items being out of sync with persistent storage. Addresses this SUGGESTION
- Reorder DOM removal on delete since the GC could destroy the object before being referenced.
- Restore newlines in between submitted reports... this is helpful for the other admins and also some of us that aggregate our reports.

KNOWN ISSUES
- COMPLETE After submitting report doesn't recount number of reports in the quick "Dashboard" element (should be zero at this stage if successfully posted to the spam topic)
- COMPLETE Initial count not showing in quick "Dashboard" element.

Many thanks Sizzle! :)

 
sizzlemctwizzle Script's Author
FirefoxMacintosh

Tested Marti's latest version and nothing appeared to be broken so I uploaded it. Thanks again Marti.

 
Takato Scriptwright
FirefoxWindows

Suggestion: If I've reported spam and then a couple minutes later I report more spam, and nobody else reported spam between those two reports, the spam report topic gets 2 posts in a row from me. No big deal, but it can add up if someone reports lots of spam in a row but doesn't submit it all at once. I'd like to suggest that the previous report gets deleted and merged into the new post.

This could be achieved by checking if the last post in the topic is by me, and if it is, copy its contents into the pending spam report, delete the post, and then post the new spam report.

 
Marti Scriptwright
FirefoxX11

Takato wrote:
Suggestion: If I've reported spam and then a couple minutes later I report more spam, and nobody else reported spam between those two reports, the spam report topic gets 2 posts in a row from me.
I understand this desire quite well however if the other admins are busy working on cleanup this could lead to major conflicts. Best to do it manually if you must and make sure you page refresh often. You can "edit the spam" report and copy the text into one of your previous posts... just add a <hr /> in between reports to ease the admins duties.

 
Marti Scriptwright
FirefoxX11

New request:

There seems to be a remnant of the Prototype library in this script which is causing bbCodes not to resolve properly on occasion.

This line in the current version(2.2.5.10 Jul 7, 2011 17:09):

var text2=text1.indexOf("Ajax")!=1?"; revertTextAreas();":"";

should probably read as:

var text2=text1.indexOf("ajax")!=-1?"; revertTextAreas();":"";

Notice the lowercase a and the negative 1 instead of positive 1...Thanks for the look :)


This appears to fix escaping on Issues tab textareas as well... still reconfirming... confirmed
2.2.6
- Fixes bbCode style parsing in code and pre tags in certain situations
- Fixes less than and greater than escaping in certain situations
- Fixes "toTop" arrow link to point to #top instead of #header for USO theme tweak
- Convert up down arrows to solid arrows to denote all the way to the top and all the way to the bottom instead of context... symmetry with everyone else. :)
- Added @installURL and @updateURL so users will get your version on next update if using GMs updater and it triggers before AAU and using this patch. Currently using http instead of https for these.
- @include keys for secure on userscripts.org... standard glob pattern matching since I don't know how far back in Firefox/Greasemonkey you are supporting.

Hope to have this accepted! :)

 
sizzlemctwizzle Script's Author
FirefoxMacintosh

Marti wrote:
Patched user.js with same @version.
Nicely done. Edited my description page for this script and everything looks correctly (unlike in the past where I had to turn the script off to edit it). Uploaded your modified version with an bumped version number.

 
Marti Scriptwright
FirefoxX11

sizzlemctwizzle wrote:
(unlike in the past where I had to turn the script off to edit it)
hehe yah... I was doing that too... got to be a little tedious. Thanks! :)

 
forteller User
Firefox

Hey guys. It's great to see that you are still updating this very useful script! But what about the 100x more useful spin-off script you created takes these features and give it to all websites, not just userscripts.org? I really hope you will update that one too with all the latest news, and have a look at my two threads over there regarding places it doesn't work.

Thank you so much for your great work! It's a fantastic time/frustration saver! :)

 
sizzlemctwizzle Script's Author
FirefoxWindows

forteller wrote:
But what about the 100x more useful spin-off script you created takes these features and give it to all websites, not just userscripts.org?
That script was primarily created for GitHub, but I decided to make it general so it could be used elsewhere. This script is more important because it makes using this site less painful and hopefully that helps keep users here.

 
rikkie User
FirefoxWindows

A suggestion:
whenever you create a new topic in the forums or discussion section of a script
to show the shortcuts list & the preview feature.
Also, not even the "Presentational HTML allowed" help box appears by default (=without your script) in them
but it would be useful to have it too.

Thank you

 
Marti Scriptwright
FirefoxX11

pre release candidate with next rc pre release @version.

- Generalized the wording for reports in the dashboard (e.g. "7 Reports" instead of "7 Spam Reports")
- Removed the word "Spam" from native UCF popup dialogs... generalizing on "reports" verbage.
- Adds "Report as empty" for empty topics.
- Support @downloadURL as a synonym to @installURL since Anthony changed this without any known dev list interaction. Sizzle, please note that GM is currently using a personal CDN attached to goo for native GM update checking (94c976c#L0R199)... so that domain can spy on all the users updates and usage... e.g. watch who is installing what for updates. I'm not very pleased to find this after I've been away for a bit. :\

KNOWN ISSUES
- FIXED matches is null on submit if the report manager only has empty topics.
- FIXED Report Spam broken on review page.

Currently there isn't an easy way to check for other user duplicates for empty topics but it does currently check same user duplicates stored before submission. Code isn't as tightly compressed as Sizzles base but it is a quick hack to get this feature in to do a little clean up for the "Flag Spam" option recently included with USO.

Hope to have this rechecked and accepted. :)