qutebrowser: clean up long/duplicate comments

This commit is contained in:
surtur 2022-10-30 02:23:11 +02:00
parent 43b45ffaf7
commit af8e5c7a0d
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -75,28 +75,6 @@ c.content.autoplay = False
# - never: Don't accept cookies at all.
config.set('content.cookies.accept', 'all', 'chrome-devtools://*')
# Which cookies to accept. With QtWebEngine, this setting also controls
# other features with tracking capabilities similar to those of cookies;
# including IndexedDB, DOM storage, filesystem API, service workers, and
# AppCache. Note that with QtWebKit, only `all` and `never` are
# supported as per-domain values. Setting `no-3rdparty` or `no-
# unknown-3rdparty` per-domain on QtWebKit will have the same effect as
# `all`. If this setting is used with URL patterns, the pattern gets
# applied to the origin/first party URL of the page making the request,
# not the request URL. With QtWebEngine 5.15.0+, paths will be stripped
# from URLs, so URL patterns using paths will not match. With
# QtWebEngine 5.15.2+, subdomains are additionally stripped as well, so
# you will typically need to set this setting for `example.com` when the
# cookie is set on `somesubdomain.example.com` for it to work properly.
# To debug issues with this setting, start qutebrowser with `--debug
# --logfilter network --debug-flag log-cookies` which will show all
# cookies being set.
# Type: String
# Valid values:
# - all: Accept all cookies.
# - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail.
# - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty.
# - never: Don't accept cookies at all.
config.set('content.cookies.accept', 'all', 'devtools://*')
# Default encoding to use for websites. The encoding must be a string
@ -175,36 +153,8 @@ c.content.headers.referer = 'same-domain'
# Type: FormatString
config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}', 'https://web.whatsapp.com/')
# User agent to send. The following placeholders are defined: *
# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
# The underlying WebKit version (set to a fixed value with
# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
# QtWebEngine. * `{qt_version}`: The underlying Qt version. *
# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
# QtWebEngine. * `{upstream_browser_version}`: The corresponding
# Safari/Chrome version. * `{qutebrowser_version}`: The currently
# running qutebrowser version. The default value is equal to the
# unchanged user agent of QtWebKit/QtWebEngine. Note that the value
# read from JavaScript is always the global value. With QtWebEngine
# between 5.12 and 5.14 (inclusive), changing the value exposed to
# JavaScript requires a restart.
# Type: FormatString
config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version} Edg/{upstream_browser_version}', 'https://accounts.google.com/*')
config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}; rv:90.0) Gecko/20100101 Firefox/90.0', 'https://accounts.google.com/*')
# User agent to send. The following placeholders are defined: *
# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
# The underlying WebKit version (set to a fixed value with
# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
# QtWebEngine. * `{qt_version}`: The underlying Qt version. *
# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
# QtWebEngine. * `{upstream_browser_version}`: The corresponding
# Safari/Chrome version. * `{qutebrowser_version}`: The currently
# running qutebrowser version. The default value is equal to the
# unchanged user agent of QtWebKit/QtWebEngine. Note that the value
# read from JavaScript is always the global value. With QtWebEngine
# between 5.12 and 5.14 (inclusive), changing the value exposed to
# JavaScript requires a restart.
# Type: FormatString
config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99 Safari/537.36', 'https://*.slack.com/*')
# Which method of blocking ads should be used. Support for Adblock Plus
@ -245,16 +195,14 @@ config.set('content.images', True, 'devtools://*')
# Type: Bool
c.content.javascript.can_access_clipboard = False
# Allow JavaScript to read from or write to the clipboard.
config.set('content.javascript.can_access_clipboard', True, 'git.dotya.ml')
config.set('content.javascript.can_access_clipboard', True, 'dotya.ml')
config.set('content.javascript.can_access_clipboard', True, 'drone.dotya.ml')
config.set('content.javascript.can_access_clipboard', True, 'github.com')
## Allow JavaScript to close tabs.
## Type: Bool
# Allow JavaScript to close tabs.
# Type: Bool
c.content.javascript.can_close_tabs = False
# Enable JavaScript.
@ -285,10 +233,7 @@ c.content.media.audio_video_capture = 'ask'
c.content.media.video_capture = 'ask'
# Whether to show the origin URL for notifications. Note that URL
# patterns with this setting only get matched against the origin part of
# the URL, so e.g. paths in patterns will never match. Note that with
# the `qt` presenter, origins are never shown.
# Whether to show the origin URL for notifications.
# Type: Bool
c.content.notifications.show_origin = True
@ -306,18 +251,10 @@ c.content.user_stylesheets = 'stylesheets/user.css'
# Type: Bool
c.content.webgl = True
# Automatically mute tabs. Note that if the `:tab-mute` command is used,
# the mute status for the affected tab is now controlled manually, and
# this setting doesn't have any effect.
# Automatically mute tabs.
# Type: Bool
c.content.mute = True
# Editor (and arguments) to use for the `edit-*` commands. The following
# placeholders are defined: * `{file}`: Filename of the file to be
# edited. * `{line}`: Line in which the caret is found in the text. *
# `{column}`: Column in which the caret is found in the text. *
# `{line0}`: Same as `{line}`, but starting from index 0. * `{column0}`:
# Same as `{column}`, but starting from index 0.
# Type: ShellCommand
c.editor.command = ['kitty', 'vim', '-f', '{file}']
@ -325,11 +262,6 @@ c.editor.command = ['kitty', 'vim', '-f', '{file}']
# Type: Encoding
c.editor.encoding = 'utf-8'
# Command (and arguments) to use for selecting a single folder in forms.
# The command should write the selected folder path to the specified
# file or stdout. The following placeholders are defined: * `{}`:
# Filename of the file to be written to. If not contained in any
# argument, the standard output of the command is read instead.
# Type: ShellCommand
c.fileselect.folder.command = ['kitty', 'ranger', '--choosedir={}']
@ -385,12 +317,7 @@ c.tabs.favicons.scale = 1
c.tabs.padding = {'top': 0, 'right': 0, 'bottom': 0, 'left': 0}
# Position of the tab bar.
# Type: Position
# Valid values:
# - top
# - bottom
# - left
# - right
# Valid values:[top, bottom, left, right]
c.tabs.position = 'top'
# Width (in pixels or as percentage of the window) of the tab bar if
@ -409,24 +336,6 @@ c.tabs.min_width = -1
# Type: Int
c.tabs.indicator.width = 1
# Search engines which can be used via the address bar. Maps a search
# engine name (such as `DEFAULT`, or `ddg`) to a URL with a `{}`
# placeholder. The placeholder will be replaced by the search term, use
# `{{` and `}}` for literal `{`/`}` braces. The following further
# placeholds are defined to configure how special characters in the
# search terms are replaced by safe characters (called 'quoting'): *
# `{}` and `{semiquoted}` quote everything except slashes; this is the
# most sensible choice for almost all search engines (for the search
# term `slash/and&amp` this placeholder expands to `slash/and%26amp`).
# * `{quoted}` quotes all characters (for `slash/and&amp` this
# placeholder expands to `slash%2Fand%26amp`). * `{unquoted}` quotes
# nothing (for `slash/and&amp` this placeholder expands to
# `slash/and&amp`). * `{0}` means the same as `{}`, but can be used
# multiple times. The search engine named `DEFAULT` is used when
# `url.auto_search` is turned on and something else than a URL was
# entered to be opened. Other search engines can be used by prepending
# the search engine name to the search term, e.g. `:open google
# qutebrowser`.
# Type: Dict
c.url.searchengines = {
'DEFAULT': 'https://searxng.dotya.ml/search?q={}',
@ -439,12 +348,6 @@ c.url.searchengines = {
# Type: Bool
c.window.hide_decoration = False
# Set the main window background to transparent. This allows having a
# transparent tab- or statusbar (might require a compositor such as
# picom). However, it breaks some functionality such as dmenu embedding
# via its `-w` option. On some systems, it was additionally reported
# that main window transparency negatively affects performance. Note
# this setting only affects windows opened after setting it.
# Type: Bool
c.window.transparent = False
@ -464,12 +367,6 @@ c.zoom.levels = [
# Type: QtColor
c.colors.webpage.bg = '#1c1b22'
# Value to use for `prefers-color-scheme:` for websites. The "light"
# value is only available with QtWebEngine 5.15.2+. On older versions,
# it is the same as "auto". The "auto" value is broken on QtWebEngine
# 5.15.2 due to a Qt bug. There, it will fall back to "light"
# unconditionally.
# Type: String
# Valid values:
# - auto: Use the system-wide color scheme setting.
# - light: Force a light theme.
@ -488,15 +385,12 @@ c.fonts.default_size = '16px'
# Type: Font
c.fonts.contextmenu = 'FiraCode'
# Font used for selected tabs.
# Type: Font
c.fonts.tabs.selected = 'FiraCode'
# Font family for fixed fonts.
# Type: FontFamily
c.fonts.web.family.standard = 'FiraCode'
c.fonts.web.family.fixed = 'FiraCode'
c.fonts.web.family.standard = 'FiraCode'
c.fonts.web.family.sans_serif = 'FiraCode'
# Default font size (in pixels) for regular text.