2021-09-27 21:46:38 +00:00
|
|
|
import dracula.draw
|
|
|
|
|
|
|
|
def init(c):
|
2022-08-30 21:03:21 +00:00
|
|
|
c.auto_save.session = True
|
|
|
|
|
2021-09-27 21:46:38 +00:00
|
|
|
#c.colors.webpage.darkmode.enabled = True
|
|
|
|
#c.colors.webpage.darkmode.policy.images = 'never'
|
|
|
|
c.colors.webpage.preferred_color_scheme = 'dark'
|
|
|
|
|
|
|
|
#c.content.proxy = "socks://localhost:9050/"
|
2022-03-19 10:33:43 +00:00
|
|
|
c.content.headers.accept_language = "en-US,en;q=0.5"
|
2022-08-30 21:03:21 +00:00
|
|
|
#c.content.headers.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
|
2022-04-05 21:05:00 +00:00
|
|
|
c.content.tls.certificate_errors = 'block'
|
2021-09-27 21:46:38 +00:00
|
|
|
|
|
|
|
c.downloads.position = 'bottom'
|
|
|
|
|
|
|
|
c.fonts.hints = 'bold 18px default_family'
|
|
|
|
|
2022-12-20 00:13:24 +00:00
|
|
|
c.session.default_name = 'autosave'
|
|
|
|
|
2021-09-27 21:46:38 +00:00
|
|
|
c.tabs.background = True
|
|
|
|
c.tabs.mousewheel_switching = False
|
|
|
|
c.tabs.new_position.related = 'last'
|
2021-12-12 20:18:38 +00:00
|
|
|
c.tabs.pinned.frozen = False
|
2021-09-27 21:46:38 +00:00
|
|
|
|
2022-05-15 21:46:53 +00:00
|
|
|
c.qt.workarounds.remove_service_workers = True
|
|
|
|
|
2022-01-30 20:28:50 +00:00
|
|
|
c.url.searchengines = {
|
|
|
|
'DEFAULT': 'https://duckduckgo.com/?q={}',
|
2023-12-10 23:36:03 +00:00
|
|
|
'ddg': 'https://duckduckgo.com/?q={}',
|
|
|
|
'kagi': 'https://kagi.com/search?q={}'
|
2022-01-30 20:28:50 +00:00
|
|
|
}
|
2022-08-30 21:03:21 +00:00
|
|
|
c.url.start_pages = ['rss.serguzim.me', 'open.spotify.com']
|
2021-09-27 21:46:38 +00:00
|
|
|
|
2022-11-13 22:22:21 +00:00
|
|
|
c.zoom.mouse_divider = 0
|
|
|
|
|
2021-09-27 21:46:38 +00:00
|
|
|
dracula.draw.blood(c, {
|
|
|
|
'spacing': {
|
|
|
|
'vertical': 1,
|
|
|
|
'horizontal': 3
|
|
|
|
}
|
|
|
|
})
|