豆瓣读书直达江苏大学图书馆搜索

豆瓣读书直达江苏大学图书馆搜索,方便找书

  1. // ==UserScript==
  2. // @name 豆瓣读书直达江苏大学图书馆搜索
  3. // @namespace https://blog.xlab.app/
  4. // @more https://github.com/ttttmr/UserJS
  5. // @version 0.3
  6. // @description 豆瓣读书直达江苏大学图书馆搜索,方便找书
  7. // @author tmr
  8. // @include https://book.douban.com/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function () {
  13. 'use strict';
  14. let title = document.getElementsByTagName('h1')[0].children[0].innerText;
  15. let info = document.getElementById('info');
  16. let liblink = document.createElement('a');
  17. let isbn = info.innerText.match(/\d{13}|\d{10}/)[0];
  18. liblink.href =
  19. 'http://huiwen.ujs.edu.cn:8080/opac/openlink.php?strSearchType=isbn&match_flag=full&historyCount=1&strText=' +
  20. isbn +
  21. '&doctype=ALL&with_ebook=on&displaypg=20&showmode=list&sort=CATA_DATE&orderby=desc&location=ALL';
  22. liblink.target = '_blank';
  23. liblink.innerText = '去江苏大学图书馆搜索';
  24. info.appendChild(liblink);
  25. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址