Skip to content

Instantly share code, notes, and snippets.

@Mardak
Mardak / gist:ba97c05c71b6324de526b207c61199e0
Created May 25, 2021 16:41
proton 954 fixed bugs git log
11877e076a98f - Bug 1709717, update download button badge icons to match proton designs r=sfoster (4 days ago) <Emma Malysz>
75834ad9a1dfc - Bug 1709050 - Suppress the focus ring in the upgrade dialog and some about: pages when they first load. r=Mardak,Gijs (4 days ago) <Mike Conley>
217796454dbc3 - Bug 1706487 - honour browser.tabs.loadInBackground for 'Open Image/Video/Audio in New Tab', r=mconley,fluent-reviewers,flod (4 days ago) <Gijs Kruitbosch>
3fdf1cc71ccd0 - Bug 1706963 - Close other window modal subdialog before quit/close window prompts r=Gijs (4 days ago) <Ed Lee>
6aa4d6541f7f5 - Bug 1705500 - Added word wrap to send tab to another device menu r=mconley (4 days ago) <Bernard Igiri>
4c7bd943769d2 - Bug 1711498 - Remove checks for protonAppMenuEnabled or protonToolbarEnabled smart pref getters from tests r=Gijs (4 days ago) <Michelle Goossens>
f0985f6cfe14d - Bug 1702899 - Support dark datetime pickers on macOS. r=desktop-theme-reviewers,dao (4 days ago) <Harry Twyford>
a07900a4a8bd8 - Bug 1705855
@Mardak
Mardak / ccc-armageddon.js
Last active May 28, 2020 18:41
script to run (from firefox or chrome devtools) to show armageddon results https://www.chess.com/ccc
// Gather game results.
await document.querySelectorAll("#bottomtable-bottomtable .pointer")[2].click();
results = {};
[...document.querySelectorAll(".schedule-gameLink")].forEach(v => {
const [, wr, , b] = v.textContent.split("\n");
if (wr) {
const [, w, r] = wr.match(/(.*)(Black|Draw|White)/);
const z = r == "White";
results[w] = { ...results[w], [b]: [...(results[w]?.[b] ?? []), +z] };
results[b] = { ...results[b], [w]: [...(results[b]?.[w] ?? []), +!z] };

Keybase proof

I hereby claim:

  • I am mardak on github.
  • I am mardak (https://keybase.io/mardak) on keybase.
  • I have a public key ASB0V6BGuQNHzJ5DR5cyw-u-lGDKJ_H2nC_RRdqPX1AMBQo

To claim this, I am signing this object:

@Mardak
Mardak / gist:950116
Created May 1, 2011 00:03
Prevent the page from seeing "j" presses
https://github.com/Mardak/restartless/blob/watchWindows/bootstrap.js
diff --git a/bootstrap.js b/bootstrap.js
index d9f353c..d2a3cd8 100644
--- a/bootstrap.js
+++ b/bootstrap.js
@@ -150,7 +150,17 @@ function unload(callback, container) {
/**
* Handle the add-on being activated on install/enable
*/
-function startup(data, reason) {}