JavLib搜索番号

支持点击识别码搜寻番号

ของเมื่อวันที่ 25-03-2019 ดู เวอร์ชันล่าสุด

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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.

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

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

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.7
// @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.xyz/list/" + videoIDText + "/1-0-0' target='_blank'>" + videoIDText + "</a>"
    
})();