media/js/firefox/whatsnew/whatsnew-137-uitour.es6.js (21 lines of code) (raw):

/* * 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 https://mozilla.org/MPL/2.0/. */ function init() { Mozilla.UITour.ping(() => { // show main CTA document.body.classList.add('wnp-uitour'); // main CTA should open about:preferences at "Browser Layout" section const button = document.querySelector('.wnp-main-cta .mzp-c-button'); button.addEventListener( 'click', (e) => { e.preventDefault(); Mozilla.UITour.openPreferences('browser-layout'); }, false ); }); } if ( typeof window.Mozilla.Client !== 'undefined' && typeof window.Mozilla.UITour !== 'undefined' && window.Mozilla.Client.isFirefoxDesktop ) { init(); }