Skip to content

Instantly share code, notes, and snippets.

View joan0fsnark's full-sized avatar
:octocat:

Alena joan0fsnark

:octocat:
View GitHub Profile
@fnando
fnando / README.md
Last active April 20, 2022 19:54
HP P1109w: changing wifi settings

HP P1109w: Changing wifi settings

Requirements

Make sure you have httpie installed. If you're using homebrew, you can easily do it so with:

brew install httpie
@jonathantneal
jonathantneal / detect-autofill.js
Created September 11, 2018 14:56
Detect autofill in Chrome, Edge, Firefox, and Safari
export default scope => {
// match the filter on autofilled elements in Firefox
const mozFilterMatch = /^grayscale\(.+\) brightness\((1)?.*\) contrast\(.+\) invert\(.+\) sepia\(.+\) saturate\(.+\)$/
scope.addEventListener('animationstart', onAnimationStart)
scope.addEventListener('input', onInput)
scope.addEventListener('transitionstart', onTransitionStart)
function onAnimationStart(event) {
// detect autofills in Chrome and Safari by: