From cf58283b6425f940b52323b0be4caccf3cb63880 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 15 Jun 2021 17:06:23 +0200 Subject: Update docs --- doc/changelog.asciidoc | 3 +++ doc/userscripts.asciidoc | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index 96e7cb66c..51439ddc9 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -31,6 +31,9 @@ Changed - The `fonts.web.*` settings now support URL patterns. - The `:greasemonkey-reload` command now shows a list of loaded scripts and has a new `--quiet` switch to suppress that message. +- When launching an userscript via hints, a new `QUTE_CURRENT_URL` environment + variable now points to the current page (rather than the URL of the selected + element, where `QUTE_URL` points to). Fixed ~~~~~ diff --git a/doc/userscripts.asciidoc b/doc/userscripts.asciidoc index 869607b9f..5ff358ee0 100644 --- a/doc/userscripts.asciidoc +++ b/doc/userscripts.asciidoc @@ -52,7 +52,7 @@ The following environment variables will be set when a userscript is launched: In `command` mode: -- `QUTE_URL`: The current URL. +- `QUTE_URL`: The current page URL. - `QUTE_TITLE`: The title of the current page. - `QUTE_SELECTED_TEXT`: The text currently selected on the page. - `QUTE_COUNT`: The `count` from the spawn command running the userscript. @@ -60,7 +60,7 @@ In `command` mode: In `hints` mode: - `QUTE_URL`: The URL selected via hints. -- `QUTE_CURRENT_URL`: The current URL. +- `QUTE_CURRENT_URL`: The current page URL. - `QUTE_SELECTED_TEXT`: The plain text of the element selected via hints. - `QUTE_SELECTED_HTML`: The HTML of the element selected via hints. -- cgit v1.2.3-54-g00ecf