☰

JavDatabase PervertMonkey

Adds search movie links

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         JavDatabase PervertMonkey
// @namespace    pervertmonkey
// @version      1.0.1
// @author       violent-orangutan
// @description  Adds search movie links
// @license      MIT
// @icon         https://www.google.com/s2/favicons?sz=64&domain=javdatabase.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://www.javdatabase.com/*
// @require      https://cdn.jsdelivr.net/npm/[email protected]/dist/core/pervertmonkey.core.umd.js
// @grant        none
// @run-at       document-idle
// ==/UserScript==

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


(function() {
	"use strict";
	var websites = [
		{
			name: "missav.ws",
			url: (u) => `https://missav.ws/en/search/${u}`
		},
		{
			name: "javhdporn.net",
			url: (u) => `https://www.javhdporn.net/search/${u}/`
		},
		{
			name: "javxxx.me",
			url: (u) => `https://www.javxxx.me/search/${u}/`
		}
	];
	function createLinks(name) {
		return `<div style='display: flex;' >${websites.map((w) => `
      <a target="_blank" style='padding: 2px;' href="${w.url(name)}">
        <img class='wp-postratings-item' src="https://www.google.com/s2/favicons?sz=64&domain=${w.name}">
      </a>`).join(" ")}</div>`;
	}
	document.querySelectorAll(".card").forEach((e) => {
		const title = e.querySelector(".cut-text")?.innerText.trim() || "";
		console.log({ title });
		if (title?.length === 0) return;
		e.innerHTML += createLinks(title);
	});
})();