HTML Comments Display

By JoeSimmons Last update Dec 30, 2008 — Installed 242 times.

Suggestion regarding 'long' comments

in
Subscribe to Suggestion regarding 'long' comments 3 posts, 2 voices



anon404 Scriptwright

Could you add a feature where a 'long' (maybe user defined, or maybe just 500+ characters or so) comment is replaced with a warning/notice (maybe something like 'X long comments hidden, click to show') at the bottom, that, when clicked, shows the 'long' comment?
Thanks!

 
JoeSimmons Script's Author

Sure thing. I'll edit this post when I'm done.

Edit: Ok, done. You can set the max length in the source. The default is 500.

It seems that the script isn't capturing only the comments though. A test link can be found here. If you check the source, there's only a few short comments in it but it shows everything in between. I just figured out why though, so that should be fixed soon. When you see version 1.3 out, update it.


"None are more hopelessly enslaved than those who falsely believe they are free." - Johann Wolfgang von Goethe

 
anon404 Scriptwright

Thank you very much! I'll be sure to post here when I get more ideas.

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