Guest User

Untitled

a guest
Mar 8th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. window.addEventListener('load', function() {
  5. netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
  6. var canvas = document.createElement('canvas');
  7. canvas.style.display = "none";
  8. canvas.left = 0;
  9. canvas.top = 0;
  10. canvas.width = 300;
  11. canvas.height = 300;
  12.  
  13. document.getElementsByTagName('body')[0].appendChild(canvas);
  14. var ctx = canvas.getContext("2d");
  15. ctx.clearRect(0, 0, 300, 300);
  16. ctx.save();
  17. ctx.scale(1.0, 1.0);
  18. ctx.drawWindow(window, 0, 0, 300, 300, "rgb(255,255,255)");
  19. ctx.restore();
  20. location.href = canvas.toDataURL("image/png");
  21. }, false);
  22. </script>
  23. </head>
  24. <body>
  25. あああああああああああああああああああああああああああああ<br />
  26. いいいいいいいいいいいいいいいいいいいいいいいいいいいいい<br />
  27. ううううううううううううううううううううううううううううう<br />
  28. </body>
  29. </html>
Add Comment
Please, Sign In to add comment