# dillorc
# Sample dillo initialization file.
#
# Lines that start with a '#' are comments.
# "#option=..." shows the built-in default.
# "# option=..." is an additional example.
# "option=..." overrides the built-in value.

#-------------------------------------------------------------------------
#                             FIRST SECTION                             :)
#-------------------------------------------------------------------------

# Set the desired initial browser size
# geometry=650x545+0+20
#geometry=780x580

# Change this (and the following option) if you want to have text-only browsing
# from the start. (While browsing, this can be changed from the tools/settings
# menu.)
#load_images=YES

# Change this if you want background images to be loaded initially.
# (While browsing, this can be changed from the tools/settings menu.)
#load_background_images=NO

# Change this if you want to disable loading of CSS stylesheets initially.
# (While browsing, this can be changed from the tools/settings menu.)
#load_stylesheets=YES

# Change this if you want to disable parsing of embedded CSS initially.
# (While browsing, this can be changed from the tools/settings menu.)
#parse_embedded_css=YES

# Set your default directory for download/save operations
#save_dir=/tmp

#-------------------------------------------------------------------------
#                           RENDERING SECTION
#-------------------------------------------------------------------------

# Default fonts:
#
# If FLTK 1.4+ has been configured to use Pango, check the list from "pango-list | grep : | sed "s/.*: *//g" | sort".
#
# If FLTK has been configured with Xft enabled (the default), you can use
# scalable fonts such as DejaVu or Liberation (try running
# "fc-list : family | cut -d ',' -f 2 | sort").
#font_serif="DejaVu Serif"
#font_sans_serif="DejaVu Sans"
#font_cursive="URW Chancery L"
#font_fantasy="DejaVu Sans"
#font_monospace="DejaVu Sans Mono"
#
# Otherwise, use bitmapped fonts like the following (for a list, try running
# "xlsfonts -fn *-iso10646-1 | grep -v -e -0-0 | cut -d - -f 3 | sort | uniq").
# font_serif="times"
# font_sans_serif="helvetica"
# font_cursive="helvetica"
# font_fantasy="helvetica"
# font_monospace="courier"

# Pixels per inch. The system may employ scaling that would affect what you want to use here.
# dpi=269
#dpi=(autodetected by default)

# In typographic points, which are 72 per inch. An inch is 25.4 millimeters.
# At the moment when I write this, I have the default set to 8.
# default_text_size_pt

# Maximum font size in pixels
#font_max_size=100

# Minimum font size in pixels
#font_min_size=6

# Show tooltip popups for HTML title attributes
#show_tooltip=NO

# Set this to YES to limit the word wrap width to the viewport width
#limit_text_width=YES

# If this is set to YES, all CSS size specifications are adjusted so that
# all contents can be displayed. (Except for tables, see below.)
#adjust_min_width=YES

# If this is set to YES, all CSS size specifications for tables are
# adjusted so that all contents can be displayed. This is seperated
# from "adjust_min_width" so that it is able to mimic Firefox, which
# differenciates between tables and, say, textblocks (in some cases).
#adjust_table_min_width=YES

#-------------------------------------------------------------------------
#               TWEAKING THE LINEBREAKING ALGORITHM
#-------------------------------------------------------------------------

# Penalties are used to control good and bad break points. The bigger
# the penalty for a given break point, the less likely the line is
# broken here. "inf" means that breaking is prohibited, "-inf" means
# that a line *must* be broken here. (The latter should not be used
# here, however.) Normal spaces get a penalty of 0. The exact
# definition can be found in doc/dw-line-breaking.doc.

# Penalties for hyphenation breaks; this covers automatic hyphenation,
# soft hyphens, and unconditional hyphens. Since hyphenation should
# rather be avoided, the default values are larger than 0.

# This is used for hyphenation points, when there is no hyphen or dash
# before:
#penalty_hyphen = 1

# This is used for hyphenation points, when the line before ends
# already with a hyphen or a dash. Consequent lines ending with
# hyphens or dashes should be avoided, so this value is bigger than
# "penalty_hyphen":
#penalty_hyphen_2 = 8

# The same for a break right of an em-dash, when there are no spaces
# surrounding it (as in English). The default values are the same as
# for hyphens:
#penalty_em_dash_right = 1
#penalty_em_dash_right_2 = 8

# Penalty for a break *left* of an em-dash. Since a line ending with
# an em-dash (and so breaking right of the em-dash) looks better than
# a line beginning with an em-dash (breaking left of an em-dash), the
# default value is bigger than "penalty_em_dash_right":
#penalty_em_dash_left = 8

# Notice that there is no "penalty_em_dash_left_2", since breaking
# left of an em-dash makes the line *begin*, not *end* with a dash.

# This factor is multiplied with the line height to get the
# stretchability of a non-justified line. The larger this factor (and
# thus, the stretchability), the less likely the words are hyphenated;
# so you can use this value to control hyphenation of non-justified
# text.
#stretchability_factor=1


#-------------------------------------------------------------------------
#                            NETWORK SECTION
#-------------------------------------------------------------------------

# Set the start page.
#start_page="about:blank"

# Set the URLs used for web searches.
# "%s" is replaced with the search keywords separated by '+'.
# Format: search_url="[prefix ][<label> ][POST@]<url>"
# You can enable multiple search_url strings at once and select from among
# them at runtime, with the first being the default.
# (the prefix serves to search from the Location Bar. e.g. "dd dillo image")
#
# Most search engines use forms that submit queries using the POST HTTP method rather
# than GET. They generally tolerate GET, but if they expect POST, for various reasons
# it’s good to meet their expectations.
search_url="dd DuckDuckGo POST@https://lite.duckduckgo.com/lite/?q=%s"
search_url="st Startpage POST@https://www.startpage.com/sp/search?query=%s&cat=web&abp=-1"
search_url="wi Wikipedia https://www.wikipedia.org/search-redirect.php?family=Wikipedia&search=%s&go=Go"
search_url="fd Free Dictionary https://www.thefreedictionary.com/_/search.aspx?tab=1&SearchBy=0&Word=%s&TFDBy=0"

# Number of seconds before Dillo stops trying to connect to a server.
#connect_timeout=30

# Currently you can set this for TLS versions from 1.0 to 1.3. Or you can
# use "default" for libcurl’s default (in case it’s the year 2045 and you’re
# playing software archaeologist and 1.3 has been relegated to the dustbin).
#tls_min_version="1.2"

# If you know what ciphers you want and you know which TLS library is being
# used (printed out during initialization if run from a terminal), you can
# specify a list in that library’s format here. (See CURLOPT_SSL_CIPHER_LIST)
#(default is just whatever libcurl and/or the TLS libraries happen to have as
# their default)
# For OpenSSL, the following seems good, judging by ssllabs’s opinions and then trimming down further to be more similar to Firefox.
# tls_cipher_list="HIGH:!aNULL:!CAMELLIA:!ARIA:!DSS:!AESCCM:!aGOST:!DHE:!RSA:!ECDHE-ECDSA-AES256-SHA384:!ECDHE-RSA-AES256-SHA384:!ECDHE-ECDSA-AES128-SHA256:!ECDHE-RSA-AES128-SHA256:!SHA"
# tls_cipher_list="HIGH:!aNULL:!DSS:!AESCCM:!DHE:!RSA:!CBC:!ARIA:!CAMELLIA:!aGOST"
# For gnutls, a decent one may be:
# tls_cipher_list="PFS"

# If set, use DNS-over-HTTPS (DoH). The list below is from https://wiki.mozilla.org/Security/DOH-resolver-policy#Conforming_Resolvers as of 202506.
#(by default, DoH is not used)
#dns_over_https_url="https://private.canadianshield.cira.ca/dns-query"
#dns_over_https_url="https://mozilla.cloudflare-dns.com/dns-query"
#dns_over_https_url="https://doh.xfinity.com/dns-query"
#dns_over_https_url="https://firefox.dns.nextdns.io"
#dns_over_https_url="https://dns.shaw.ca/dns-query"
# When tested, Shaw wasn’t working because it doesn’t actually seem to want to use any encryption in the connection.
#
# https://meta.wikimedia.org/wiki/Wikimedia_DNS has one at https://wikimedia-dns.org/dns-query or 185.71.138.138 or 2001:67c:930::1 as of 202506.
# https://en.wikipedia.org/wiki/Public_recursive_name_server lists more from: AdGuard, Alibaba, Google, Mullvad, Cisco Umbrella / OpenDNS, Quad9, and Yandex.


# If set, allow plain HTTP requests. If not set, always change them to HTTPS requests.
#http_insecure=NO

# If set, dillo will ask web servers to send pages in this language.
# This setting does NOT change dillo's user interface.
# Format explained: www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4
# Language-REGION values: www.iana.org/assignments/language-subtag-registry/language-subtag-registry
#
# Requesting English is considered good to fight fingerprinting. The default is what I observed Firefox to be sending in 2025.
# http_language="de"
# http_language="pt-BR"
#http_language="en-US,en;q=0.5"

# Maximum number of simultaneous TCP connections to a single server or proxy.
# http_max_conns=6

# Set the proxy information for http/https.
# Note that the http_proxy environment variable overrides this setting.
#
# http_proxy="http://localhost:8080/"
#(by default, no proxy is used)

# If you need to provide a  user/password pair for the proxy,
# set the proxy user name here and Dillo will ask for the password later.
# http_proxyuser="joe"
#(by default, no proxy is used)

# Set the domains to access without proxy
# no_proxy = ".hola.com .mynet.cl .hi.de"
#no_proxy="localhost 127.0.0.1"

# Set the HTTP Referer (sic) header.
# Note that there is no option to reveal the page that you came from because it
# would endanger your privacy. 'host' and 'path' allow you to pretend that the
# link you followed was on the same site that you're going to.
# none  : Don't send any Referer header at all.
# host  : Send the requested URI's hostname.
# path  : Send the requested URI's host and path.
#http_referer=host

# Set the HTTP User-Agent header.
# Traditionally, this has been useful for privacy and for working around
# servers that assume Dillo is less capable than it really is.
#
# In 2025, however, everyone has begun to throw javascript challenges at
# anything claiming to be a typical browser (usually that equates to
# "includes the word 'Mozilla'").
#
# http_user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0"
# http_user_agent="Mozilla/5.0 (Android 14; Mobile; rv:139.0) Gecko/139.0 Firefox/139.0"
#The default is "Dillo/"+current_version_number+" (Mobile fork)"

#-------------------------------------------------------------------------
#                            COLORS SECTION
#-------------------------------------------------------------------------

# Set the page background color
# bg_color=gray
# bg_color=0xd6d6c0
#bg_color=0xdcd1ba

# If your eyes suffer with white backgrounds, change this.
#allow_white_bg=YES

# If allow_white_bg is set to NO, white backgrounds are replaced by
# this color.
#white_bg_replacement=0xe0e0a3

# When set to YES, the page author's visited link color may be overridden
# to allow better contrast with text/links/background
#contrast_visited_color=YES


#-------------------------------------------------------------------------
#                        USER INTERFACE SECTION
#-------------------------------------------------------------------------

# UI theme
# "none" is the default FLTK appearance, which "resembles old Windows...and
# old GTK/KDE".
# "plastic" "is inspired by the Aqua user interface on Mac OS X".
# "gtk+" "is inspired by the Red Hat Bluecurve theme".
# "gleam" "a sort of Clearlooks Glossy scheme".
#
# If you have FLTK 1.4.0 or newer, you can specify "oxy", which is said to
# resemble a KDE Oxygen theme. (Check "fltk-config --version")
#
#theme=none
# theme=gtk+
# theme=plastic
# theme=gleam
# theme=oxy

# UI colors
# Note that FLTK may sometimes override colors, generally for contrast and
# readability.
#
# ui_fg_color, ui_main_bg_color, ui_text_bg_color, and ui_selection_color
# map to concepts in the underlying FLTK toolkit which are described as:
# "the default foreground color...used for labels and text", "default
# background color", "the default background color for text, list, and
# valuator widgets", and "the default selection/highlight color". They
# sometimes have other uses in the more complex FLTK widgets.
#
# ui_button_highlight_color is the background used when the mouse cursor is
# over a button. By default, this is a lightened version of the main
# background color.
#
# ui_insecure_color is the color of the URL box (“Location”) if Dillo is
# currently set to allow insecure HTTP requests. See also http_insecure.
#
# Note to packagers: leaving these variables for the system to guess
# gives different results in different environments, so we played it safe
# by defining the traditional colors.  Please choose the color theme that
# better fits your distro.

ui_insecure_color=red

#
# Gray theme (traditional)
#
ui_fg_color=black
ui_main_bg_color=#c6c6c6
ui_text_bg_color=#bfdabf
ui_selection_color=#191970
ui_button_highlight_color=#a9a9a9

#
# Earthly theme:
#
#ui_fg_color=#100404
#ui_main_bg_color=#c2a47b
#ui_text_bg_color=#cdc9a5
#ui_selection_color=#763024

#
# Greenish theme:
#
#ui_fg_color=#100404
#ui_main_bg_color=#c8d394
#ui_text_bg_color=#bdd8b6
#ui_selection_color=#7c5f42
#ui_button_highlight_color=#adad70

#Minimum sizes for UI buttons in millimeters. These are doubles rather than integers for the sake of making zoom smoother.
#Currently 5 and 7, respectively, by default.
#ui_min_button_h_mm
#ui_min_button_w_mm

# Here you can choose to hide some widgets of the dillo panel...
#show_back=YES
#show_forw=YES
#show_reload=NO
#show_stop=YES
#show_bookmarks=NO
#show_menubutton=YES

# Show tooltip popups for the UI
#show_ui_tooltip=NO

# When filling out forms, our default behaviour is to submit on enterpress,
# but only when there's a single text entry (to avoid incomplete submits).
# OTOH, if you have to fill out the same form repeatedly, you may find it
# useful to keep away from the mouse by forcing enter to submit.
#enterpress_forces_submit=NO

# A mouse's middle click over a link opens a new Tab.
# If you prefer to open a new Window instead, set it to NO.
#middle_click_opens_new_tab=YES

# Which mouse button should perform drag scrolling?
# 0 to disable.
# 2 is traditional.
# 1 is more useful on a touch screen without any proper keyboard/mouse when FLTK doesn’t have multi-touch implemented yet.
# For 1, use the page popup menu when you need text selection.
#drag_scrolling_button=1

# Focus follows new Tabs.
# You can hold down SHIFT when you want the opposite of this choice.
#focus_new_tab=YES

# Ask before quitting Dillo with more than one window or tab open.
#show_quit_dialog=YES

# Scrollbar on left and navigation buttons huddled toward left.
#ui_left_handed=NO

# Long push length
# How long should a left button press be held to become a right button press? In seconds. To disable it, set it to 0.
#long_press_length=1.0

# Drag threshold in pixels
# Distance (x or y) for the press to move before it is considered a drag. This is not used universally, but in cases where it is important to distinguish between a press and a drag: in a potential long press, or when showing/hiding scrollbars.
#drag_threshold=5

#-------------------------------------------------------------------------
#                        DEBUG MESSAGES SECTION
#-------------------------------------------------------------------------

# Soon we should add the "show_debug_messages=NO" option...

# Generic messages to the terminal. Warnings, errors, informational.
#show_msg=YES


#-------------------------------------------------------------------------
#                        HTML BUG MESSAGES SECTION
#-------------------------------------------------------------------------

# Accepted by the W3C validator but "strongly discouraged" by the SPEC.
# (Such as "TAB character inside <PRE>"). This is an old option from the
# days of HTML 4.
#show_extra_warnings=NO


# -----------------------------------------------------------------------
# dillorc ends here.
