Skip to content

Instantly share code, notes, and snippets.

@marknotfound
Last active December 31, 2015 17:59
Show Gist options
  • Save marknotfound/8024383 to your computer and use it in GitHub Desktop.
Save marknotfound/8024383 to your computer and use it in GitHub Desktop.
Sailthru Image Hijack Fix (Bookmarklet)
javascript:(function(){
$('iframe[name=preview]').contents().find('img').each(function(key, ele) {
var $self = $(ele),
src = $self.attr('src'),
prefix = 'https://my.sailthru.com/ssl?url=',
unhijacked;
unhijacked = decodeURIComponent(src.replace(prefix, ''));
$self.attr('src', unhijacked);
});
}());
@mikesherov
Copy link

WOW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment