Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Sixeight
Created December 15, 2009 00:33
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 Sixeight/256599 to your computer and use it in GitHub Desktop.
Save Sixeight/256599 to your computer and use it in GitHub Desktop.
# 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