From 1fc2dbe5a3e867eb5e6c2f759409f1c94146a794 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 22 Oct 2022 11:19:14 +0200 Subject: [proxy] make popup script injection configurable throught the web UI --- src/hydrilla/locales/en_US/LC_MESSAGES/messages.po | 152 +++++++++++++++------ 1 file changed, 109 insertions(+), 43 deletions(-) (limited to 'src/hydrilla/locales/en_US/LC_MESSAGES/messages.po') diff --git a/src/hydrilla/locales/en_US/LC_MESSAGES/messages.po b/src/hydrilla/locales/en_US/LC_MESSAGES/messages.po index defbbcc..bb41daf 100644 --- a/src/hydrilla/locales/en_US/LC_MESSAGES/messages.po +++ b/src/hydrilla/locales/en_US/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: hydrilla 2.0\n" "Report-Msgid-Bugs-To: koszko@koszko.org\n" -"POT-Creation-Date: 2022-10-19 09:36+0200\n" +"POT-Creation-Date: 2022-10-22 11:17+0200\n" "PO-Revision-Date: 2022-02-12 00:00+0000\n" "Last-Translator: Wojtek Kosior \n" "Language: en_US\n" @@ -79,7 +79,7 @@ msgid "built_package_files_destination" msgstr "Destination directory to write built package files to." #: src/hydrilla/builder/build.py:499 -#: src/hydrilla/mitmproxy_launcher/launch.py:69 +#: src/hydrilla/mitmproxy_launcher/launch.py:66 #: src/hydrilla/server/serve.py:211 src/hydrilla/server/serve.py:229 #: src/hydrilla/server/serve.py:269 #, python-format @@ -164,7 +164,7 @@ msgstr "Not a valid JSON file." msgid "no_schema_number_in_instance" msgstr "JSON schema number is missing from a document." -#: src/hydrilla/mitmproxy_launcher/launch.py:58 +#: src/hydrilla/mitmproxy_launcher/launch.py:55 msgid "cli_help.haketilo" msgstr "" "Run Haketilo proxy.\n" @@ -172,52 +172,52 @@ msgstr "" "This command starts Haketilo as a local HTTP proxy which a web browser " "can then use." -#: src/hydrilla/mitmproxy_launcher/launch.py:60 +#: src/hydrilla/mitmproxy_launcher/launch.py:57 msgid "cli_opt.haketilo.listen_host" msgstr "IP address port number the proxy should listen on." -#: src/hydrilla/mitmproxy_launcher/launch.py:62 +#: src/hydrilla/mitmproxy_launcher/launch.py:59 msgid "cli_opt.haketilo.port" msgstr "TCP port number the proxy should listen on." -#: src/hydrilla/mitmproxy_launcher/launch.py:64 +#: src/hydrilla/mitmproxy_launcher/launch.py:61 msgid "cli_opt.haketilo.launch_browser" msgstr "" "Whether Haketilo should try to open its landing page in your default " "browser. Defaults to yes ('-L')." -#: src/hydrilla/mitmproxy_launcher/launch.py:67 +#: src/hydrilla/mitmproxy_launcher/launch.py:64 msgid "cli_opt.haketilo.dir_defaults_to_{}" msgstr "Data directory for Haketilo to use. Defaults to \"{}\"." -#: src/hydrilla/mitmproxy_launcher/launch.py:70 +#: src/hydrilla/mitmproxy_launcher/launch.py:67 msgid "cli_opt.haketilo.version" msgstr "Print version information and exit" -#: src/hydrilla/proxy/addon.py:167 +#: src/hydrilla/proxy/addon.py:192 msgid "warn.proxy.setting_already_configured_{}" msgstr "" "Attempt was made to configure Mitmproxy addon's option '{}' which has " "already been configured." -#: src/hydrilla/proxy/addon.py:202 +#: src/hydrilla/proxy/addon.py:227 msgid "warn.proxy.couldnt_launch_browser" msgstr "" "Failed to open a URL in a web browser. Do you have a default web browser " "configured?" -#: src/hydrilla/proxy/addon.py:246 +#: src/hydrilla/proxy/addon.py:268 msgid "err.proxy.unknown_error_{}_try_again" msgstr "" "Haketilo experienced an error. Try again.\n" "\n" "{}" -#: src/hydrilla/proxy/policies/payload_resource.py:261 +#: src/hydrilla/proxy/policies/payload_resource.py:250 msgid "api.file_not_found" msgstr "Requested file could not be found." -#: src/hydrilla/proxy/policies/payload_resource.py:384 +#: src/hydrilla/proxy/policies/payload_resource.py:368 msgid "api.resource_not_enabled_for_access" msgstr "Requested resource is not enabled for access." @@ -233,7 +233,7 @@ msgstr "" "This installation of Haketilo uses an SQLite version which does not " "support foreign key constraints." -#: src/hydrilla/proxy/state_impl/concrete_state.py:218 +#: src/hydrilla/proxy/state_impl/concrete_state.py:227 msgid "warn.proxy.failed_to_register_landing_page_at_{}" msgstr "Failed to register landing page at \"{}\"." @@ -349,21 +349,21 @@ msgstr "Add new package" msgid "web_ui.home.title" msgstr "Welcome" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:27 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:35 msgid "web_ui.home.heading.welcome_to_haketilo" msgstr "Welcome to Haketilo!" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:31 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:39 msgid "web_ui.home.this_is_haketilo_page" msgstr "" "This is a virtual site hosted locally by Haketilo. You can use it to " "configure Haketilo proxy." -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:37 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:45 msgid "web_ui.home.heading.about_haketilo" msgstr "About this tool" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:41 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:49 msgid "web_ui.home.html.haketilo_is_blah_blah" msgstr "" "Haketilo is a tool that gives users more control over their web browsing." @@ -372,11 +372,11 @@ msgstr "" "extension but has since been made into an HTTP proxy. It is built on top " "of the popular mitmproxy." -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:48 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:56 msgid "web_ui.home.heading.configuring_browser_for_haketilo" msgstr "Configuring the browser for Haketilo" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:52 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:60 msgid "web_ui.home.html.to_add_certs_do_xyz" msgstr "" "Haketilo proxy works by modifying data exchanged by your browser and web " @@ -388,110 +388,176 @@ msgstr "" "href=\"http://mitm.it\">this page and add it to your operating " "system, browser or both." -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:59 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:67 msgid "web_ui.home.heading.options" msgstr "Global options" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:62 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:70 msgid "web_ui.home.mapping_usage_mode_label" msgstr "Package usage mode" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:71 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:79 msgid "web_ui.home.packages_are_used_when_enabled" msgstr "" "Hektilo is currently configured to only use packages that were explicitly" " enabled." -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:74 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:82 msgid "web_ui.home.user_gets_asked_whether_to_enable_package" msgstr "" "Hektilo is currently configured to ask whenever a package is found that " "could be used for the current site." -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:78 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:86 msgid "web_ui.home.packages_are_used_automatically" msgstr "" "Hektilo is currently configured to automatically use packages that are " "available for the current site." -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:85 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:93 msgid "web_ui.home.use_enabled_button" msgstr "Use when enabled" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:88 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:96 msgid "web_ui.home.use_question_button" msgstr "Ask whether to use" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:91 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:99 msgid "web_ui.home.use_auto_button" msgstr "Use automatically" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:98 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:106 msgid "web_ui.home.script_blocking_mode_label" msgstr "Default scripts treatment" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:106 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:114 msgid "web_ui.home.scripts_are_allowed_by_default" msgstr "" "By default Haketilo currently allows JavaScript sent by websites to the " "browser to execute." -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:109 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:117 msgid "web_ui.home.scripts_are_blocked_by_default" msgstr "" "By default Haketilo currently blocks JavaScript sent by websites to the " "browser from executing." -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:113 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:121 msgid "web_ui.home.allow_scripts_button" msgstr "Allow scripts" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:114 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:122 msgid "web_ui.home.block_scripts_button" msgstr "Block scripts" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:125 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:133 msgid "web_ui.home.advanced_features_label" msgstr "Advanced features" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:133 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:141 msgid "web_ui.home.user_is_advanced_user" msgstr "Interface features for advanced users are currently enabled." -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:136 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:144 msgid "web_ui.home.user_is_simple_user" msgstr "Interface features for advanced users are currently disabled." -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:143 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:151 msgid "web_ui.home.user_make_advanced_button" msgstr "Enable" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:146 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:154 msgid "web_ui.home.user_make_simple_button" msgstr "Disable" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:154 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:162 msgid "web_ui.home.orphans_label" msgstr "Orphans" -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:160 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:168 msgid "web_ui.home.orphans_to_delete_{mappings}" msgstr "Haketilo is holding some unused packages that can be removed ({mappings})." -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:164 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:172 msgid "web_ui.home.orphans_to_delete_exist" msgstr "Haketilo is holding some unused libraries that can be removed." -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:168 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:176 msgid "web_ui.home.orphans_to_delete_{mappings}_{resources}" msgstr "" "Haketilo is holding some unused items that can be removed (packages: " "{mappings}; libraries: {resources})." -#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:177 +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:185 msgid "web_ui.home.prune_orphans_button" msgstr "Prune orphans" +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:196 +msgid "web_ui.home.popup_settings_label" +msgstr "Popup settings" + +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:210 +msgid "web_ui.home.configure_popup_settings_on_pages_with" +msgstr "Configure popup settings on pages with" + +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:216 +msgid "web_ui.home.popup_settings_jsallowed_button" +msgstr "JS allowed" + +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:217 +msgid "web_ui.home.popup_settings_jsblocked_button" +msgstr "JS blocked" + +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:218 +msgid "web_ui.home.popup_settings_payloadon_button" +msgstr "Payload used" + +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:268 +msgid "web_ui.home.popup_no_button" +msgstr "Disable popup" + +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:271 +msgid "web_ui.home.popup_yes_button" +msgstr "Enable popup" + +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:281 +msgid "web_ui.home.jsallowed_popup_yes" +msgstr "" +"Haketilo currently makes it possible to open its popup window on pages " +"where native JS has been allowed to execute. This is a convenience that " +"comes at a price of greater risk of user fingerprinting." + +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:283 +msgid "web_ui.home.jsallowed_popup_no" +msgstr "" +"Haketilo currently does not make it possible to open its popup window on " +"pages with their native JS allowed. This setting is less convenient but " +"decreases the risk of user fingerprinting." + +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:289 +msgid "web_ui.home.jsblocked_popup_yes" +msgstr "" +"Haketilo currently makes it possible to open its popup window on pages " +"where native JS has been blocked from executing." + +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:291 +msgid "web_ui.home.jsblocked_popup_no" +msgstr "" +"Haketilo currently does not make it possible to open its popup window on " +"pages where native JS has been blocked from executing." + +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:297 +msgid "web_ui.home.payloadon_popup_yes" +msgstr "" +"Haketilo currently makes it possible to open its popup window on pages " +"where payload is used." + +#: src/hydrilla/proxy/web_ui/templates/index.html.jinja:299 +msgid "web_ui.home.payloadon_popup_no" +msgstr "" +"Haketilo currently does not make it possible to open its popup window on " +"pages where payload is used." + #: src/hydrilla/proxy/web_ui/templates/items/item_view.html.jinja:44 #: src/hydrilla/proxy/web_ui/templates/prompts/package_suggestion.html.jinja:30 #: src/hydrilla/proxy/web_ui/templates/repos/show_single.html.jinja:35 -- cgit v1.2.3