您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
知乎_话题_每隔1毫秒点击“加载更多”和“显示子话题”
// ==UserScript== // @name 知乎_话题_获取完整话题结构 // @namespace zhihu // @include https://www.zhihu.com/topic/*/organize/entire // @version 3 // @grant none // @description 知乎_话题_每隔1毫秒点击“加载更多”和“显示子话题” // ==/UserScript== function clickitem() { var items = document.getElementsByName("load"); var i; var itemSel = 0; for (i = 0; i < items.length; i++) { if (itemSel === 0) { itemSel = items[i]; continue; } if (itemSel.offsetLeft > items[i].offsetLeft) { itemSel = items[i]; continue; } else if (itemSel.offsetLeft == items[i].offsetLeft){ if (itemSel.text == "显示子话题" && items[i].text == "加载更多") { itemSel = items[i]; } } } itemSel.click(); } setInterval(clickitem, 1);