summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-06-15 17:06:23 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-06-15 17:06:23 +0200
commitcf58283b6425f940b52323b0be4caccf3cb63880 (patch)
treeb72d3b58726185cb3ab0b96207473e0902393002
parent3fd7c403d1337a81db14ea6e3aafdd7456a32fd9 (diff)
downloadqutebrowser-cf58283b6425f940b52323b0be4caccf3cb63880.tar.gz
qutebrowser-cf58283b6425f940b52323b0be4caccf3cb63880.zip
Update docs
-rw-r--r--doc/changelog.asciidoc3
-rw-r--r--doc/userscripts.asciidoc4
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.