Loading src/chrome/content/torbutton.js +16 −0 Original line number Diff line number Diff line Loading @@ -236,6 +236,9 @@ var torbutton_unique_pref_observer = case "extensions.torbutton.restrict_thirdparty": torbutton_update_thirdparty_prefs(); break; case "extensions.torbutton.hide_sync_ui": torbutton_update_sync_ui(); break; case "gfx.font_rendering.opentype_svg.enabled": case "javascript.options.ion.content": case "javascript.options.typeinference": Loading Loading @@ -625,6 +628,7 @@ function torbutton_init() { torbutton_update_toolbutton(mode); torbutton_update_statusbar(mode); torbutton_notify_if_update_needed(); torbutton_update_sync_ui(); createTorCircuitDisplay(m_tb_control_host, m_tb_control_port, m_tb_control_pass, "extensions.torbutton.display_circuit"); Loading Loading @@ -3566,4 +3570,16 @@ function torbutton_is_homepage_url(aURI) return (urls.indexOf(aURI.spec) >= 0); } // Check if "extensions.torbutton.hide_sync_ui" is enabled, and if so, // hide the "Sign in to Sync" button on the hamburger menu. function torbutton_update_sync_ui() { try { document.getElementById("PanelUI-footer-fxa").style.display = getBoolPref("extensions.torbutton.hide_sync_ui") ? "none" : ""; } catch (e) { torbutton_log(5, 'Error updating the Sync UI: ' + e); } } //vim:set ts=4 src/defaults/preferences/preferences.js +1 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ pref("extensions.torbutton.display_panel",true); pref("extensions.torbutton.panel_style",'text'); pref("extensions.torbutton@torproject.org.description", "chrome://torbutton/locale/torbutton.properties"); pref("extensions.torbutton.updateNeeded", false); pref("extensions.torbutton.hide_sync_ui", true); // proxy prefs pref("extensions.torbutton.settings_method",'recommended'); Loading Loading
src/chrome/content/torbutton.js +16 −0 Original line number Diff line number Diff line Loading @@ -236,6 +236,9 @@ var torbutton_unique_pref_observer = case "extensions.torbutton.restrict_thirdparty": torbutton_update_thirdparty_prefs(); break; case "extensions.torbutton.hide_sync_ui": torbutton_update_sync_ui(); break; case "gfx.font_rendering.opentype_svg.enabled": case "javascript.options.ion.content": case "javascript.options.typeinference": Loading Loading @@ -625,6 +628,7 @@ function torbutton_init() { torbutton_update_toolbutton(mode); torbutton_update_statusbar(mode); torbutton_notify_if_update_needed(); torbutton_update_sync_ui(); createTorCircuitDisplay(m_tb_control_host, m_tb_control_port, m_tb_control_pass, "extensions.torbutton.display_circuit"); Loading Loading @@ -3566,4 +3570,16 @@ function torbutton_is_homepage_url(aURI) return (urls.indexOf(aURI.spec) >= 0); } // Check if "extensions.torbutton.hide_sync_ui" is enabled, and if so, // hide the "Sign in to Sync" button on the hamburger menu. function torbutton_update_sync_ui() { try { document.getElementById("PanelUI-footer-fxa").style.display = getBoolPref("extensions.torbutton.hide_sync_ui") ? "none" : ""; } catch (e) { torbutton_log(5, 'Error updating the Sync UI: ' + e); } } //vim:set ts=4
src/defaults/preferences/preferences.js +1 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ pref("extensions.torbutton.display_panel",true); pref("extensions.torbutton.panel_style",'text'); pref("extensions.torbutton@torproject.org.description", "chrome://torbutton/locale/torbutton.properties"); pref("extensions.torbutton.updateNeeded", false); pref("extensions.torbutton.hide_sync_ui", true); // proxy prefs pref("extensions.torbutton.settings_method",'recommended'); Loading