mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
Remove tracking protection tour.
This commit is contained in:
parent
dece98a7b5
commit
fcd72d8112
8 changed files with 0 additions and 90 deletions
|
|
@ -63,13 +63,9 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||
document.getElementById("favicon")
|
||||
.setAttribute("href", FAVICON_PRIVACY);
|
||||
tpToggle.addEventListener("change", toggleTrackingProtection);
|
||||
document.getElementById("startTour")
|
||||
.addEventListener("click", dontShowIntroPanelAgain);
|
||||
|
||||
let formatURLPref = Cc["@mozilla.org/toolkit/URLFormatterService;1"]
|
||||
.getService(Ci.nsIURLFormatter).formatURLPref;
|
||||
document.getElementById("startTour").setAttribute("href",
|
||||
formatURLPref("privacy.trackingprotection.introURL"));
|
||||
document.getElementById("learnMore").setAttribute("href",
|
||||
formatURLPref("app.support.baseURL") + "private-browsing");
|
||||
|
||||
|
|
@ -89,10 +85,3 @@ function toggleTrackingProtection() {
|
|||
new CustomEvent("AboutPrivateBrowsingToggleTrackingProtection",
|
||||
{bubbles: true}));
|
||||
}
|
||||
|
||||
function dontShowIntroPanelAgain() {
|
||||
// Ask chrome to disable the doorhanger
|
||||
document.dispatchEvent(
|
||||
new CustomEvent("AboutPrivateBrowsingDontShowIntroPanelAgain",
|
||||
{bubbles: true}));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,9 +69,6 @@
|
|||
|
||||
<section class="section-main">
|
||||
<p>&trackingProtection.description2;</p>
|
||||
<p>
|
||||
<a id="startTour" class="button">&trackingProtection.startTour1;</a>
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<section class="section-main">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue