NameThatPorn PervertMonkey

Infinite scroll [optional], Filter by Title, Uploader and Solved/Unsolved

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

作者のサイトでサポートを受ける。または、このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         NameThatPorn PervertMonkey
// @namespace    pervertmonkey
// @version      3.0.20
// @author       violent-orangutan
// @description  Infinite scroll [optional], Filter by Title, Uploader and Solved/Unsolved
// @license      MIT
// @icon         https://www.google.com/s2/favicons?sz=64&domain=namethatporn.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://namethatporn.com/*
// @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 _unsafeWindow = (() => typeof unsafeWindow != "undefined" ? unsafeWindow : void 0)();
	new ___core.Rules({
		thumbs: { selector: ".item, .nsw_r_w" },
		containerSelector: "#items_wrapper, #nsw_r",
		thumb: { selectors: {
			title: ".item_title, .nsw_r_tit",
			uploader: ".item_answer b, .nsw_r_desc",
			solved: {
				selector: ".item_solved, .nsw_r_slvd",
				type: "boolean"
			}
		} },
		thumbImg: { selector: (img) => img.getAttribute("data-dyn")?.concat(".webp") || img.getAttribute("src") },
		paginationStrategyOptions: { paginationSelector: "#smi_wrp, #nsw_p" },
		gropeStrategy: "all-in-all",
		customDataFilterFns: [{ filterSolved: (e, state) => state.filterSolved && e.solved }, { filterUnsolved: (e, state) => state.filterUnsolved && !e.solved }],
		schemeOptions: [
			"Title Filter",
			"Uploader Filter",
			{
				title: "Filter Status",
				content: [{
					filterSolved: false,
					label: "solved"
				}, {
					filterUnsolved: false,
					label: "unsolved"
				}]
			},
			"Badge",
			"Advanced"
		]
	});
	_unsafeWindow.confirm = () => true;
	function handleKeys(event) {
		if (event.key === "c") {
			const name = document.querySelector("#loggedin_box_new_username")?.innerText;
			if (!document.querySelector(`.ida_confirm_usernames a[href$="${name}.html"]`)) document.querySelector(".id_answer_buttons > .iab.iac")?.click();
		}
	}
	_unsafeWindow.addEventListener("keydown", handleKeys, { once: true });
})(___core);