Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox's resistFingerprinting breaking Ctrl detection #231

Open
NLZ opened this issue Mar 30, 2021 · 1 comment
Open

Firefox's resistFingerprinting breaking Ctrl detection #231

NLZ opened this issue Mar 30, 2021 · 1 comment

Comments

@NLZ
Copy link

NLZ commented Mar 30, 2021

In Firefox enabling privacy.resistFingerprinting in about:config breaks the detection of Ctrl because with the keydown event the modifier keys (ctrl, alt, shift) is silenced.
Testable with the following code from console:

document.addEventListener('keydown', function (e) {
  console.log(e.keyCode)
});

So with this the event for Ctrl (keyCode 17) and the other modifier keys are not firing.

But I found that with the click event it's still detecting the modifier keys:

document.addEventListener('click', function (e) {
  console.log(e.ctrlKey);
});

Hence my suggestion would be to consider switching the Ctrl using hotkeys to the click event if possible, as I suspect others also could run into this limitation.

@NLZ
Copy link
Author

NLZ commented Mar 31, 2021

Correction, e.ctrlKey is also available in 'keydown'.
So this can help with Giga Ctrl, and Generator State Config from Settings, but not with Mastery buy row (showing available before click). Nature Token convert could also work, but no preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant