Tumblr notes autoload

Autoloads all notes on Tumblr posts

目前為 2015-02-20 提交的版本,檢視 最新版本

// ==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});
  }
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址