Remove space between images

Removes the space between images on manganelo and mangakakalot

  1. // ==UserScript==
  2. // @name Remove space between images
  3. // @namespace https://greasyfork.org/en/users/434434-lagradost
  4. // @match https://manganelo.com/chapter/*/*
  5. // @match https://mangakakalot.com/chapter/*/*
  6. // @grant none
  7. // @version 1.2
  8. // @author Ost
  9. // @description Removes the space between images on manganelo and mangakakalot
  10. // ==/UserScript==
  11. img = document.getElementsByTagName('img');
  12. div = document.getElementsByTagName('div')
  13. setTimeout(function(){
  14. for (var i = 0; i < img.length; i++) {
  15. img[i].style.margin="0px auto 0";
  16. }
  17. }, 3000);
  18. //sometimes there's a random div element between the images, this part solves that. (seen on https://manganelo.com/chapter/tnqe284961561858429/chapter_13)
  19. for (var i = 0; i < div.length; i++) {
  20. if (div[i].style.margin == '10px auto'){div[i].style.margin="0px auto";}
  21. }