diff --git a/src/drivers/bookmarklet/driver.js b/src/drivers/bookmarklet/driver.js index 7725b9a5f..1a3a96876 100644 --- a/src/drivers/bookmarklet/driver.js +++ b/src/drivers/bookmarklet/driver.js @@ -33,8 +33,15 @@ .filter(s => s.src) .map(s => s.src); + var html = new XMLSerializer().serializeToString(document).split('\n'); + + html = html + .slice(0, 1000).concat(html.slice(html.length - 1000)) + .map(line => line.substring(0, 1000)) + .join('\n'); + wappalyzer.analyze(url, { - html: document.documentElement.innerHTML, + html: html, env: env, scripts: scripts });