您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Simulates mouse movement to prevent AFK status in Microsoft Teams for Web.
当前为
// ==UserScript== // @name Microsoft Teams Anti-AFK (Keepalive Mouse) // @namespace https://greasyfork.org/en/scripts/541883-microsoft-teams-anti-afk-keepalive-mouse // @version 1.1 // @description Simulates mouse movement to prevent AFK status in Microsoft Teams for Web. // @author LokeYourC3PH // @match https://teams.microsoft.com/v2/* // @icon https://t2.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=http://teams.microsoft.com&size=64 // @grant none // @license GPLv3 // ==/UserScript== (function () { 'use strict'; const intervalMs = 60000; const movePixels = 1; let direction = 1; setInterval(() => { const evt = new MouseEvent("mousemove", { bubbles: true, cancelable: true, clientX: 100 + movePixels * direction, clientY: 100 + movePixels * direction }); direction *= -1; const target = document.querySelector("body") || document.documentElement; if (target) { target.dispatchEvent(evt); console.log("Dispatched synthetic mousemove to keep Teams active."); } }, intervalMs); })();