煎蛋半自动摸鱼小助手

随滚动自动展开评论+gif+直接看大图

// ==UserScript==
// @name         煎蛋半自动摸鱼小助手
// @namespace    https://gf.qytechs.cn/users/186574
// @homepage     https://gf.qytechs.cn/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);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址