Archived Comments (locked)

in
Subscribe to Archived Comments 7 posts, 3 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
JoeSimmons Scriptwright

There's already one like this script.
http://userscripts.org/scripts/show/8713
Though I do like the access keys.
I wish this worked on edit-boxes too like the other script does.
No offense, but yours isn't anywhere near as cool as his. but I think if you managed to kind of take his script and make more tags for it, with a drop-down menu where the big list of tag used to be, it'd be awesome.

Whitelisted tags: del dd h3 small big sub tt fieldset a ul h4 cite dfn legend h5 kbd code b ins img acronym h6 sup pre blockquote dt br output p strong param div samp embed li ol var em object h1 address i abbr h2 span hr
Whitelisted attributes: href cite dir class title src height datetime alt width

 
JoeSimmons Scriptwright

Nope. It calls it once into a variable. Then it uses it twice like pb.doSomethingHere but it doesn't have to do the getElementById function again.

 
Avindra V.G. Script's Author

but that still calls the value twice, doesn't it?

 
JoeSimmons Scriptwright

http://pastebin.com/m26285af8

 
Avindra V.G. Script's Author

i was thinking about that... but i couldn't come up with another way of doing it without having to look up the value twice.

 
JoeSimmons Scriptwright

I see you call document.getElementById("post_body") twice. Bad choice.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel