Userscripts Source Highlighter
Last update on Aug 17, 2007
Provides a link to a source highlighted version of the userscript being viewed.
You could comment on this script if you were logged in.
11 comments
You could comment on this script if you were logged in.

login to vote
Simon I dont understand...?
login to vote
R U working on my problem? (try again)
login to vote
Bug fixed, thanks!
login to vote
same for TryAgain :: Firefox Add-ons >.<
login to vote
bug!?
http://img300.imageshack.us/img300/8220/4125817...
login to vote
I really like this script, and I use it a lot, but I have one small criticism. When looking at my own scripts, the link gets appended to a different list to on other script pages. I've fixed this for myself, but it's probably not the most elegant way to do it. Maybe this is something you might want to fix.
My fix:
var h6 = document.getElementsByTagName('h6'); if ((h6.length > 3) && (h6[h6.length - 4].innerHTML == "Admin for script")) n[n.length - 2].innerHTML += '<li><a href="'+url+'">View highlighted script source</a></li>'; else n[n.length - 1].innerHTML += '<li><a href="'+url+'">View highlighted script source</a></li>';login to vote
This has been added, but is not live on the site yet: http://userscripts.devjavu.com/projects/userscr...
login to vote
Wow, this was exactly what I've been looking for...
login to vote
Thanks for the suggestion Lior, script updated.
login to vote
Good script. Minor bug report: You're adding the "View highlighted script source" to the first [ul] list on the page, but you forget that script descriptions can have lists too, so on some pages you append it to the wrong list. Appending it to the LAST list on the page should solve this, I think.
login to vote
Very nice. We plan to add this at some point – if you know your way around Ruby on Rails, feel free to submit a patch to get this without a userscript. See http://userscripts.devjavu.com, http://userscripts.devjavu.com/projects/userscr....