您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
add download link to a novel website
// ==UserScript== // @name 天眼看小说下载按钮 // @namespace http://tampermonkey.net/ // @version 1.2 // @description add download link to a novel website // @author niuhe // @match https://novel.zhwenpg.com/b.php?id* // @grant none // @license MIT // ==/UserScript== (function() { var book_name = document.querySelector("#idmaintablist > table:nth-child(3) > tbody > tr:nth-child(1) > td > h2").textContent var author = document.querySelector("#idmaintablist > table:nth-child(3) > tbody > tr:nth-child(1) > td > a > font").textContent var url_base = "javascript:window.location.href='https://github.com/zhb0318/tianyan_novel/raw/master/novel/" 'use strict'; var download_loc = url_base + book_name + "%2B" + author + ".txt'" var button = document.createElement("a"); //创建一个input对象(提示框按钮) button.setAttribute("href", download_loc); button.text ="TXT下载(单击预览后,右键另存为)" button.setAttribute("target","view_window") var x = document.getElementsByClassName("cbooksingle")[2]; x.appendChild(button); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址