您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
add link to Javlibrary
// ==UserScript== // @name Sukebei to Javlibrary // @namespace http://tampermonkey.net/ // @version 0.1 // @description add link to Javlibrary // @include https://sukebei.nyaa.si/* // @author You // @match http://*/* // @grant https://sukebei.nyaa.si/ // @require http://code.jquery.com/jquery-3.6.0.min.js // @license MIT // ==/UserScript== (function() { 'use strict'; // Iterate over each row $('table tr').each(function() { // Find the second <td> element containing a <a> tag within the current row var secondTd = $(this).find('td:nth-child(2)').has('a'); // Extract the text from the second <td> using the first regular expression //var regex = /[A-Za-z]+-\d+/; var regex = /T\d{2}-\d{3}|[A-Za-z]+-\d+/; var extractText = secondTd.text().match(regex); //console.log(extractText); if (extractText) { // Create an <a> tag and set its attributes var anchorTag = $('<a>', { href: 'https://www.javlibrary.com/en/vl_searchbyid.php?keyword=' + extractText[0], }).append($('<img>').attr({ src: 'https://www.javlibrary.com/favicon.ico', width: 20, height: 20 })); // Find the third <td> element within the current row and append the <a> tag $(this).find('td:nth-child(3)').append(anchorTag); } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址