Skip to content

Instantly share code, notes, and snippets.

@danielsuo
Last active January 27, 2019 11:28
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 danielsuo/f9ea7f33fc6a8f732ce807bda42b807b to your computer and use it in GitHub Desktop.
Save danielsuo/f9ea7f33fc6a8f732ce807bda42b807b to your computer and use it in GitHub Desktop.
/*
Bookmarklet to download image / movie from tadpoles
Sources:
https://gist.github.com/sfrdmn/8834747 by sfrdmn, unlicenced but I hope you won't sue me :3
https://stackoverflow.com/a/49500465/2550406 by Leeroy, CC-BY-SA
*/
;(function() {
// Probably should do some validation, but whatever
var l = document.links;
for(var i=0; i<l.length; i++) {
if (l[i].href.indexOf("tadpoles") > -1 && l[i].href.indexOf("parents") == -1) window.open(l[i].href);
}
}).call(window);
@danielsuo
Copy link
Author

danielsuo commented Jan 27, 2019

javascript:void%20function(){(function(){for(var%20n=document.links,e=0;e%3Cn.length;e++)n[e].href.indexOf(%22tadpoles%22)%3E-1%26%26-1==n[e].href.indexOf(%22parents%22)%26%26window.open(n[e].href)}).call(window)}();

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