Eporner PervertMonkey

Infinite scroll [optional], Filter by Title, Duration and HD

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Eporner PervertMonkey
// @namespace    pervertmonkey
// @version      2.0.1
// @author       violent-orangutan
// @description  Infinite scroll [optional], Filter by Title, Duration and HD
// @license      MIT
// @icon         https://www.google.com/s2/favicons?sz=64&domain=eporner.com
// @homepage     https://github.com/smartacephale/sleazy-fork
// @homepageURL  https://github.com/smartacephale/sleazy-fork
// @source       github:smartacephale/sleazy-fork
// @supportURL   https://github.com/smartacephale/sleazy-fork/issues
// @match        https://*.eporner.com/*
// @match        https://*.eporner.*/*
// @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';

  var _unsafeWindow = (() => typeof unsafeWindow != "undefined" ? unsafeWindow : undefined)();

  const show_video_prev = _unsafeWindow.show_video_prev;
  new core.RulesGlobal({
    paginationStrategyOptions: {
      paginationSelector: ".numlist2"
    },
    customThumbDataSelectors: {
      quality: { type: "number", selector: '[title="Quality"]' }
    },
    containerSelectorLast: "#vidresults",
    thumbsSelector: "div[id^=vf][data-id]",
    uploaderSelector: '[title="Uploader"]',
    titleSelector: "a",
    durationSelector: '[title="Duration"]',
    getThumbImgDataStrategy: "auto",
    getThumbImgDataAttrDelete: "auto",
    customDataSelectorFns: [
      "filterInclude",
      "filterExclude",
      "filterDuration",
      {
        quality360: (el, state) => !!state.quality360 && el.quality !== 360
      },
      {
        quality480: (el, state) => !!state.quality480 && el.quality !== 480
      },
      {
        quality720: (el, state) => !!state.quality720 && el.quality !== 720
      },
      {
        quality1080: (el, state) => !!state.quality1080 && el.quality !== 1080
      },
      {
        quality4k: (el, state) => !!state.quality4k && el.quality !== 4
      }
    ],
    schemeOptions: [
      "Text Filter",
      "Badge",
      "Duration Filter",
      {
        title: "Quality Filter ",
        content: [
          {
            quality360: false
          },
          {
            quality480: false
          },
          {
            quality720: false
          },
          {
            quality1080: false
          },
          {
            quality4k: false
          }
        ]
      },
      "Advanced"
    ],
    animatePreview
  });
  function animatePreview(doc) {
    utils.onPointerOverAndLeave(
      doc,
      (e) => e instanceof HTMLImageElement,
      (e) => {
        const target = e;
        const thumb = target.closest("[data-id]");
        const id = thumb?.getAttribute("data-id");
        show_video_prev(id);
      }
    );
  }

})(core, utils);