您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Auto checks the TOS and age checkboxes when starting a new chat
// ==UserScript== // @name Omegle TOS Auto Confim // @namespace https://www.omegle.com/ // @version 0.1 // @description Auto checks the TOS and age checkboxes when starting a new chat // @author You // @match https://www.omegle.com/ // @icon https://www.google.com/s2/favicons?sz=64&domain=omegle.com // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function waitForElement(selector) { return new Promise(resolve => { if (document.querySelector(selector)) { return resolve(document.querySelector(selector)); } const observer = new MutationObserver(mutations => { if (document.querySelector(selector)) { resolve(document.querySelector(selector)); observer.disconnect(); } }); observer.observe(document.body, { childList: true, subtree: true }); }); } waitForElement("body > div:nth-child(12)").then(function () { const agecheckbox = document.querySelector("body > div:nth-child(12) > div > p:nth-child(2) > label > input[type=checkbox]"); const toscheckbox = document.querySelector("body > div:nth-child(12) > div > p:nth-child(3) > label > input[type=checkbox]"); const confirmbutton = document.querySelector("body > div:nth-child(12) > div > p:nth-child(4) > input[type=button]"); agecheckbox.click(); toscheckbox.click(); confirmbutton.click(); }); })();