Ebalka PervertMonkey

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

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey, Greasemonkey of Violentmonkey.

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

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Userscripts.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een gebruikersscriptbeheerder nodig.

(Ik heb al een user script manager, laat me het downloaden!)

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

(Ik heb al een beheerder - laat me doorgaan met de installatie!)

// ==UserScript==
// @name         Ebalka PervertMonkey
// @namespace    pervertmonkey
// @version      3.0.21
// @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#readme
// @homepageURL  https://sleazyfork.org/en/users/1253342-smartacephale
// @source       https://github.com/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
// @grant        GM_addStyle
// @grant        unsafeWindow
// @run-at       document-idle
// ==/UserScript==

var ___core = window.pervertmonkey.core || pervertmonkey.core;
var ___utils = ___core;


(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 = (0, ___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");
				(0, ___utils.exterminateVideo)(videoElem);
			};
		}
		___utils.OnHover.create(container, ".card_video", (target) => {
			return animateThumb(target.closest(".card"));
		});
	}
	document.querySelector(".tabs-menu") && (0, ___utils.downloader)({
		append: ".tabs-menu",
		doBefore: () => document.querySelector("video")?.click(),
		buttonHtml: "<li class=\"ml-20\"><a class=\"button button_regular button_list root__link\">Download ⤓</a></li>"
	});
})(___core, ___utils);