Webtoons.com for Desktop

Resizes and downloads higher quality versions of the images on webtoons.com to improve usability on Desktops and Laptops.

  1. // ==UserScript==
  2. // @name Webtoons.com for Desktop
  3. // @namespace https://greasyfork.org/users/3363-iceflame
  4. // @description Resizes and downloads higher quality versions of the images on webtoons.com to improve usability on Desktops and Laptops.
  5. // @include http://*webtoons.com/viewer?*
  6. // @version 1
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. var allImages = document.getElementsByClassName('_checkVisible');
  11. var totalHeight = 0;
  12.  
  13. for (i = 0; i < allImages.length; i++) {
  14. totalHeight += imageList[i].height;
  15. imageList[i].url = imageList[i].url.replace("?type=q70","");
  16. allImages[i].src = imageList[i].url;
  17. allImages[i].width = imageList[i].width;
  18. allImages[i].height = imageList[i].height;
  19. }
  20.  
  21. document.getElementById('_viewer') .style.textAlign = 'center';
  22. document.getElementById('_viewer') .style.height = totalHeight + 'px';
  23. document.getElementById('ct') .style.overflow = 'visible';