您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Click and close 推特自动确认点赞/转贴,点击后自动退出(撸毛辅助)
// ==UserScript== // @name X Indent Autoclick | 推特自动确认点赞/转贴 // @namespace http://tampermonkey.net/ // @version 0.0.1 // @description Click and close 推特自动确认点赞/转贴,点击后自动退出(撸毛辅助) // @author shiquda // @match https://x.com/intent/* // @match https://twitter.com/intent/* // @namespace https://github.com/shiquda/shiquda_UserScript // @supportURL https://github.com/shiquda/shiquda_UserScript/issues // @icon https://www.google.com/s2/favicons?sz=64&domain=x.com // @grant none // @license AGPL-3.0 // ==/UserScript== (function () { 'use strict'; // 查找确认按钮并点击 function clickAndClose() { // 根据当前页面类型查找不同的按钮 let targetBtn; if (window.location.href.includes('/intent/post')) { // 如果是发帖页面,查找发帖按钮 targetBtn = document.querySelector('[data-testid="tweetButton"]'); } else { // 其他页面查找确认按钮 targetBtn = document.querySelector('[data-testid="confirmationSheetConfirm"]'); } if (targetBtn) { // 点击目标按钮 targetBtn.click(); // 3秒后关闭页面 setTimeout(() => { window.close(); }, 3000); } else { // 如果没有找到按钮,继续循环等待 setTimeout(clickAndClose, 500); } } // 开始执行 clickAndClose(); })();