Ebalka PervertMonkey

Infinite scroll [optional], Filter by Title and Duration, Sort by Duration, Download button.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला 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         Ebalka PervertMonkey
// @namespace    pervertmonkey
// @version      3.0.13
// @author       violent-orangutan
// @description  Infinite scroll [optional], Filter by Title and Duration, Sort by Duration, Download button.
// @license      MIT
// @icon         https://www.google.com/s2/favicons?sz=64&domain=ebalka.zip
// @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://b.ebalka.zip/*
// @match        https://a.ebalka.love/*
// @match        https://*ebalka.*.*/*
// @match        https://*.ebalk*.*/*
// @match        https://*.fuckingbear*.*/*
// @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: ".content__video",
    paginationStrategyOptions: {
      paginationSelector: ".pagination:not([id *= member])"
    },
    thumbs: {
      selector: ".card_video"
    },
    thumb: {
      selectors: {
        title: ".card__title",
        duration: ".card__spot > span:last-child",
        hd: { selector: ".card__icons > .card__icon", type: "boolean" }
      }
    },
    animatePreview,
    schemeOptions: [
      "Title Filter",
      "Duration Filter",
      "HD Filter",
      "Sort By Duration",
      "Badge",
      "Advanced"
    ]
  });
  function animatePreview(container) {
    function animateThumb(thumb) {
      const e = thumb.querySelector(".card__thumb_video");
      e.classList.toggle("video-on");
      const src = e.querySelector(".card__image")?.getAttribute("data-preview");
      const videoElem = utils.parseHtml(`<video style="position: absolute; left: 0px; top: 0px; visibility: visible; margin-top: -1px;"
      autoplay="" loop="" playsinline="true" webkit-playsinline="true" src="${src}"></video>`);
      e.appendChild(videoElem);
      return () => {
        e.classList.toggle("video-on");
        utils.exterminateVideo(videoElem);
      };
    }
    utils.OnHover.create(container, ".card_video", (target) => {
      const thumb = target.closest(".card");
      return animateThumb(thumb);
    });
  }
  document.querySelector(".tooltip-container") && utils.downloader({
    append: ".tooltip-container",
    buttonHtml: '<a class="button button_regular button_list root__link">Download ⤓</a>'
  });

})(core, utils);