From a250b46a0b6f7659bd14beef2b06f59c80e51e9c Mon Sep 17 00:00:00 2001 From: JustOff Date: Mon, 11 Jun 2018 13:46:22 +0300 Subject: [PALEMOON] Change the three-state DoNotTrack controls to a simple on/off switch --- .../palemoon/components/preferences/privacy.js | 36 ---------------------- .../palemoon/components/preferences/privacy.xul | 19 +++--------- 2 files changed, 5 insertions(+), 50 deletions(-) (limited to 'application/palemoon/components/preferences') diff --git a/application/palemoon/components/preferences/privacy.js b/application/palemoon/components/preferences/privacy.js index 18e38395d..05c2f9b8a 100644 --- a/application/palemoon/components/preferences/privacy.js +++ b/application/palemoon/components/preferences/privacy.js @@ -150,42 +150,6 @@ var gPrivacyPane = { document.getElementById("historyPane").selectedIndex = selectedIndex; }, - /** - * Update the Tracking preferences based on controls. - */ - setTrackingPrefs: function PPP_setTrackingPrefs() - { - let dntRadioGroup = document.getElementById("doNotTrackSelection"), - dntValuePref = document.getElementById("privacy.donottrackheader.value"), - dntEnabledPref = document.getElementById("privacy.donottrackheader.enabled"); - - // if the selected radio button says "no preference", set on/off pref to - // false and don't change the value pref. - if (dntRadioGroup.selectedItem.value == -1) { - dntEnabledPref.value = false; - return dntValuePref.value; - } - - dntEnabledPref.value = true; - return dntRadioGroup.selectedItem.value; - }, - - /** - * Obtain the tracking preference value and reflect it in the UI. - */ - getTrackingPrefs: function PPP_getTrackingPrefs() - { - let dntValuePref = document.getElementById("privacy.donottrackheader.value"), - dntEnabledPref = document.getElementById("privacy.donottrackheader.enabled"); - - // if DNT is enbaled, select the value from the selected radio - // button, otherwise choose the "no preference" radio button - if (dntEnabledPref.value) - return dntValuePref.value; - - return document.getElementById("dntnopref").value; - }, - /** * Update the private browsing auto-start pref and the history mode * micro-management prefs based on the history mode menulist diff --git a/application/palemoon/components/preferences/privacy.xul b/application/palemoon/components/preferences/privacy.xul index 057d549a9..bdb227c63 100644 --- a/application/palemoon/components/preferences/privacy.xul +++ b/application/palemoon/components/preferences/privacy.xul @@ -30,9 +30,6 @@ - - - - - - + +