Skip to content

Instantly share code, notes, and snippets.

@andersonbosa
Created May 11, 2022 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andersonbosa/83c6283efc95bd45c9b9590dc2ecd676 to your computer and use it in GitHub Desktop.
Save andersonbosa/83c6283efc95bd45c9b9590dc2ecd676 to your computer and use it in GitHub Desktop.
Search for COOKIE explains in CookieBase
#!/bin/sh
# Anderson Bosa < https://github.com/andersonbosa | @t4inha >
# elvis: cookie -- Search for COOKIE explains in CookieBase
# Add to this to "/usr/lib/surfraw/cookiebase"
. surfraw || exit 1
w3_usage_hook () {
cat <<EOF
Usage: $w3_argv0 [options] [search words]...
Description:
Search for COOKIE explains in CookieBase
Example:
cookie bs_vm
EOF
w3_global_usage
}
w3_config
w3_parse_args "$@"
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
w3_browse_url "https://cookiedatabase.org/"
else
escaped_args=`w3_url_of_arg $w3_args`
w3_browse_url "https://cookiedatabase.org/?lang=en&s=${escaped_args}"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment