Sleazy Fork is available in English.

exhentai flow viewer

This scripts helps you to view a gallery in a single page, from up to down.

  1. // ==UserScript==
  2. // @name exhentai flow viewer
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1
  5. // @author PokemonMaster802
  6. // @match https://exhentai.org/s/*
  7. // @description This scripts helps you to view a gallery in a single page, from up to down.
  8. // @locale en
  9. // ==/UserScript==
  10.  
  11. var container; // The <div> to hold images, intending to inherit it's style.
  12. var parser;
  13.  
  14. function getNext(currURL, currDOC) {
  15. 'use strict';
  16. var nextURL = currDOC.getElementById('next').href;
  17.  
  18. // The last page has the next url directing to itself.
  19. if (currURL === nextURL) {
  20. console.log('Reach the last page');
  21. return;
  22. }
  23.  
  24. // Prepare http request for the next page.
  25. var nextPage = new XMLHttpRequest();
  26. nextPage.onreadystatechange = function() {
  27. if (nextPage.readyState == 4) {
  28. if (nextPage.status == 200) {
  29. var doc = parser.parseFromString(nextPage.responseText, 'text/html');
  30. var img = doc.getElementById('img');
  31. img.style.paddingTop = '1em';
  32. container.append(img);
  33. setTimeout(getNext, 500, nextURL, doc);
  34. }
  35. else {
  36. console.log('Failed to fetch ' + nextURL + ': ' + nextPage.status);
  37. }
  38. }
  39. };
  40. nextPage.open("GET", nextURL, false);
  41. nextPage.send();
  42. }
  43.  
  44. (function() {
  45. parser = new DOMParser();
  46. container = document.getElementById('i3');
  47. getNext(document.URL, document);
  48. })();