Sleazy Fork is available in English.

Pornolab Image Expander

Lets you preview torrents first image by showing on hover on the tracker listing

  1. // ==UserScript==
  2. // @name Pornolab Image Expander
  3. // @description Lets you preview torrents first image by showing on hover on the tracker listing
  4. // @namespace https://pornolab.net/forum/index.php
  5. // @version 1.0
  6. // @description try to take over the world!
  7. // @author Anon1337Elite
  8. // @match https://pornolab.net/*
  9. // @require https://cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js
  10. // @grant GM_xmlhttpRequest
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. let links = window.document.querySelectorAll('.med .tLink');
  17.  
  18. links.forEach((el) => {
  19. axios.get(el.href).then(function(res) {
  20. let div = document.createElement('div');
  21. div.innerHTML = res.data;
  22. let source = div.querySelector('var.postImg').title;
  23. let img = document.createElement('img');
  24.  
  25. img.src = source;
  26. img.classList.add('appendedHoverIMg');
  27. img.style = 'width: auto; height: auto;';
  28.  
  29. let container = el.closest('tr').querySelector('td.row4.med.tLeft.u');
  30. container.appendChild(img);
  31. });
  32. });
  33. })();