-
Notifications
You must be signed in to change notification settings - Fork 0
/
DX2All.user.js
20 lines (18 loc) · 1.08 KB
/
DX2All.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// ==UserScript==
// @name DX2All
// @version 1.2
// @include *.com/bookDetail.jsp?dxNumber=*
// @description 顯示 ssid ,通向 BK 查詢頁及 NB ZJK, JN ZJK, GZU ZJK 返回鏈獲取頁
// @copyright LCZ
// @license GPLv3
// ==/UserScript==
var version = "1.2";
var date = "2015-4-7";
var getBK = location.href.replace("bookDetail.jsp?dxNumber=", "other.do?go=showmorelib&dxid=")
var ssidfavDiv = document.getElementById("ssidfav");
var ssid = ssidfavDiv.getAttribute("value");
var divAdd = document.createElement("div");
divAdd.innerHTML = ssid+' <a href="' + getBK + '&type=1">BK</a> <a href="http://cxbook.nlic.net.cn:8089/getbookread?BID='+ssid+'" target="_blank">NB</a> <a href="http://210.32.205.38:8088/getbookread?BID='+ssid+'" target="_blank">ZG</a> <a href="http://202.116.13.19:8080/GW/s/202.116.13.47/G.http-8088/getbookread?BID='+ssid+'" target="_blank">JN</a> <a href="http://210.40.8.52:4599/getbookread?BID='+ssid+'" target="_blank">GZ</a>';
var grade1Div = document.getElementById("frameshow");
var grade1Parent = grade1Div.parentNode;
grade1Parent.insertBefore(divAdd, grade1Div);