您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Clicks buttons like 'Lees meer' on decorrespondent.nl, to see all comments in all threads.
// ==UserScript== // @name Show all contributions decorrespondent.nl pages // @namespace https://greasyfork.org/users/1047370 // @description Clicks buttons like 'Lees meer' on decorrespondent.nl, to see all comments in all threads. // @include https://decorrespondent.nl/* // @match https://decorrespondent.nl/* // @version 0.1 // @author Marnix Klooster <[email protected]> // @copyright public domain // @license public domain // @homepage https://greasyfork.org/scripts/551075 // @grant none // ==/UserScript== (function() { var theInterval = null; var lastClickedButton = null; function start() { if (theInterval) { console.log(`SOMETHING WENT WRONG. Ignoring this call to start().`); return; } theInterval = setInterval(function() { // click any 'Leer meer' etc. button in sight... for (const button of document.querySelectorAll( [ '.Comment__expandButton', '.CommentsListExpand', ].join(','))) { console.log(`Clicking the button marked "${button.innerText}"...`); button.click(); } }, 1000); } start(); })();