Skip to content

Instantly share code, notes, and snippets.

Created May 30, 2022 16:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Chrome default color picker snippet
function copy(value) {
await window.navigator.clipboard.writeText(value)), 3000);
console.log("Color: " + value);
window.colorPicker = () => new EyeDropper().open().then((color)=> copy(color.sRGBHex))
// create color picker snippet
// press f12 and ctrl + o
// !color-picker
// click in document and press tab before 3s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment