diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc index 6c9b7f1a8..b9e525075 100644 --- a/doc/help/commands.asciidoc +++ b/doc/help/commands.asciidoc @@ -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 diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 40bb45dd0..13f57e7dc 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -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')