def intercept(info: interceptor.Request):
url = info.request_url
if url.host() == "twitter.com":
- url.setHost("nitter.dark.fail")
+ url.setHost("nitter.eu")
message.info("Redirecting to " + url.toString())
info.redirect(url)
if url.host() == "xkcd.com":
## - 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.
-c.content.cookies.accept = 'never'
+c.content.cookies.accept = 'no-3rdparty'
## Store cookies.
## Type: Bool
## Valid values:
## - default: Use the default file selector.
## - external: Use an external command.
-# c.fileselect.handler = 'default'
+c.fileselect.handler = 'external'
## Command (and arguments) to use for selecting multiple files in forms.
## The command should write the selected file paths to the specified
## file, separated by newlines. The following placeholders are defined: *
## `{}`: Filename of the file to be written to.
## Type: ShellCommand
-# c.fileselect.multiple_files.command = ['xterm', '-e', 'ranger', '--choosefiles={}']
+c.fileselect.multiple_files.command = in_terminal(['ranger', '--choosefiles={}'])
## Command (and arguments) to use for selecting a single file in forms.
## The command should write the selected file path to the specified file.
## The following placeholders are defined: * `{}`: Filename of the file
## to be written to.
## Type: ShellCommand
-# c.fileselect.single_file.command = ['xterm', '-e', 'ranger', '--choosefile={}']
+c.fileselect.multiple_files.command = in_terminal(['ranger', '--choosefile={}'])
## Font used in the completion categories.
## Type: Font
## unreliable on this setting, and they may match the url you are
## navigating to, or the URL you are navigating from.
## Type: Bool
-# c.input.insert_mode.leave_on_load = False
+c.input.insert_mode.leave_on_load = True
## Switch to insert mode when clicking flash and other plugins.
## Type: Bool
'ddg': 'https://duckduckgo.com/?t=chakra&q={}',
'slack': 'https://focalpointpositioning.slack.com/messages/{}',
'std': 'http://en.cppreference.com/mwiki/index.php?title=Special%3ASearch&search={}',
+ 'hoogle': 'https://hoogle.haskell.org/?hoogle={}',
+ 'h': 'https://hoogle.haskell.org/?hoogle={}',
}
## Page(s) to open at the start.
config.bind('zl', 'spawn --userscript qute-pass')
config.bind('zul', 'spawn --userscript qute-pass --username-only')
config.bind('zpl', 'spawn --userscript qute-pass --password-only')
+config.bind('zol', 'spawn --userscript qute-pass --otp-only')
# config.bind('{{', 'navigate prev -t')
# config.bind('}}', 'navigate next -t')