diff options
author | 23hiro <23hiro@gmail.com> | 2018-06-27 19:20:28 +0200 |
---|---|---|
committer | 23hiro <23hiro@gmail.com> | 2018-06-27 19:20:28 +0200 |
commit | 2f1b8246e23f8d3e88885822efcf25f3b4474bff (patch) | |
tree | b815f509ffdbd10c565a9b2edf74fc2d79dc749f /sys/src/cmd/mothra/mothra.h | |
parent | 902eceee63f5132f315db1a15ecce95af51359df (diff) |
Persist 'k' command in mothra and add matching -k flag (thanks piroko)
"I sometimes find myself on either slow or data-capped network links where downloading images isn't ideal. Attached is a simple patch to mothra that changes the 'k' command to not only remove already-downloaded images from a page, but also toggle a state such that mothra won't attempt to download images on future visited sites until 'k' is toggled again. This also adds a '-k' flag to mothra which enables the flag at startup." --Jeremy O'Brien<neutral@fastmail.com> on 9fans
Diffstat (limited to 'sys/src/cmd/mothra/mothra.h')
-rw-r--r-- | sys/src/cmd/mothra/mothra.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/mothra/mothra.h b/sys/src/cmd/mothra/mothra.h index 0d4553cf8..806ab614b 100644 --- a/sys/src/cmd/mothra/mothra.h +++ b/sys/src/cmd/mothra/mothra.h @@ -78,7 +78,7 @@ enum{ }; void finish(Www *w); -void plrdhtml(char *, int, Www *); +void plrdhtml(char *, int, Www *, int); void plrdplain(char *, int, Www *); void htmlerror(char *, int, char *, ...); /* user-supplied routine */ void seturl(Url *, char *, char *); |