您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
整理 Pixiv 資訊
// ==UserScript== // @name 整理資訊 // @namespace http://tampermonkey.net/ // @version 0.1.1 // @description 整理 Pixiv 資訊 // @author BeenYan // @match https://www.pixiv.net/artworks/* // @icon https://www.google.com/s2/favicons?sz=64&domain=pixiv.net // @grant GM_addStyle // @license GPL // ==/UserScript== GM_addStyle(` #ctm-info { width: 100%; height: 13rem; color: #eee; background: #1F1F1F; } `); function setContent(node) { const title = document.querySelector('h1').textContent; const content = [...document.querySelector('h1').nextElementSibling.children[0].children[0].childNodes].map(node => node.nodeName === 'BR'? '\n': node.textContent).join(''); const tag = [...document.querySelectorAll('.gtm-new-work-tag-event-click')].map(x => '#' + x.text).join(' '); node.value = `${title}\n\n${content}\n\n${tag}`; } (() => { const textArea = document.createElement('textarea'); textArea.id = 'ctm-info'; const observer = new MutationObserver(() => setContent(textArea)); const asideObserver = new MutationObserver((mutations, owner) => { let image = document.querySelector('.gtm-expand-full-size-illust'); if (image === null) return; console.log('Watch start', image); observer.observe(image, { childList: true, attributes: true, }); const sections = document.querySelectorAll('section'); setContent(textArea); sections[sections.length - 2].append(textArea); asideObserver.disconnect(); }); asideObserver.observe(document.body, { childList: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址