Skip to content

Instantly share code, notes, and snippets.

@Integralist
Created September 1, 2011 14:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Integralist/1186292 to your computer and use it in GitHub Desktop.
Save Integralist/1186292 to your computer and use it in GitHub Desktop.
A script that displays any CSS properties that support URL as value /via @LeaVerou
var s = document.body.style;
for (var i in s) {
s[i] = "url('foo')";
if(s[i]) {
console.log(i);
s[i] = ''
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment