Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
hey alien_scum, i fixed your script for "edit" links and added an "automatic" escaping option and some other stuff |
|
|
didn't notice this script here... much better than mine haha
in your Change the one line where it returns to:
return document.evaluate(xpath,document,null,9,null).singleNodeValue According to the logic, this should be much faster, and W3C confirms it. the basic idea is instead of finding all the results, then returning the first, the Also actually, you might consider adding this from mine:
.replace(/<(?!\/?(pre|code|a|div|img|strong|em|ins|h1|h2|h3|span|p|li|ul|ol|blockquote|br)\/?>)/gi,"<") Basically, it will only automatically escape everything that isn't one of the whitelisted html tags. I didn't bother making it escape >'s because if at least one (< or >) is escaped, the browser will know what to do. |
|
|
Oh thank you so much znerp lol I didn't read the other comments before. |
|
|
@JoeSimmons: Check my post 2 before yours... |
|
|
I love this. I wish it worked on an edit post/comment box. |
|
|
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 Anyways, thanks for the more simple solution. |
|
|
@jerone, dob: This can be easily fixed. Line number 123 checks for links with edits=document.evaluate('//a[contains(text(),"Edit")]',document,null,null,null)
|
|
|
Just as dob said, support for editing would be great too.
|
|
|
Awesome script, but support for editing post would be great, too. I really miss that. |
|
|
Any chance of making one similar to this for MySpace comments/bulletins? |
|
|
just notice the update, really good, i like the new buttons once again thx ;] |
|
|
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] |
|
|
testing... 1.. 2.. yep, it's working thank you |
|
|
Comment posting fixed thanks vOidSenses. |
|
|
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 ^^ |
|
|
installed and working like a charm, thank you, very useful :) btw, are you going to implement the remaining tags? |
|
|
Another instant hit from alien_scum! This script is simply fantastic. Great idea; elegant execution. Keep this up. |
|
|
one thing though, u used the 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 |
|
|
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 |
|
|
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. |
|
|
My bad, this script is amazing though.\\ |
|
|
Escape? Not sure what the escape part is. |