Printing all the websites that I have in my bookmarks folder automatically to pdfs, one for each site
I have bookmarked a lot of websites in a lot of different folders. Sometimes, some websites get taken down. To safeguard against this, I would like to know if (and how) it is possible to print all the websites in my bookmark folders as pdfs. The outcome of this operation should be a folder, e.g. "bookmarked_pdfs" , that contains the same folder structure as my bookmarks and where each website that I have bookmarked corresponds do a pdfs.
Athraithe ag fdotsdot ar
All Replies (6)
https://support.mozilla.org/en-US/kb/export-firefox-bookmarks-to-backup-or-transfer
Export your bookmarks in HTML format.
You can open that "exported" bookmarks.html file in Firefox via File > Open File or {Ctrl + O}. Once that file is open in Firefox you can print the file, either as displayed or to a PDF "printer" that you have installed.
This solution prints a pdf with all the names of the sites that I bookmarked.
What I want though is a solution that prints a pdf with all the *contents* of the sites that I bookmarked.
Example: If I bookmarked the site www.nicecar.com and it contains pictures of cars, I want in my pdf not to contain the entry "www.nicecare.com", but the picture of those cars.
Whoops! Nothing like that built into Firefox and have never seen an add-on that provided a feature such as that.
You would have to extract a list of all images on that web page to a new tab and then print this page to a PDF file.
Suitable bookmarklet:
javascript:(function(){function%20I(u){var%20t=u.split('.'),e=t[t.length-1].toLowerCase();return{gif:1,jpg:1,jpeg:1,png:1,mng:1}[e]}function%20hE(s){return%20s.replace(/&/g,'%26amp;').replace(/>/g,'%26gt;').replace(/</g,'%26lt;').replace(/%22/g,'%26quote;');}var%20q,h,i,z=open().document;z.write('<p>Images%20on%20'+hE(location.href)+':</p><hr>');for(i=0;q=document.images[i];++i){h=q.src;T=q.title||'';A=q.alt||'';if(h&&I(h))z.write('<p>'+q.innerHTML+'%20('+hE(h)+')<br>'+((T)?'(title:%20'+T+')':'')+((A)?'(alt:%20'+A+')':'')+'<br><img%20src=%22'+hE(h)+'%22>');}z.close();})()
Thanks for the clarification guys.
@cor-el So how exactly do I use this snippet of javascript code ? I have never coded in javascript (but I do know very basic C and python)
This is basically creating a new bookmark and paste the javascript code in the location field. You can give the bookmark a suitable name. If you click the bookmark then you get a page that contains all images from the page in this tab.