go (webrowse-2.0.3.tgz) | : | go (webrowse-2.0.4.tgz) | ||
---|---|---|---|---|
skipping to change at line 53 | skipping to change at line 53 | |||
esurl='https://translate.google.com/#auto|es|' | esurl='https://translate.google.com/#auto|es|' | |||
#perlfurl='http://www.perldoc.com/f?' | #perlfurl='http://www.perldoc.com/f?' | |||
#perlmurl='http://www.perldoc.com/m?' | #perlmurl='http://www.perldoc.com/m?' | |||
perlfurl='https://perldoc.perl.org/search.html?q=' | perlfurl='https://perldoc.perl.org/search.html?q=' | |||
perlmurl='https://search.cpan.org/search?query=' | perlmurl='https://search.cpan.org/search?query=' | |||
cpanurl='https://metacpan.org/search?q=' | cpanurl='https://metacpan.org/search?q=' | |||
userurl='https://mcommunity.umich.edu/#search:<NOPLUS>' | userurl='https://mcommunity.umich.edu/#search:<NOPLUS>' | |||
phoneurl='https://www.google.com/search?q=phonebook:' | phoneurl='https://www.google.com/search?q=phonebook:' | |||
linkurl='https://www.linkedin.com/vsearch/f?keywords=' | linkurl='https://www.linkedin.com/vsearch/f?keywords=' | |||
umjoburl='http://umjobs.org/search?keyword=' | umjoburl='http://umjobs.org/search?keyword=' | |||
# direct INC# link | ||||
# https://michmed.service-now.com/incident.do?sysparm_query=number= | ||||
tkturl='https://michmed.service-now.com/nav_to.do?uri=' | ||||
tkturl="$tkturl%2F\$sn_global_search_results.do%3Fsysparm_search%3D" | ||||
#cityurl='http://www.mapquest.com/maps/map.adp?city= &state=' | #cityurl='http://www.mapquest.com/maps/map.adp?city= &state=' | |||
cityurl='http://www.city-data.com/cityname.php?NM=' | cityurl='http://www.city-data.com/cityname.php?NM=' | |||
bookurl='https://www.amazon.com/exec/obidos/external-search' | bookurl='https://www.amazon.com/exec/obidos/external-search' | |||
bookurl="$bookurl?mode=blended&keyword=" | bookurl="$bookurl?mode=blended&keyword=" | |||
#movieurl='http://www.imdb.com/Find?select=All&for=' | #movieurl='http://www.imdb.com/Find?select=All&for=' | |||
#movieurl='http://www.imdb.com/find?q=' | #movieurl='http://www.imdb.com/find?q=' | |||
movieurl='https://movies.netflix.com/WiSearch?v1=' | movieurl='https://movies.netflix.com/WiSearch?v1=' | |||
coverurl='http://www.albumart.org/?searchindex=Music&searchkk=' | coverurl='http://www.albumart.org/?searchindex=Music&searchkk=' | |||
softurl='http://freecode.com/search/?section=projects&q=' | softurl='http://freecode.com/search/?section=projects&q=' | |||
andurl='https://market.android.com/search?q=' | andurl='https://market.android.com/search?q=' | |||
produrl='https://www.google.com/products?q=' | produrl='https://www.google.com/products?q=' | |||
aucturl='http://shop.ebay.com/?_nkw=' | aucturl='http://shop.ebay.com/?_nkw=' | |||
fedexurl='http://www.fedex.com/Tracking?action=track&tracknumbers=' | fedexurl='http://www.fedex.com/Tracking?action=track&tracknumbers=' | |||
piconurl='http://kinzler.com/cgi/piconsearch.cgi?type=patt&show=on&limit=50' | piconurl='http://kinzler.com/cgi/piconsearch.cgi?type=patt&show=on&limit=50' | |||
piconurl="$piconurl&db=users+usenix+misc+domains+unknown" | piconurl="$piconurl&db=users+usenix+misc+domains+unknown" | |||
piconuurl="$piconurl&host=.*&user=<DOTSTAR>" | piconuurl="$piconurl&host=.*&user=<DOTSTAR>" | |||
piconhurl="$piconurl&user=.*&host=<DOTSTAR>" | piconhurl="$piconurl&user=.*&host=<DOTSTAR>" | |||
appurl='https://med.umich.edu/i/platserv/apps.html#' | appurl='https://platserv.med.umich.edu/apps.html#' | |||
cveurl='https://nvd.nist.gov/vuln/detail/' | ||||
yuburl='http://www.yubnub.org/parser/parse?command=' | yuburl='http://www.yubnub.org/parser/parse?command=' | |||
#proxyurl='https://translate.google.com/translate?sl=ja&tl=en&u=' | #proxyurl='https://translate.google.com/translate?sl=ja&tl=en&u=' | |||
proxyurl='http://www.gmodules.com/ig/proxy?url=' | proxyurl='http://www.gmodules.com/ig/proxy?url=' | |||
cacheurl='https://www.google.com/search?q=cache:' | cacheurl='https://www.google.com/search?q=cache:' | |||
infourl='https://www.google.com/search?q=info:' | infourl='https://www.google.com/search?q=info:' | |||
arcurl='http://web.archive.org/archive_request_ng?collection=web&url=' | arcurl='http://web.archive.org/archive_request_ng?collection=web&url=' | |||
randomurl='http://www.uroulette.com/visit' | randomurl='http://www.uroulette.com/visit' | |||
# go - web browse the given URL, fragmented URL, or web query | # go - web browse the given URL, fragmented URL, or web query | |||
# Steve Kinzler, steve@kinzler.com, Apr 00/Oct 00/Jul 01 | # Steve Kinzler, steve@kinzler.com, Apr 00/Oct 00/Jul 01 | |||
skipping to change at line 114 | skipping to change at line 119 | |||
case "$bad" in | case "$bad" in | |||
?*) cat << EOF 1>&2 | ?*) cat << EOF 1>&2 | |||
usage: $0 [ -s ] [ -a ] [ -n ] [ -v ] [ url_piece [ url_tail ] | | usage: $0 [ -s ] [ -a ] [ -n ] [ -v ] [ url_piece [ url_tail ] | | |||
{login|@}:site query | {search|/}:search query | | {login|@}:site query | {search|/}:search query | | |||
{priv|\}:ate search query | image:picture query | video:clip query | | {priv|\}:ate search query | image:picture query | video:clip query | | |||
index:listing query | map:location query | dir:ections query | | index:listing query | map:location query | dir:ections query | | |||
group:newsgroup | news:usenet query | {ask|?}:question sentence | | group:newsgroup | news:usenet query | {ask|?}:question sentence | | |||
topic:subject query | encyc:lopedia query | word:dictionary query | | topic:subject query | encyc:lopedia query | word:dictionary query | | |||
thes:aurus query | en:translation text | es:translation text | | thes:aurus query | en:translation text | es:translation text | | |||
perl:documentation query | cpan:module query | user:person query | | perl:documentation query | cpan:module query | user:person query | | |||
phone:book query | link:edin query | umjob: query | city:place query | | phone:book query | link:edin query | umjob: query | tkt: query | | |||
book:store query | movie:film query | cover:art query | | city:place query | book:store query | movie:film query | | |||
soft:ware query | and:roid query | prod:uct query | auct:ion query | | cover:art query | soft:ware query | and:roid query | prod:uct query | | |||
fedex:num track | piconu:icon query : piconh:icon query | app:lication | | auct:ion query | fedex:num track | piconu:icon query | | |||
piconh:icon query | app:lication | cve:vulnerability query | | ||||
yub:nub command | proxy: url | cache: url | info:rmation url | | yub:nub command | proxy: url | cache: url | info:rmation url | | |||
arc:hive url | random site | url:url ] | arc:hive url | random site | url:url ] | |||
-s assume missing protocol is https instead of http | -s assume missing protocol is https instead of http | |||
-a use alternate environment ($altenv) | -a use alternate environment ($altenv) | |||
-n nodo mode, don't actually run the browser command | -n nodo mode, don't actually run the browser command | |||
-v verbose mode, print the browser command to be run | -v verbose mode, print the browser command to be run | |||
A url_piece is appended with ".com" if it doesn't contain a dot. | A url_piece is appended with ".com" if it doesn't contain a dot. | |||
If needed, it is prepended with "www." unless it begins with a "/". It is | If needed, it is prepended with "www." unless it begins with a "/". It is | |||
also prepended with "http://", or "https://" with -s, unless the protocol | also prepended with "http://", or "https://" with -s, unless the protocol | |||
is already specified. The final URL is then the concatenation of this | is already specified. The final URL is then the concatenation of this | |||
skipping to change at line 152 | skipping to change at line 158 | |||
thes: $thesurl | thes: $thesurl | |||
en: $enurl | en: $enurl | |||
es: $esurl | es: $esurl | |||
perl: $perlfurl | perl: $perlfurl | |||
or $perlmurl | or $perlmurl | |||
cpan: $cpanurl | cpan: $cpanurl | |||
user: $userurl | user: $userurl | |||
phone: $phoneurl | phone: $phoneurl | |||
link: $linkurl | link: $linkurl | |||
umjob: $umjoburl | umjob: $umjoburl | |||
tkt: $tkturl | ||||
city: $cityurl | city: $cityurl | |||
book: $bookurl | book: $bookurl | |||
movie: $movieurl | movie: $movieurl | |||
cover: $coverurl | cover: $coverurl | |||
soft: $softurl | soft: $softurl | |||
and: $andurl | and: $andurl | |||
prod: $produrl | prod: $produrl | |||
auct: $aucturl | auct: $aucturl | |||
fedex: $fedexurl | fedex: $fedexurl | |||
piconu: $piconuurl | piconu: $piconuurl | |||
piconh: $piconhurl | piconh: $piconhurl | |||
app: $appurl | app: $appurl | |||
cve: $cveurl | ||||
yub: $yuburl | yub: $yuburl | |||
proxy: $proxyurl | proxy: $proxyurl | |||
cache: $cacheurl | cache: $cacheurl | |||
info: $infourl | info: $infourl | |||
arc: $arcurl | arc: $arcurl | |||
random $randomurl | random $randomurl | |||
EOF | EOF | |||
exit 1;; | exit 1;; | |||
esac | esac | |||
case "$#" in | case "$#" in | |||
0) set x `sed 1q`; shift;; | 0) set x `sed 1q`; shift;; | |||
esac | esac | |||
case "$1" in | case "$1" in | |||
[/\\?e]:*|search:*|priv:*|image:*|video:*|index:*|map:*|dir:*|group:*|news:*|\ | [/\\?e]:*|search:*|priv:*|image:*|video:*|index:*|map:*|dir:*|group:*|news:*|\ | |||
ask:*|topic:*|encyc:*|word:*|thes:*|en:*|es:*|perl:*|cpan:*|user:*|phone:*|\ | ask:*|topic:*|encyc:*|word:*|thes:*|en:*|es:*|perl:*|cpan:*|user:*|phone:*|\ | |||
link:*|umjob:*|book:*|movie:*|cover:*|soft:*|and:*|prod:*|auct:*|fedex:*|\ | link:*|umjob:*|tkt:*|book:*|movie:*|cover:*|soft:*|and:*|prod:*|auct:*|\ | |||
picon:*|picon[uh]:*|app:*|yub:*|proxy:*|cache:*|info:*|arc:*) | fedex:*|picon:*|picon[uh]:*|app:*|cve:*|yub:*|proxy:*|cache:*|info:*|arc:*) | |||
case "$1" in | case "$1" in | |||
/:*) url="$searchurl";; | /:*) url="$searchurl";; | |||
\\:*) url="$privurl";; | \\:*) url="$privurl";; | |||
\?:*) url="$askurl";; | \?:*) url="$askurl";; | |||
e:*) url="$encycurl";; | e:*) url="$encycurl";; | |||
picon:*)url="$piconhurl";; | picon:*)url="$piconhurl";; | |||
perl:*) case "$*" in | perl:*) case "$*" in | |||
perl:perl*|perl:*::*) url="$perlmurl";; | perl:perl*|perl:*::*) url="$perlmurl";; | |||
*) url="$perlfurl";; | *) url="$perlfurl";; | |||
esac;; | esac;; | |||
End of changes. 6 change blocks. | ||||
7 lines changed or deleted | 15 lines changed or added |