您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Twitter Auto Show More Replies, Included Offensive Contents. 推特自动显示所有回复,包括攻击性内容。
当前为
// ==UserScript== // @name Twitter - Auto Show More Replies // @namespace http://tampermonkey.net/ // @version 1.4 // @description Twitter Auto Show More Replies, Included Offensive Contents. 推特自动显示所有回复,包括攻击性内容。 // @author Martin______X // @match https://twitter.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com // @grant none // @license MIT // ==/UserScript== const simpleClick = (async (more_replies_button) => { more_replies_button.click(); }); const moreRepliesInterval = setInterval(() => { if (document.URL.includes("status")) { //Counter let i = 0; //Normal Tweets let more_replies_button = document.getElementsByClassName("css-175oi2r r-1777fci r-1pl7oy7 r-13qz1uu r-1loqt21 r-o7ynqc r-6416eg r-1ny4l3l"); //Offensive Tweets let more_replies_button2 = document.getElementsByClassName("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"); //Attributes In Tags let role = ""; //Normal Tweets for (i = 0; i < more_replies_button.length; i++) { role = more_replies_button[i].getAttribute("role"); if (role == "button") { simpleClick(more_replies_button[i]); } } //Offensive Tweets for (i = 0; i < more_replies_button2.length; i++) { role = more_replies_button2[i].getAttribute("role"); if (role == "button") { simpleClick(more_replies_button2[i]); } } } }, 1);