tdro

Another wandering soul whispering into the void. If you are looking for my blog you are in the wrong place. The profile and header pictures are brought to you by cdd20.

tdro micro.thedroneely.com (edited) view
  • Markdown Plaintext Embed Permalink
  • 72/50 words 24s read

    Chrome --headless can dump the to the command line. Set a virtual time budget in [?] for the to settle down and then do stuff.

    shell
    Html() {
      chromium \
        --headless \
        --incognito \
        --dump-dom \
        --virtual-time-budget=999999 \
        "$1"
    }
    
    HtmlToText() {
      lynx -stdin -dump -nolist
    }

    This has “peculiar” uses. Fun fact: invoking the name of chromium around normal people confers alien–like status.

    shell
    Html 'https://www.youtube.com/' | HtmlToText
    #gists