☰

JavLibrary to Nyaa

Add a buton to search the video on nyaa

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         JavLibrary to Nyaa
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Add a buton to search the video on nyaa
// @author       Anon
// @include      https://www.javlibrary.com/*
// @include      https://sukebei.nyaa.si/*
// @exclude      https://www.javlibrary.com/en/login.php
// @exclude      https://www.javlibrary.com/en/search.php
// @icon         https://www.google.com/s2/favicons?domain=javlibrary.com
// @grant        none
// @require      http://code.jquery.com/jquery-3.4.1.min.js
// @license MIT
// ==/UserScript==
//"https://sukebei.nyaa.si/?f=0&c=0_0&q=";
(function() {
    'use strict';
    $(".id").each(function () {
        var b ='<a target="_blank" href="https://sukebei.nyaa.si/?f=0&c=0_0&q='+$(this).text()+'&s=seeders&o=desc&script"><img src="https://sukebei.nyaa.si/static/favicon.png"></a> ';
        $(this).parent().siblings('.toolbar').append(b);
    });
    $("#video_id tr .text").each(function () {
        var b ='<a target="_blank" href="https://sukebei.nyaa.si/?f=0&c=0_0&q='+$(this).text()+'&s=seeders&o=desc&script"><img src="https://sukebei.nyaa.si/static/favicon.png"></a> ';
        $("#video_title h3").prepend(b);
    });
    if (window.location.href.indexOf("script") > -1) {
        var target = document.querySelector("td:nth-child(3) > a:nth-child(2) > i:nth-child(1)").click();
    }
}
)();