Improve jseval --world descriptions

This commit is contained in:
Florian Bruhin 2020-09-15 16:30:54 +02:00
parent 55fb6a17fc
commit afb3e8e01b
2 changed files with 19 additions and 2 deletions

View File

@ -765,7 +765,16 @@ Evaluate a JavaScript string.
* +*-u*+, +*--url*+: Interpret js-code as a `javascript:...` URL.
* +*-q*+, +*--quiet*+: Don't show resulting JS object.
* +*-w*+, +*--world*+: Ignored on QtWebKit. On QtWebEngine, a world ID or name to run the snippet in.
* +*-w*+, +*--world*+: Ignored on QtWebKit. On QtWebEngine, a world ID or name to run the snippet in. Predefined world names are:
- `main` (same world as the web page's JavaScript and
Greasemonkey, unless overridden via `@qute-js-world`)
- `application` (used for internal qutebrowser JS code,
should not be used via `:jseval` unless you know what
you're doing)
- `user` (currently unused)
- `jseval` (used for this command by default)
==== note

View File

@ -1664,7 +1664,15 @@ class CommandDispatcher:
url: Interpret js-code as a `javascript:...` URL.
quiet: Don't show resulting JS object.
world: Ignored on QtWebKit. On QtWebEngine, a world ID or name to
run the snippet in.
run the snippet in. Predefined world names are:
- `main` (same world as the web page's JavaScript and
Greasemonkey, unless overridden via `@qute-js-world`)
- `application` (used for internal qutebrowser JS code,
should not be used via `:jseval` unless you know what
you're doing)
- `user` (currently unused)
- `jseval` (used for this command by default)
"""
cmdutils.check_exclusive((file, url), 'fu')