您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button to autoload all notes on Tumblr full page posts
当前为
// ==UserScript== // @name Tumblr notes autoload // @include http://*tumblr.com/post/* // @description Adds a button to autoload all notes on Tumblr full page posts // @version 1.1 // @author wOxxOm // @contributor JesseW // @namespace wOxxOm.scripts // @license MIT License // @run-at document-start // @grant none // ==/UserScript== window.addEventListener('DOMContentLoaded', function(){ var btn; var btnLabel = {load:'Load all notes', stop:'Stop loading notes', done:'All notes are loaded'}; function clickMore() { if (btn.stopSignal) { delete btn.stopSignal; btn.textContent = btnLabel.load; return; } var more = document.querySelector('.more_notes_link'); if (more) { more.click(); var ob = new MutationObserver(function(mutations){ ob.disconnect(); setTimeout(function(){ clickMore() }, 200); }); ob.observe(more.parentNode.parentNode, {subtree:true, childList:true}); } else { btn.textContent = btnLabel.done; btn.disabled = true; } } document.querySelector('.notes').insertAdjacentHTML('beforebegin', '<button id="loadallBtn" style="margin-bottom:1em">' + btnLabel.load + '</button>'); btn = document.getElementById('loadallBtn'); btn.addEventListener('click', function(){ if (btn.textContent == btnLabel.load) { btn.textContent = btnLabel.stop; clickMore(); } else { btn.stopSignal = true; } }); });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址