Last active
July 15, 2024 22:47
-
-
Save henri/99468609f4a6e6cb1322b47f736ee4f2 to your computer and use it in GitHub Desktop.
wrapper script for rdrview to use links2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# about : this is a wrapper script which will run links2 (CLI terminal) with rdrview | |
# a program which will work like reader view on a modern web browser | |
# more information on links2 : http://links.twibright.com/about.php | |
# more information on rdview : https://github.com/eafer/rdrview | |
# configure proxy servers | |
# export http_proxy="http://host:port" | |
# export https_proxy="http://host:port" | |
# run reader view using links2 | |
rdrview -B links2 "${1}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# about : this is a wrapper script which will run curl (CLI terminal) with reader | |
# a program which will work like reader view on a modern web browser | |
# more information on reader : https://github.com/mrusme/reader | |
# more information on curl : https://curl.se | |
# configure proxy servers | |
# export http_proxy="http://host:port" | |
# export https_proxy="http://host:port" | |
# run something close to reader view using less for pagination (basic no asci escape sequences) | |
# curl -o - "${1}" 2>/dev/null | reader -o - | less | |
# run something close to reader view using less for pagination (more fancy ascii escape sequences) | |
curl -o - "${1}" 2>/dev/null | reader - | less -R |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# about : this is a wrapper script which will run links2 (CLI terminal) with rdrview | |
# a program which will work like reader view on a modern web browser | |
# more information on links2 : http://links.twibright.com/about.php | |
# more information on rdview : https://github.com/eafer/rdrview | |
# configure proxy servers | |
# export http_proxy="http://host:port" | |
# export https_proxy="http://host:port" | |
# run something close to reader view using links2 | |
links2 -dump "${1}" | |
# notes : | |
# if you are using w3m or linx you can also use -dump on lynx you can add -nolist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment