Skip to content

Instantly share code, notes, and snippets.

@whee
whee / code.js
Created July 4, 2023 19:44
Kagi image search programmable button
// Change the cursor to a crosshair
document.body.style.cursor = 'crosshair';
// Create a one-time event listener for the 'click' event
document.addEventListener('click', function handler(event) {
// Prevent the default action of the event and stop it from bubbling up
event.preventDefault();
event.stopPropagation();
// Check if the clicked element is an image
@whee
whee / keybase.md
Last active August 29, 2015 14:07

Keybase proof

I hereby claim:

  • I am whee on github.
  • I am whee (https://keybase.io/whee) on keybase.
  • I have a public key whose fingerprint is D54A F220 3A1F 6A67 5B42 6C91 9453 4810 F2C3 0F49

To claim this, I am signing this object: