Sleazy Fork is available in English.

Supjav 种子搜索

提取FC2PPV编号并添加悬浮按钮跳转到Sukebei搜索

// ==UserScript==
// @name         Supjav 种子搜索
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  提取FC2PPV编号并添加悬浮按钮跳转到Sukebei搜索
// @author       levinism
// @match        https://supjav.com/ja/*.html
// @grant        none
// @run-at       document-idle
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    // 等待页面完全加载
    window.addEventListener('load', function() {
        // 尝试获取标题元素
        const titleElement = document.querySelector('.archive-title h1');
        if (!titleElement) return;

        // 提取FC2PPV编号
        const titleText = titleElement.textContent.trim();
        const fc2Match = titleText.match(/FC2PPV\s+(\d+)/);

        if (!fc2Match || !fc2Match[1]) return;
        const fc2Number = fc2Match[1];

        // 创建悬浮按钮
        const floatingBtn = document.createElement('a');
        floatingBtn.textContent = '🔍 Search Sukebei';
        floatingBtn.href = `https://sukebei.nyaa.si/?f=0&c=0_0&q=${fc2Number}`;
        floatingBtn.target = '_blank';

        // 设置按钮样式
        floatingBtn.style.position = 'fixed';
        floatingBtn.style.left = '20px';
        floatingBtn.style.top = '50%';
        floatingBtn.style.transform = 'translateY(-50%)';
        floatingBtn.style.zIndex = '9999';
        floatingBtn.style.padding = '12px 20px';
        floatingBtn.style.backgroundColor = '#4a76d0';
        floatingBtn.style.color = 'white';
        floatingBtn.style.fontWeight = 'bold';
        floatingBtn.style.borderRadius = '25px';
        floatingBtn.style.boxShadow = '0 4px 12px rgba(0,0,0,0.3)';
        floatingBtn.style.textDecoration = 'none';
        floatingBtn.style.fontSize = '16px';
        floatingBtn.style.cursor = 'pointer';
        floatingBtn.style.transition = 'all 0.3s ease';

        // 悬停效果
        floatingBtn.addEventListener('mouseover', function() {
            this.style.backgroundColor = '#3a66c0';
            this.style.transform = 'translateY(-50%) scale(1.05)';
        });

        floatingBtn.addEventListener('mouseout', function() {
            this.style.backgroundColor = '#4a76d0';
            this.style.transform = 'translateY(-50%) scale(1)';
        });

        // 添加到页面
        document.body.appendChild(floatingBtn);
    });
})();