Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Userscripts comment helper

Adds buttons to insert html tags and converts to escape characters where necessary.

This script works when adding a new comment to a script, post to the forum and the description field in script metadata.

Inserting Tags

Simply select the text to put tags around then click the appropriate tag.
Some tags have keyboard shortcuts to find them out see the tool tips
Note: It returns focus to the text box so you can just keep typing.
This is not a comprehensive list of tags as there are too many, these are just the tags I find most useful. For a full list of tags see this tread. If you want to change the tags included the list is at the top of the the script.

Converting To escape Characters

eg < to &lt;
To convert to escape characters type as usual then either click escape: all to convert the whole text or selection to only convert the current selection.

Updates

  • 23 June 2007
    • Fixed for site redesign
    • Added new comment Link at top (thanks vOidSenses)
    • Added buttons for usefull links eg $x and the Greasespot wiki
  • 9 May 2007
    • fixed bug when selecting using arrow keys
  • 8 May 2007
    • added schort cuts (eg ctrl-b bold, crtl-i italic, for rest see tool tips)
    • fixed crtl-s save so it doesn't require keyconfig
  • 7 may 2007
    • fixed comment posting (thanks vOidSenses)
  • 6 May 2007
    • fixed selection issues on escaping
    • neatened up comment box
    • added <div> and <span>
  • 5 May 07
    • added to edit post and new topics
    • changed comments on scripts to be in the black floating forum style box as per znerp's request
  • 25 April 07
    • <u> removed (thanks znerp)
    • better links (thanks vOidSenses)
    • <blockquote> added
    • changed <b> to <strong> and <i> to <em>
    • added <a> and <img>
    • fixed the scroll jumping on long entries
    • added ctrl-s for saving metadata



Aug 3, 2008
jerone Scriptwright

lol, I just totally missed that part. I almost wrote the same part a few lines up and totally not reading the rest of the document. The only thing that I missed was the wait-part, which I totally needed to get it working.

Anyways, thanks for the more simple solution.

 
Aug 3, 2008
znerp Scriptwright

@jerone, dob: This can be easily fixed. Line number 123 checks for links with ;edit in their href which worked fine until there were some changes on us.o and this could simply be changed to /edit to fix that problem. Since editing comments has been introduced, this script also doesn't work when perfomring this, so I've personally fixed this by changing that line of code to search for the word 'edit' in the textcontent of links on the page, that is I've changed line 123 to the following;

edits=document.evaluate('//a[contains(text(),"Edit")]',document,null,null,null)

 
Aug 1, 2008
jerone Scriptwright

Just as dob said, support for editing would be great too.
As a scriptwriter myself I tried to fix this, but that wasn't that easy and after a hour I gave up.
Hopefully the scriptwriter (or someone else) comes up with a solution some day.

 
Mar 27, 2008
dob Scriptwright

Awesome script, but support for editing post would be great, too. I really miss that.

 
Aug 20, 2007
Sean Watson Scriptwright

Any chance of making one similar to this for MySpace comments/bulletins?

 
Jul 20, 2007
vOidSenses Scriptwright

just notice the update, really good, i like the new buttons

once again thx ;]

 
Jun 23, 2007
vOidSenses Scriptwright

i have a suggestion, what about adding at the begging of the comments the same button "Add a comment" to do exactly the same thing? it kind happens often to have to scroll a lot to the end just to click in the button and then scroll back up to answer something in the beginning of the comments

cheers, btw either adding or not what i suggested i've faved your script, it's very useful to me X]

 
May 7, 2007
vOidSenses Scriptwright

testing... 1.. 2.. yep, it's working

thank you

 
May 7, 2007
alien_scum Script's author

Comment posting fixed thanks vOidSenses.

 
May 6, 2007
vOidSenses Scriptwright

hi, the script is constantly failing to Post the comment in the script pages, i click "Post comment" and nothing happens, thought i might wanna know ^^

 
May 5, 2007
vOidSenses Scriptwright

installed and working like a charm, thank you, very useful :)

btw, are you going to implement the remaining tags?

 
Apr 22, 2007
Lior Zur Scriptwright

Another instant hit from alien_scum! This script is simply fantastic. Great idea; elegant execution. Keep this up.

 
Apr 22, 2007
vOidSenses Scriptwright

one thing though, u used the href="#" in the links so every time i click in one the page goes up

honestly i don't remember how to take that way, but i know it's possible, or u can always use buttons instead of links

 
Apr 22, 2007
vOidSenses Scriptwright

since you can run malicious code in input areas one thing that normally every forum system has is to escape certain characters or to simply delete them, since we are sharing code snippets isn't very cool to see your code deleted, so the escape function of this script

 
Apr 22, 2007
znerp Scriptwright

Awesome script, although I'm not sure if underlining works on us.o; pretty sure I've tried it in my script metadata and it didn't work.

 
Apr 22, 2007
Timothy Scriptwright

My bad, this script is amazing though.\\

 
Apr 22, 2007
Timothy Scriptwright

Escape?

Not sure what the escape part is.

You could comment on this script if you were logged in.