您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
auto clicks reddit links to move past the comments page
当前为
// ==UserScript== // @name reddit-auto-click // @description auto clicks reddit links to move past the comments page // @namespace ziffusion.com // @include http*://*.reddit.com/r/*/comments/* // @version 8.3 // ==/UserScript== var content = document.querySelector('[data-test-id="post-content"]'); var elems = [ // link below title "div[2]/div[1]/div[3]/a[1]", "div[4]/div[1]/div[3]/a[1]", "div[4]/a[1]", // link on right "div[2]/div[2]/div[1]/a[1]", "div[4]/div[2]/div[1]/a[1]", // image "div[4]/div[1]/a[1]", /* "div[4]/div[2]/span[1]/a[2]", "div[4]/div[2]/div[1]/a[2]", */ ]; var link; for (var ii = 0; ii < elems.length && content && !link; ++ii) { link = document.evaluate(elems[ii], content, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; } if (link && link.href && link.href != document.URL) { window.open(link.href); }