☰

JavDatabase PervertMonkey

Adds search movie links

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला 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);
	});
})();