您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
百度文库解析下载功能,利用第三方站友好展示,可打印PDF格式导出。脚本仅限学习。
// ==UserScript== // @name 百度文库下载器,VIP文档免费下载,打印PDF,导出文档等。 // @version 1.0 // @description 百度文库解析下载功能,利用第三方站友好展示,可打印PDF格式导出。脚本仅限学习。 // @author k // @license MIT // @match *://wenku.baidu.com/* // @match *://wk.baidu.com/* // @icon https://www.baidu.com/favicon.ico // @grant unsafeWindow // @run-at document-start // @namespace https://greasyfork.org/users/424052 // ==/UserScript== // ==/useBootStrap== //"https://www.bootcss.com/" (function(){ 'use strict' window.addEventListener('load', () => { addButton('文库下载', selectReadFn) }) function addButton(text, onclick, cssObj) { cssObj = cssObj || {position: 'absolute', bottom: '50%', left:'80%', 'z-index': 3, width:'50px',position: 'fixed',} let button = document.createElement('button'), btnStyle = button.style document.body.appendChild(button) button.innerHTML = text button.onclick = onclick Object.keys(cssObj).forEach(key => btnStyle[key] = cssObj[key]) return button } function selectReadFn() { window.open("http://api.bdwenku.com/?urls="+location.href); } }())