1

I wrote a chrome extension, that allows me to copy the DOM of a webite and upload it to a server for analysis (dont worry, nothing illegal). Doing so does not provide the images or css scripts of the page.

Is there an "easy way" to get transfer the images and scripts that are used in the DOM as well? Currently I am using document.all[0].outerHTML for reading the HTML itself.

mxcd
  • 1,954
  • 2
  • 25
  • 38

1 Answers1

0

I found a quite nice way to upload the images in one package with the HTML / DOM:

Using this post, I had a very easy way to convert almost any image in Base64. I replaced the src attribute of the img tag using jQuery and uploaded the complete DOM. Like that all the images are already implemented.

Community
  • 1
  • 1
mxcd
  • 1,954
  • 2
  • 25
  • 38