Greasy Fork is available in English.
随滚动自动展开评论+gif+直接看大图
// ==UserScript==
// @name 煎蛋半自动摸鱼小助手
// @namespace http://greasyfork.icu/users/186574
// @homepage http://greasyfork.icu/scripts/368223
// @version 1.6.1
// @description 随滚动自动展开评论+gif+直接看大图
// @author dccxi
// @match http://jandan.net/pic*
// @match http://jandan.net/top*
// @match https://jandan.net/pic*
// @match https://jandan.net/top*
// @grant none
// ==/UserScript==
'use strict';
// 自动展开吐槽
function load1() {
document
.querySelectorAll(
'div.comment-func:not(:has(+ div.tucao-container)) > span.button-group:nth-child(3)'
)
.forEach((ele) => ele.click());
}
// 自动点击大图
function load2() {
document
.querySelectorAll(
'div.comment-row > div.comment-content > div.img-container > img.img-min'
)
.forEach((ele) => ele.click());
}
// 加载 gif
function load3() {
document
.querySelector('div.gif-overlay:not(div.d-none):has(span > i.bi-play)')
?.click();
}
setInterval(() => {
load1();
load2();
load3();
}, 1000);