Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View aminomancer's full-sized avatar

Shane Hughes aminomancer

View GitHub Profile
@aminomancer
aminomancer / fetchLangpacksFromFTP.patch
Created April 11, 2024 02:21
fetchLangpacksFromFTP
diff --git a/toolkit/mozapps/extensions/internal/AddonRepository.sys.mjs b/toolkit/mozapps/extensions/internal/AddonRepository.sys.mjs
index 8d4d178924eba..cceed36adf210 100644
--- a/toolkit/mozapps/extensions/internal/AddonRepository.sys.mjs
+++ b/toolkit/mozapps/extensions/internal/AddonRepository.sys.mjs
@@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { XPCOMUtils } from "resource://gre/modules/XPCOMUtils.sys.mjs";
+import { AppConstants } from "resource://gre/modules/AppConstants.sys.mjs";
diff --git a/browser/components/aboutwelcome/content-src/aboutwelcome.scss b/browser/components/aboutwelcome/content-src/aboutwelcome.scss
index d96e1052a813b..897fe87c340c8 100644
--- a/browser/components/aboutwelcome/content-src/aboutwelcome.scss
+++ b/browser/components/aboutwelcome/content-src/aboutwelcome.scss
@@ -1732,15 +1732,35 @@ html {
.aboutwelcome-menulist {
width: fit-content;
margin: auto;
+ fill: currentColor;
+ -moz-context-properties: fill;
@aminomancer
aminomancer / Google Calendar Merge Userscript
Last active March 8, 2024 00:02
Google Calendar Merge Userscript
// ==UserScript==
// @name Cal Merge for Google Calendar™ (by @HCAWN forked from @imightbeAmy, and then forked again by @andrewmacheret)
// @namespace gcal-multical-event-merge
// @include https://www.google.com/calendar/*
// @include http://www.google.com/calendar/*
// @include https://calendar.google.com/*
// @include http://calendar.google.com/*
// @require https://cdn.jsdelivr.net/gh/gka/chroma.js/chroma-light.min.js
// @version 1
// @grant none
@aminomancer
aminomancer / radioGroupTabFocus.patch
Created February 22, 2024 10:37
radioGroupTabFocus
diff --git a/accessible/tests/mochitest/events/test_focus_controls.html b/accessible/tests/mochitest/events/test_focus_controls.html
index 268ec5d0e46b7..0760082ad94b3 100644
--- a/accessible/tests/mochitest/events/test_focus_controls.html
+++ b/accessible/tests/mochitest/events/test_focus_controls.html
@@ -31,7 +31,17 @@
gQueue.push(new synthFocus("button2"));
gQueue.push(new synthFocus("checkbox"));
gQueue.push(new synthFocus("radio1"));
+ // Only the checked radio button is tabbable. If there's no checked radio
+ // button (as in this case), only the first radio button is tabbable.
@aminomancer
aminomancer / foo.patch
Last active February 24, 2023 05:16
ASRouter listens to enrollment changes
--- a/browser/components/newtab/lib/ASRouter.jsm
+++ b/browser/components/newtab/lib/ASRouter.jsm
@@ -98,7 +98,7 @@ const JEXL_PROVIDER_CACHE = new Set(["snippets"]);
// To observe the app locale change notification.
const TOPIC_INTL_LOCALE_CHANGED = "intl:app-locales-changed";
-const TOPIC_EXPERIMENT_FORCE_ENROLLED = "nimbus:force-enroll";
+const NIMBUS_TOPICS = ["nimbus:enroll", "nimbus:unenroll"];
// To observe the pref that controls if ASRouter should use the remote Fluent files for l10n.
const USE_REMOTE_L10N_PREF =