This repository has been archived by the owner on Dec 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #322 from mozilla/sunset-update
Final sunset release of Price Tracker
- Loading branch information
Showing
11 changed files
with
3,704 additions
and
904 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" dir="ltr"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link href="/styles/retirement.css" rel="stylesheet"> | ||
<title>Firefox Price Tracker Retirement Notice</title> | ||
</head> | ||
<body> | ||
<div class="stars"></div> | ||
<div class="earth"></div> | ||
<header> | ||
<div> | ||
<h1><a class="wordmark" href="/">Firefox Test Pilot</a></h1> | ||
</div> | ||
</header> | ||
<section> | ||
<div class="container"> | ||
<div class="copter"></div> | ||
<div class="content"> | ||
<h1>Price Tracker <span id="notice-header">is ending</span></h1> | ||
<p>Mozilla is ending official support for Firefox Price Tracker on September 30, 2019. Price Tracker will uninstall itself from Firefox in approximately <span id="notice-paragraph">30 days</span>. You may also choose to uninstall it now.</p> | ||
<button id="uninstall-addon">Uninstall Price Tracker</button> | ||
<p>Price Tracker began as a proof-of-concept experiment in Firefox Test Pilot, our experimental feature development program. You can learn more about Price Tracker on the <a href="https://support.mozilla.org/kb/price-tracker-retiring">support page</a>.</p> | ||
<h2>Test Pilot is making a comeback!</h2> | ||
<p>Firefox Test Pilot is coming back to life in a new form! Test Pilot users will help us refine promising new privacy and security features, for the future benefit of all Firefox users.</p> | ||
<p>You can join the new Test Pilot early beta program by Joining Firefox. <a href="https://www.mozilla.org/firefox/accounts/">Sign in to your Firefox Account</a> and subscribe to "New Product Testing" under your email preferences.</p> | ||
<div class="close"> | ||
<p>Thank you for flying,</p> | ||
<p class="signature">The Test Pilot Team</p> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
<script src="./retirement.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
(function main() { | ||
const button = document.getElementById('uninstall-addon'); | ||
button.addEventListener('click', () => browser.management.uninstallSelf({ | ||
showConfirmDialog: true, | ||
})); | ||
|
||
const url = new URL(window.location.href); | ||
const finalNoticeJSON = url.searchParams.get('finalNotice'); | ||
let finalNotice = false; | ||
if (finalNoticeJSON) { | ||
finalNotice = JSON.parse(finalNoticeJSON); | ||
} | ||
|
||
if (finalNotice) { | ||
const noticeHeaderElement = document.getElementById('notice-header'); | ||
noticeHeaderElement.innerText = 'ends in one day'; | ||
|
||
const noticeParagraphElement = document.getElementById('notice-paragraph'); | ||
noticeParagraphElement.innerText = 'one day'; | ||
} | ||
}()); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,11 @@ module.exports = { | |
'[email protected]=30000', | ||
'extensions.shopping-testpilot@mozilla.org.priceCheckTimeoutInterval=30000', | ||
'[email protected]=10000', | ||
'devtools.storage.extensionStorage.enabled=true', | ||
], | ||
startUrl: [ | ||
'http://mozilla.github.io/fake-product-page/', | ||
'about:debugging#/runtime/this-firefox', | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters