1
0
Fork 0
firefox/browser/extensions/webcompat/injections/js/bug1945019-order.mealkeyway.com-prevent-unsupported-message.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

31 lines
932 B
JavaScript

/* 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/. */
/* globals exportFunction */
"use strict";
/**
* www.menusifu.com - Shows an 'for a better experience, use Chrome' message.
* Bug #1945019 - https://bugzilla.mozilla.org/show_bug.cgi?id=1945019
*
* We can automatically hide the message for users.
*/
console.info(
"Web compatibility fixes are in effect. See https://bugzilla.mozilla.org/show_bug.cgi?id=1923286 for details."
);
const timer = setInterval(() => {
for (const node of document.querySelectorAll(
"[class*=customMiniPrompt_customPromptContent]"
)) {
if (node.innerText.includes("Chrome")) {
node.parentElement
.querySelector("[class*=customMiniPrompt_iconAdd]")
?.click();
clearInterval(timer);
}
}
}, 100);