JavLib搜索番号

支持点击识别码搜寻番号

Version vom 18.03.2019. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

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

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

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

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name              JavLib搜索番号
// @namespace         http://www.javlibrary.com    
// @version           0.0.6
// @icon              http://www.d21b.com/favicon.ico
// @description       支持点击识别码搜寻番号
// @author            boxerw
// @match             *://www.d21b.com/*
// @match             *://www.javlibrary.com/*
// @match             *://www.w24j.com/*
// @match             *://www.k25m.com/*
// @match             *://www.p26y.com/*
// @match             *://www.d28k.com/*
// @require           https://cdn.jsdelivr.net/npm/[email protected]/jquery.xpath.js
// @run-at            document-end
// ==/UserScript==
(function () {
    var videoIDNode = $(document.body).xpath("//*[@id='video_id']/table/tbody/tr/td[2]")[0]
    if (null == videoIDNode)
    {
        return
    }

    if (null == videoIDNode.innerHTML || "" == videoIDNode.innerHTML)
    {
        return
    }
        
    var videoIDText = videoIDNode.innerHTML.trim()
  
    videoIDNode.innerHTML = "<a href='https://alicili.ws/list/" + videoIDText + "/1-0-0' target='_blank'>" + videoIDText + "</a>"
    
})();