您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Unchecks all Interests on the Twitter/X Interests page very slowly and randomly with human-like behavior
// ==UserScript== // @name Twitter Interests: Uncheck All (Stealth Mode) // @license MIT // @namespace http://tampermonkey.net/ // @version 2024-05-26 // @description Unchecks all Interests on the Twitter/X Interests page very slowly and randomly with human-like behavior // @author Doxie // @match https://twitter.com/settings/your_twitter_data/twitter_interests // @match https://x.com/settings/your_twitter_data/twitter_interests // @icon https://www.google.com/s2/favicons?sz=64&domain=x.com // @grant none // ==/UserScript== (function() { function getRandomDelay() { // Generate a random delay between 5 and 10 seconds return 5000 + Math.random() * 5000; } function simulateHumanBehavior() { // Randomly scroll a bit or move the mouse const behaviors = [ () => window.scrollBy(0, Math.random() * 100 - 50), () => window.scrollBy(0, Math.random() * -100 + 50), () => { const event = new MouseEvent('mousemove', { view: window, bubbles: true, cancelable: true, clientX: Math.random() * window.innerWidth, clientY: Math.random() * window.innerHeight }); document.dispatchEvent(event); } ]; behaviors[Math.floor(Math.random() * behaviors.length)](); } function startUnchecking() { setTimeout(() => { var checkboxes = []; document.querySelectorAll('input[type="checkbox"]').forEach((c) => { if (c.checked) { checkboxes[checkboxes.length] = c; } }); var i = 0; var loopId = setInterval(() => { if (i % 5 == 0) { simulateHumanBehavior(); } var e = checkboxes[i++]; if (i % 10 == 0) { console.log("Running... (" + i + ")"); } if (e !== undefined) { if (e.checked) { console.log(e); e.parentElement.click(); } // Adding a random delay between 5 to 10 seconds clearInterval(loopId); loopId = setInterval(arguments.callee, getRandomDelay()); } else { clearInterval(loopId); } }, getRandomDelay()); }, 4000); } // Run the function initially startUnchecking(); // Ensure the function runs even after a page refresh window.addEventListener('load', startUnchecking); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址