您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically confirms the 90-minute periodic prompt asking "Are you still there?", so you can talk without worrying about being disconnected.
// ==UserScript== // @name G+ Hangouts Unlimited // @description Automatically confirms the 90-minute periodic prompt asking "Are you still there?", so you can talk without worrying about being disconnected. // @include https://plus.google.com/hangouts/_/* // @match https://plus.google.com/hangouts/_/* // @version 1.0.8 // @namespace https://gf.qytechs.cn/users/5780 // ==/UserScript== (function(){ function addJQuery(callback) { var script = document.createElement("script"); script.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"); script.addEventListener('load', function() { var script = document.createElement("script"); script.textContent = "(" + callback.toString() + ")();"; document.body.appendChild(script); }, false); document.body.appendChild(script); } function checkForPrompt() { function simulate(target, evtName) { evt = document.createEvent("MouseEvents"); evt.initMouseEvent(evtName, true, true, document.defaultView, 0, 0, 0, 0, 0, false, false, false, false, 0, target); target.dispatchEvent(evt); } function simulateClick(target) { simulate(target, "mouseover"); simulate(target, "mousedown"); simulate(target, "mouseup"); simulate(target, "mouseout"); } $('div[role="button"]').each(function(idx, item) // For each div with attribute role = "button" { if ($(item).html().indexOf("Yes") >= 0) // Correct button found { simulateClick(item); } }); setTimeout(checkForPrompt, 15000); // Repeat every 15 seconds } function init() { addJQuery(checkForPrompt); } setTimeout(init, 15000); // Start after 15 seconds })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址