cpppcPDF下载

cpppc网站pdf文件下载

// ==UserScript==
// @name         cpppcPDF下载
// @namespace    cpppcPDFDownloader.taozhiyu.gitee.io
// @version      0.1
// @description  cpppc网站pdf文件下载
// @author       涛之雨
// @match        https://www.cpppc.org:8082/inforpublic/homepage.html*
// @match        https://www.cpppc.org:8082/inforpublic/pdfJs/web/viewer.html*
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABYRJREFUeF7tm2eIJEUUgL8TjCgmzAFEBfFMKOasKOaMARHMnhEDpgNRwSwIIiqKnnrmdGdCETPGE3NCzAkF8w9FVAT5zqqlrq9np3p2unvcnQdD381WeO+r6qpX79VMYoLLpAluP0MAwxnQLoHlgC2B1YBVk+fSwI/AT+F5G/AE8FW/1W3rFdDwY4CjgOUrGPUwcD3wSIU6oxZtGkAnw78FvgN8fgP8AiwDLAusA6xUsKJvIJoEsBFwC7BGYsx04Grg1S4jujGwc8mMuQw4cyyzoSkA2wO3As4AZWYw/KmKyscZNBWYN9R9FNi1YjsjxZsAsA9wO7BA6PVs4JJeFQ71dgFuSIDanu1WlroBuLo/A6wYNDseuKaylp0rPA9sEf58OHBT1bb7AcBp6edd4O+CAvcB+4bvDgHczvotXwIrh0Y3B16q0kGvADTGabhh2L/t80/gdcB38kLgdMBFSjkHuKCKYhXKbhNmmVVmJMCzmqgKwPf4CuDYrNb/K/Qx4Cru1laXXAccHRo/GLgjt6MqANYE3k8afhN4DXgLcBquC6xfMgInA1fmKtRjuQ2CLlZ/Bdg0t50qAHRDo0OiN3Ya8FtJR74elwdH5g3A/f+fXIXGUO4u4IBQX+9Sx6qr5AK4CjghtDYNOKJLy3pvWwFPAx901aI/BY4LvoWt7Qfcn9NsDoBFgE+BpYBZwCY5DbdQRv2+D/1me4g5APYOq6ttbwa83IJxuV260C5WZTfIAaCv7vT6C3A2+BxU+QhYHXgnLMpd9RwNwOJhP49bniu++/4gy4thlv4BLJSjaCc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ElFTkSuQmCC
// @grant        GM_registerMenuCommand
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    GM_registerMenuCommand("下载",function(){
        (function(){var i=window.PDFViewerApplication||frames[0].PDFViewerApplication;void 0===window["0_0"]&&(i.contentDispositionFilename=new TextDecoder("gbk").decode(new Uint8Array(i.contentDispositionFilename.split("").map(function(i){return i.codePointAt();})).buffer),window["0_0"]="");i.download();})();
    });
})();