### a public text grabber
on -public * {
	${a.urlgrab==[on]?{fe ($grab.patterns) aa {${[$2-]=~aa?[^hook _u.write $*]:}}}:}}
on -public_other * {
	${a.urlgrab==[on]?{fe ($grab.patterns) aa {${[$2-]=~aa?[^hook _u.write $*]:}}}:}}
on ^hook _u.write* {
	${!_grep($a.grab $3-)?{@_u.fd=open($a.grab W);@write($_u.fd $datetime($time())${c.hk}\: ${c.cl}$fparse(format_public_other $*));@close($_u.fd);@_urlnum++;ge grabbed \#$_urlnum to $a.grab\.}:}}
alias grab {
	${[$0]==[-l]?[ge currently grabbing patterns\: $grab.patterns]:[$0]==[-a]?[$1-]?{ge added \"$1-\" to the grab list.;push grab.patterns $1-}:[_usage grab]:[$0]==[-r]?[$1]&&match($1 $grab.patterns)?{@grab.patterns=remw($1 $grab.patterns);ge removed \"$1\" from the grab list.}:[$1]?[ge \"$1\" is not on the grab list.]:[_usage grab]:fexist($a.grab)==1?[more $a.grab]:[ge no items have been saved in $a.grab\.$]}}
alias remgrab {
	@unlink($a.grab)
	ge $a.grab has been removed.}
#sjk'97
