Greasy Fork 还支持 简体中文。

reddit-auto-click

auto clicks reddit links to move past the comments page

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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     10.9
// ==/UserScript==
var ignore = [
	"www.theskepticsguide.org",
	"www.youtube.com",
	"discord.gg",
	"radar.cloudflare.com",
	"www.rebusle.com"
];
function isIgnored(url) {
	console.log('reddit-auto-click: check:', url.hostname);
	for (const ign of ignore) {
		if (ign == url.hostname) return true;
	}
	return false;
}
var results = document.evaluate('//shreddit-post//a', document, null, XPathResult.ANY_TYPE, null);
var node;
while (node = results.iterateNext()) {
	var url = new URL(node.href);
	if (isIgnored(url)) continue;
  if (url.hostname.toLowerCase().indexOf("reddit") >= 0) continue;
	console.log('reddit-auto-click: click:', url);
	window.open(url.href);
	break;
}