Skip to content

Instantly share code, notes, and snippets.

@kmaglione

kmaglione/stdin.js

Created Sep 22, 2011
Embed
What would you like to do?
hints.addMode("i", "Show image",
function (elem) dactyl.open(elem.src || /url\("(.*?)"\)/.exec(DOM(elem).style.backgroundImage)[1]),
function (elem) elem instanceof HTMLImageElement || DOM(elem).style.backgroundImage != "none",
["*"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.