WebKit2.WebView.prototype.get_settings

function get_settings(): WebKit2.Settings {
    // Gjs wrapper for webkit_web_view_get_settings()
}
  

Gets the WebKit2.Settings currently applied to web_view. If no other WebKit2.Settings have been explicitly applied to web_view with WebKit2.WebView.prototype.set_settings, the default WebKit2.Settings will be returned. This method always returns a valid WebKit2.Settings object. To modify any of the web_view settings, you can either create a new WebKit2.Settings object with WebKit2.Settings.new, setting the desired preferences, and then replace the existing web_view settings with WebKit2.WebView.prototype.set_settings or get the existing web_view settings and update it directly. WebKit2.Settings objects can be shared by multiple WebKit2.WebView<!-- -->s, so modifying the settings of a WebKit2.WebView would affect other WebKit2.WebView<!-- -->s using the same WebKit2.Settings.

Returns

the WebKit2.Settings attached to web_view