Autoloads all notes on Tumblr posts
当前为
// ==UserScript==
// @name Tumblr notes autoload
// @include http://*tumblr.com/post/*
// @description Autoloads all notes on Tumblr posts
// @version 1.0
// @author wOxxOm
// @namespace wOxxOm.scripts
// @license MIT License
// @run-at document-start
// @grant none
// ==/UserScript==
window.addEventListener('DOMContentLoaded', clickMore);
function clickMore() {
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});
}
}