#!/usr/bin/env ruby # # Creates and copies javascript to be inserted into the address bar of # a browser. To use fully you'll want to download a program to copy # input files to the clipboard, mine is here: # # http://jeffpalm.com/copytoclipboard/ # # It should be on your PATH at 'copytoclipboard' (no quotes) # # Options $verbose = false # Write to STDERR def e(s) STDERR.puts s STDERR.flush end # Verobse debug def v(s) e s if $verbose end def print_help e 'Usage: ' + File.basename(__FILE__) + ' [