☰

Ebalka PervertMonkey

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

当前为 2026-03-06 提交的版本,查看 最新版本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴、Greasemonkey 油猴子 或 Violentmonkey 暴力猴,才能安装此脚本。

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴 或 Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴 或 Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Ebalka PervertMonkey
// @namespace    pervertmonkey
// @version      3.0.8
// @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);