您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
SIS001 小说下载
// ==UserScript== // @name SIS001 TXTDOWN // @namespace http://tampermonkey.net/ // @version 2.0 // @description SIS001 小说下载 // @author brackrock12 // @match http://38.103.161.134/forum/viewthread.php?tid=* // @require https://cdn.jsdelivr.net/npm/[email protected]/FileSaver.min.js // ==/UserScript== (function () { 'use strict'; function down() { const h1 = document.querySelector('.mainbox > h1:nth-child(2)') console.log(h1) let ce = document.createElement('a'); ce.id = 'CDownBtn'; ce.textContent = '单章下载'; ce.style.color = 'blue'; ce.style.textDecoration = "underline"; // ce.href='javascript:void(0)' ce.onclick = function () { downtext(document); }; h1.append(ce); function removeElement(doc, ele) { var elelist = doc.querySelectorAll(ele); for (const e of elelist) { e.remove() } } function downtext() { const con = document.querySelector('div.t_msgfont:nth-child(1)') console.log(con) removeElement(con, 'strong') removeElement(con, 'table') removeElement(con, 'strong') let btitle = h1.innerText.replace('[同人衍生]', '').replace('单章下载', '') let str = con.innerText let blob = new Blob([btitle + '\r\n', str], { type: "text/plain;charset=utf-8" }); saveAs(blob, btitle + ".txt"); ce.style.color = 'red'; } setTimeout(downtext, 600); } down() })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址