Skip to content

Instantly share code, notes, and snippets.

@kmaglione
Created September 22, 2011 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmaglione/1235380 to your computer and use it in GitHub Desktop.
Save kmaglione/1235380 to your computer and use it in GitHub Desktop.
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