Patreon: Load all comments

Automates loading all the comments intead of requiring the user to click for each batch

目前為 2024-01-08 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Patreon: Load all comments
// @namespace    http://tampermonkey.net/
// @version      2024-01-08
// @description  Automates loading all the comments intead of requiring the user to click for each batch
// @author       You
// @match        https://www.patreon.com/posts/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=patreon.com
// @grant        none
// ==/UserScript==

(function() {
    function loaded(){
        let lmc = document.querySelector("button[data-tag='loadMoreCommentsCta'");
        lmc.innerHTML = "Load ALL comments";
        let obs = new MutationObserver(mut => { if(mut[0].removedNodes.length>0 && lmc){ lmc.click();} });
        obs.observe(lmc.parentElement, { childList: true, subtree: true });
    }
    document.body.onload = loaded;
})();

QingJ © 2025

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