dotfiles

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

ehentai (763B)


      1 #!/bin/sh
      2 # AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
      3 #
      4 # DATE: Sun Feb 07, 2016
      5 #
      6 # DESC: Elvi to search e-hentai
      7 # elvis: ehentai		-- Search e-hentai for hentai mangas (http://g.e-hentai.org/)
      8 . surfraw || exit 1
      9 
     10 w3_usage_hook () {
     11     cat <<EOF
     12 Usage: $w3_argv0 [options] [search words]...
     13 Description:
     14   Search ehentai (http://g.e-hentai.org/) for hentai mangas
     15 EOF
     16     w3_global_usage
     17 }
     18 
     19 w3_config
     20 w3_parse_args "$@"
     21 if test -z "$w3_args"; then
     22     w3_browse_url "http://g.e-hentai.org/"
     23 else
     24     escaped_args=`w3_url_of_arg $w3_args`
     25     w3_browse_url "http://g.e-hentai.org/?f_doujinshi=1&f_manga=1&f_artistcg=1&f_gamecg=1&f_western=1&f_non-h=1&f_imageset=1&f_cosplay=1&f_asianporn=1&f_misc=1&f_search=${escaped_args}&f_apply=Apply+Filter"
     26 fi