Last active
January 27, 2019 11:28
-
-
Save danielsuo/f9ea7f33fc6a8f732ce807bda42b807b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)}();