Improve jseval --world descriptions
This commit is contained in:
parent
55fb6a17fc
commit
afb3e8e01b
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue