User JavaScript: Clickable links in plaintext files

Looks like I might be releasing scripts every once in a while until I’m ready to launch userjs.org.

This User JavaScript for Opera 8 should make http/https/ftp URLs in plain text documents clickable.

Linkify text files can be downloaded from the User JavaScript resource UserJS.org

Comments

Comment from Kildor on 2005-04-27 17:19

If I have a user js, may I send it to you, to place it at your site?
(script adds a panel with HTML tags to textareas in livejournal.com, to easy writing and formating.
And of course it can be placed everywhere, to easy editing…
link

Comment from Arve on 2005-04-27 21:23

Kildor: Thanks for your submission, I will keep a note of it until userjs.org goes live. When that site is ready, there will be a facility for script authors to submit their scripts for inclusion. See this post for more information.

Comment from John Magnus on 2005-05-28 16:51

Hi Arve

This small script really is a gem. Have found that it’s useful to do the same when viewing other pure text files as well. I’ve tweaked the script to trigger on Style Sheets (.css), JavaScript (.js) and log files (.log) in addition to txt files. For one or another reason these are file types I regularly view and benefit from having URI’s linked. It’s easily expanded by adding other file endings to the RegEx as well…

If you’d like to include it in the hosted script, simply swap the first (code) line for this;

if (window.location.href.match(/^.*\.(css|js|log|txt)$/i)) {

This discussion has been closed. No further comments may be added.