☰

SpankBang.com PervertMonkey

Infinite scroll [optional]. Filter by Title and Duration. Sort by Duration and Views

您需要先安裝使用者腳本管理器擴展,如 Tampermonkey、Greasemonkey 或 Violentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 Tampermonkey 或 Violentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 Tampermonkey或 Violentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 Tampermonkey或 Userscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         SpankBang.com PervertMonkey
// @namespace    pervertmonkey
// @version      4.2.1
// @author       violent-orangutan
// @description  Infinite scroll [optional]. Filter by Title and Duration. Sort by Duration and Views
// @license      MIT
// @icon         https://www.google.com/s2/favicons?sz=64&domain=spankbang.com
// @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://*.spankbang.com/*
// @match        https://*.spankbang.*/*
// @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) {
	"use strict";
	var { qualityFilter, qualityFilterScheme } = (0, ___core.createQualityFilter)({
		qualityLow: "",
		qualityHD: "HD",
		quality4k: "4K"
	});
	new ___core.Rules({
		containerSelector: ".main-container .js-media-list, .main_content_container .video-list",
		paginationStrategyOptions: { paginationSelector: ".paginate-bar, .pagination" },
		thumbs: { selector: ".video-item:not(.clear-fix), .js-video-item" },
		thumb: { selectors: {
			title: "[title]",
			duration: "[data-testid=\"video-item-length\"]",
			views: {
				selector: "[data-testid=\"views\"]",
				type: "float"
			},
			quality: {
				selector: "[data-testid=\"video-item-resolution\"]",
				type: "string"
			}
		} },
		thumbImg: { strategy: "auto" },
		gropeStrategy: "all-in-all",
		customDataFilterFns: [{ qualityFilter }],
		schemeOptions: [
			"Title Filter",
			"Duration Filter",
			...qualityFilterScheme,
			"Sort By",
			"Badge",
			"Advanced"
		]
	});
})(___core);