View userscript source links

By Henrik N Last update Mar 5, 2007 — Installed 1,259 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 10 posts, 5 voices



Jesse Andrews Admin

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

 
Henrik N Script's Author

Since Userscripts.org now displays a "View source" link, I've changed this script to only add source links on sites other than this one.

 
Henrik N Script's Author

Since Userscripts.org now displays a "View source" link, I've changed this script to only add source links on sites other than this one.

 
Menan Scriptwright

it is so cool man thanks, this helped me a lot. when i am trying to view the source code for a script it downloads then i have to open it with editor. it is a waste of time. now it is cool.

 
Henrik N Script's Author

Updated to add "?source" rather than "#" to the script URL, for circumventing the install dialog.

Both approaches work, but the "#" can't be detected on the server side. "?source" can. This means Userscripts.org can detect that someone's just viewing the source, not installing, and so can elect not to increase the install counter.

 
Henrik N Script's Author

surplus: Good point. Changed it to http://userscripts.org/scripts/show/* since Userscripts.org is now delightfully www-less.

 
surplus Scriptwright

Checked safe apart from applies to *userscripts.org which includes www.notuserscripts.org.

Fix url matches: http://userscripts.org/* http//*.userscripts.org/*

 
Henrik N Script's Author

Updated to blend in with the new Userscripts.org design. No difference in functionality.

 
Henrik N Script's Author

LouCypher: It's being discussed on the mailing list. Aaron is very aware of it and is trying to come up with a decent way to get native "display source" support along with the new installation UI.

 
LouCypher Scriptwright

I went back to 0.6.5.something because of that.

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