Skip to content

Instantly share code, notes, and snippets.

@Sixeight
Created Dec 15, 2009
Embed
What would you like to do?
# Glitch all images.
jetpack.tabs.onReady(function (doc) {
if (doc.defaultView.frameElement) { return }
$(doc).find('img').each(function() {
$(this).attr('src', 'http://hitode909.appspot.com/glitch/api?uri=' + encodeURIComponent(this.src));
});
});
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel='jetpack' href='glitch.js' name='Glitch' />
<title>Hello Jetpack install page</title>
</head>
<body>
<h1>Hello Jetpack install page</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment