3Hentai PervertMonkey

Infinite scroll [optional], Filter by Title, thumb preview

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

作者のサイトでサポートを受ける。または、このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         3Hentai PervertMonkey
// @namespace    pervertmonkey
// @version      1.0.18
// @author       violent-orangutan
// @description  Infinite scroll [optional], Filter by Title, thumb preview
// @license      MIT
// @icon         https://www.google.com/s2/favicons?sz=64&domain=3hentai.net
// @homepage     https://github.com/smartacephale/sleazy-fork#readme
// @homepageURL  https://sleazyfork.org/en/users/1253342-smartacephale
// @source       https://github.com/smartacephale
// @supportURL   https://github.com/smartacephale/sleazy-fork/issues
// @match        https://*.3hentai.net/*
// @require      https://cdn.jsdelivr.net/npm/[email protected]/dist/core/pervertmonkey.core.umd.js
// @require      data:application/javascript,var core = window.pervertmonkey.core || pervertmonkey.core; var utils = core;
// @grant        GM_addStyle
// @grant        unsafeWindow
// @run-at       document-idle
// ==/UserScript==

(function (core, utils) {
  'use strict';

  new core.Rules({
    containerSelectorLast: ".listing-container",
    thumbs: {
      selector: ".doujin-col"
    },
    thumb: {
      selectors: {
        title: ".title"
      }
    },
    thumbImg: {
      strategy: "auto"
    },
    gropeStrategy: "all-in-all",
    schemeOptions: ["Title Filter", "Badge", "Advanced"],
    animatePreview
  });
  function animatePreview() {
    const tick = new utils.Tick(500, false);
    const end = 9999;
    function rotate(src) {
      return src.replace(/(\d+)(?=t\.jpg$)/, (_, n) => `${utils.circularShift(parseInt(n), end)}`);
    }
    utils.OnHover.create(document.body, ".doujin-col", (e) => {
      const img = e.querySelector("img");
      const origin = img.src;
      img.src = img.src.replace(/\w+\.\w+$/, "1t.jpg");
      img.onerror = (_) => tick.stop();
      tick.start(
        () => {
          img.src = rotate(img.src);
        },
        () => {
          img.src = origin;
        }
      );
      return () => tick.stop();
    });
  }

})(core, utils);