Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Re-enable right-click & add Download links to thumbnail pages on PhotoReflect pages.
/*
Copy the single line of code below, then add it as a new bookmark to your web browser of choice:
javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://gist.githubusercontent.com/dcpesses/9652778/raw';})();
Then browse to the thumbnails of the album, click on that bookmark, and...enjoy!
*/
document.oncontextmenu=document.body.oncontextmenu = new Function("return true");
$('.thumbgrid').each(function(i){
var id = $(this).closest('a').attr('href').match(new RegExp("i=(.+?)&", "i")).shift();
$(this).closest('td').append('<a href="/web/bin/prpv.dll?cmd=photo&s=-2&'+id+'p=" class="dl">&darr; Download</a>');
});
@fzakaria

This comment has been minimized.

Show comment
Hide comment
@fzakaria

fzakaria Dec 9, 2015

What about the high-res ones ?

fzakaria commented Dec 9, 2015

What about the high-res ones ?

@fzakaria

This comment has been minimized.

Show comment
Hide comment
@fzakaria

fzakaria Jan 11, 2016

I wrote a blog post about doing this http://blog.fzakaria.com/2016/01/11/photoreflect-unwatermarked-image/
I'd love to find out how to do it for High Quality images though

I wrote a blog post about doing this http://blog.fzakaria.com/2016/01/11/photoreflect-unwatermarked-image/
I'd love to find out how to do it for High Quality images though

@jeremy217

This comment has been minimized.

Show comment
Hide comment
@jeremy217

jeremy217 Mar 27, 2016

doesn't work anymore, any work around?

doesn't work anymore, any work around?

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