X.com (Twitter) - Auto Show More Replies

X.com (Twitter) Auto Show More Replies, Included Probable Spam. 推特自动显示所有回复,包括可能的垃圾信息。

目前為 2024-06-22 提交的版本,檢視 最新版本

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

You will need to install an extension such as Tampermonkey to install this script.

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         X.com (Twitter) - Auto Show More Replies
// @namespace    http://tampermonkey.net/
// @version      2.0
// @description  X.com (Twitter) Auto Show More Replies, Included Probable Spam. 推特自动显示所有回复,包括可能的垃圾信息。
// @author       Martin______X
// @match        https://twitter.com/*
// @include      https://x.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=x.com
// @grant        none
// @license      MIT
// ==/UserScript==

/* */
let $button1 = "css-175oi2r r-1777fci r-1pl7oy7 r-13qz1uu r-1loqt21 r-o7ynqc r-6416eg r-1ny4l3l";
/* Sensitive Replies*/
let $button2 = "css-175oi2r r-sdzlij r-1phboty r-rs99b7 r-lrvibr r-faml9v r-2dysd3 r-15ysp7h r-4wgw6l r-3pj75a r-1loqt21 r-o7ynqc r-6416eg r-1ny4l3l";

const simpleClick = (async (more_replies_button) => {
    more_replies_button.click();
});
const moreRepliesInterval = setInterval(() => {
    try{
        if (document.URL.includes("status")) {
            //Counter
            let i = 0;
            //
            let more_replies_button = document.getElementsByClassName($button1);
            for (i = 0; i < more_replies_button.length; i++) {
                simpleClick(more_replies_button[i]);
            }
            let more_replies_button2 = document.getElementsByClassName($button2);
            for (i = 0; i < more_replies_button2.length; i++) {
                simpleClick(more_replies_button2[i]);
            }
        }
    }catch(error){
        console.error(error)
    }
}, 1);