dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 31b27ac65fe01d8b92b79b8063f968b7400f04db
parent 64b883a942471091dd3d981864aacae5b34b9a19
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Sun, 22 Aug 2021 12:28:01 +0200

surfraw: elvis for libgen

Diffstat:
Asurfraw/elvi/libgen | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/surfraw/elvi/libgen b/surfraw/elvi/libgen @@ -0,0 +1,21 @@ +#!/bin/sh +# elvis: libgen -- Search Library Genesis for books +. surfraw || exit 1 + +w3_usage_hook () { + cat <<EOF +Usage: $w3_argv0 [options] [search words]... +Description: + Search Library Genesis for books +EOF + w3_global_usage +} + +w3_config +w3_parse_args "$@" +if test -z "$w3_args"; then + w3_browse_url "https://libgen.rs" +else + escaped_args=`w3_url_of_arg $w3_args` + w3_browse_url "https://libgen.rs/search.php?req=${escaped_args}" +fi