```Shell ~/src/EFForg/https-everywhere/utils/rewriter/rewriter.js . ``` Ref: https://github.com/EFForg/https-everywhere/tree/master/utils/rewriter Remove suspicious filemaster
@@ -20,7 +20,7 @@ | |||||
EBOOK_ID="${EBOOK_ID}" | EBOOK_ID="${EBOOK_ID}" | ||||
DIR="${XDG_CACHE_HOME:-$HOME/.cache}/nnn/gutenbooks/$EBOOK_ID" | DIR="${XDG_CACHE_HOME:-$HOME/.cache}/nnn/gutenbooks/$EBOOK_ID" | ||||
BROWSE_LINK="http://www.gutenberg.org/ebooks/search/?sort_order=downloads" | |||||
BROWSE_LINK="https://www.gutenberg.org/ebooks/search/?sort_order=downloads" | |||||
BROWSER="${BROWSER:-w3m}" | BROWSER="${BROWSER:-w3m}" | ||||
READER="${READER}" | READER="${READER}" | ||||
@@ -33,7 +33,7 @@ if [ -n "$EBOOK_ID" ]; then | |||||
curl -L -O "https://www.gutenberg.org/files/$EBOOK_ID/$EBOOK_ID-h.zip" | curl -L -O "https://www.gutenberg.org/files/$EBOOK_ID/$EBOOK_ID-h.zip" | ||||
unzip "$EBOOK_ID"-h.zip | unzip "$EBOOK_ID"-h.zip | ||||
else | else | ||||
curl -L -o "$EBOOK_ID".epub "http://www.gutenberg.org/ebooks/$EBOOK_ID.epub.noimages" | |||||
curl -L -o "$EBOOK_ID".epub "https://www.gutenberg.org/ebooks/$EBOOK_ID.epub.noimages" | |||||
fi | fi | ||||
fi | fi | ||||
@@ -521,7 +521,7 @@ if [ -n "${album_title}" ]; then | |||||
echo "Album '${album_title}' successfully created" | echo "Album '${album_title}' successfully created" | ||||
album_id="$(grep -Eo '"id":\s*"[^"]+"' <<<"${response}" | cut -d "\"" -f 4)" | album_id="$(grep -Eo '"id":\s*"[^"]+"' <<<"${response}" | cut -d "\"" -f 4)" | ||||
del_id="$(grep -Eo '"deletehash":\s*"[^"]+"' <<<"${response}" | cut -d "\"" -f 4)" | del_id="$(grep -Eo '"deletehash":\s*"[^"]+"' <<<"${response}" | cut -d "\"" -f 4)" | ||||
handle_album_creation_success "http://imgur.com/a/${album_id}" "${del_id}" "${album_title}" | |||||
handle_album_creation_success "https://imgur.com/a/${album_id}" "${del_id}" "${album_title}" | |||||
if [ "${login}" = "false" ]; then | if [ "${login}" = "false" ]; then | ||||
album_id="${del_id}" | album_id="${del_id}" | ||||
@@ -42,7 +42,7 @@ | |||||
# - `zathura`: PDF viewer | # - `zathura`: PDF viewer | ||||
# - but we allways fallback to `nuke` plugin | # - but we allways fallback to `nuke` plugin | ||||
# | # | ||||
# [1]: http://tools.suckless.org/tabbed/ | |||||
# [1]: https://tools.suckless.org/tabbed/ | |||||
# [2]: https://specifications.freedesktop.org/xembed-spec/xembed-spec-latest.html | # [2]: https://specifications.freedesktop.org/xembed-spec/xembed-spec-latest.html | ||||
# | # | ||||
# Shell: bash (job control is weakly specified in POSIX) | # Shell: bash (job control is weakly specified in POSIX) | ||||
@@ -876,7 +876,7 @@ static rlim_t max_openfds(void) | |||||
* Frees current memory if realloc() fails and returns NULL. | * Frees current memory if realloc() fails and returns NULL. | ||||
* | * | ||||
* As per the docs, the *alloc() family is supposed to be memory aligned: | * As per the docs, the *alloc() family is supposed to be memory aligned: | ||||
* Ubuntu: http://manpages.ubuntu.com/manpages/xenial/man3/malloc.3.html | |||||
* Ubuntu: https://manpages.ubuntu.com/manpages/xenial/man3/malloc.3.html | |||||
* macOS: https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man3/malloc.3.html | * macOS: https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man3/malloc.3.html | ||||
*/ | */ | ||||
static void *xrealloc(void *pcur, size_t len) | static void *xrealloc(void *pcur, size_t len) | ||||