Added 10 more gists.

This commit is contained in:
Miguel Astor
2023-06-19 09:38:01 -04:00
parent 8af706e97d
commit 1400a87eab
25 changed files with 1133 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
/**
* Script taken and very slightly modified from here:
* https://32hertz.blogspot.com/2015/06/how-to-download-all-pictures-from.html
*
* Open the Firefox cache screen (about:cache, then click on list cache entries on the Disk section),
* then run this script on the Firefox console to get all links for Pinterest images that you have seen.
* Copy all the links in a .txt file and you can use img_spider.py to download them all.
**/
var a = document.getElementsByTagName("a");
var img;
var i = -1;
var body = document.getElementsByTagName("body");
var div = document.createElement("div");
var jpglink='';
while(++i<a.length){
if(a[i].toString().indexOf("236x")>0){
jpglink = document.createTextNode(a[i].innerHTML.replace("236x","originals"));
div.appendChild(jpglink);
div.appendChild(document.createElement("br"));
}
}
body[0].insertBefore(div,body[0].childNodes[0]);