[Konachan] Pool: Fix Thumbnails

Fixes the slight cropping of thumbnails on the pool pages. Also prevents the hovered thumbnail from moving when shift is pressed on an image with borders.

  1. // ==UserScript==
  2. // @name [Konachan] Pool: Fix Thumbnails
  3. // @namespace Zolxys
  4. // @description Fixes the slight cropping of thumbnails on the pool pages. Also prevents the hovered thumbnail from moving when shift is pressed on an image with borders.
  5. // @include /^https?://konachan\.com/pool/show/\d+/?($|\?|#)/
  6. // @include /^https?://konachan\.net/pool/show/\d+/?($|\?|#)/
  7. // @version 2.0
  8. // ==/UserScript==
  9. var ss = document.createElement('style');
  10. ss.type = 'text/css';
  11. ss.textContent = 'img.preview {margin-top: 0;}';
  12. document.head.appendChild(ss);
  13. var a = document.getElementById('post-list-posts').getElementsByTagName('img');
  14. for (var i = 0; i < a.length; i++) {
  15. var d = a[i].parentNode.parentNode;
  16. d.style.width='';
  17. d.style.height='';
  18. }
  19. document.getElementById('index-hover-overlay').firstElementChild.style.display = 'none';