Skip to content

Commit

Permalink
Remove references to domain_props (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanholm committed May 16, 2019
1 parent b24e6d4 commit bc70fca
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
20 changes: 14 additions & 6 deletions doc/luadoc/pages/02-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,21 @@ This is not currently possible, as with WebKit 2 there is no way to give a webvi

### How do I change the default zoom level?

The best way to change the default zoom level is to add a rule to `domain_props`:
Set the `webview.zoom_level`, in one of three ways.

globals.domain_props.all = {
...
zoom_level = 1.5, -- a 50% zoom
...
}
Probably the easiest way is with the `:set ` command:

set webview.zoom_level 150
seton example.com webview.zoom_level 200

This sets the zoom level to 150% by default, and 200% on
<https://example.com>. You can also change the zoom level at the
<luakit://settings/> page. Finally, if you prefer to specify the zoom
level in your configuration file, you may also do so:

local settings = require "settings"
settings.webview.zoom_level = 150
settings.on["example.com"].webview.zoom_level = 200

### How do I set a custom `about:blank` page?

Expand Down
4 changes: 2 additions & 2 deletions lib/noscript.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--- NoScript plugin for luakit.
--
-- This module provides an alternative method of restricting web page access to
-- JavaScript and plugins, in addition to using the `domain_props` module.
-- This module provides a method of restricting web page access to JavaScript
-- and plugins.
--
-- This module provides keybindings for enabling/disabling either plugins or
-- JavaScript for the current web page, as well as a status bar widget that
Expand Down

0 comments on commit bc70fca

Please sign in to comment.