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.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==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);