// ==UserScript== // @name PKU-Thesis-Download // @namespace https://github.com/xiaotianxt // @version 1.0 // @description 北大论文平台下载工具,请勿传播下载的文件,否则后果自负。 // @author xiaotianxt // @match http://162.105.134.201/pdfindex.jsp?fid=* // @match https://drm.lib.pku.edu.cn/pdfindex.jsp?fid=* // @icon https://www.google.com/s2/favicons?sz=64&domain=pku.edu.cn // @license GNU GPLv3 // @downloadURL none // ==/UserScript== (function () { "use strict"; const RESOLUTION = "pku_thesis_download.resolution"; const fid = $("#fid").val(); const totalPage = parseInt($("#totalPages").html().replace(/ \/ /, "")); const baseUrl = `https://drm.lib.pku.edu.cn/jumpServlet?fid=${fid}`; const msgBox = initUI(); initMonitor(); function initUI() { // jsPDF $("