您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
公文写作宝 - 免会员下载文档全文图片脚本
// ==UserScript== // @name 公文写作宝 - 免会员下载文档全文图片 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 公文写作宝 - 免会员下载文档全文图片脚本 // @author Bakapiano // @match https://gwxzb.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net // @grant none // @license MIT // ==/UserScript== (function() { const button = document.createElement("button"); button.style.fontSize = "24px" button.style.position = "fixed" button.style.top = "0" button.style.left = "0" button.style.zIndex = 999999999999999999 button.style.backgroundColor = "red" button.textContent = "Download" button.onclick = () => { const img = document.querySelector("#pageNo1 > img") const src = img.src.split("?")[0] const maxPageNum = Number(document.querySelector("#fullscreen1 > div.viewleft > div.pageinfo > div > div.goto-page > span:nth-child(3)").innerText) for (let i=1; i<=maxPageNum; ++i) { const temp = src.split("/") temp[temp.length - 1] = temp[temp.length - 1].replace("1", String(i)) const newSrc = temp.join("/") const name = temp[temp.length - 1] window.open(newSrc) } } document.body.append(button); })();