Ebalka PervertMonkey

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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.

ستحتاج إلى تثبيت إضافة مثل 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);