Omegle Automatically Skip, Watermark Remove

Auto-skip pervs Indians and removes watermark from stranger's video

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Omegle Automatically Skip, Watermark Remove
// @version      0.1
// @description  Auto-skip pervs Indians and removes watermark from stranger's video
// @author       Better Internet
// @match        https://omegle.com/*
// @match        https://www.omegle.com/*
// @grant        none
// @run-at       document-end
// @namespace https://greasyfork.org/users/1027093
// ==/UserScript==

window.oRTCPeerConnection = window.oRTCPeerConnection || window.RTCPeerConnection;
window.RTCPeerConnection = function(...args) {
    document.getElementById('videologo').remove();
    const pc = new window.oRTCPeerConnection(...args);
    pc.oaddIceCandidate = pc.addIceCandidate;
    pc.addIceCandidate = function(iceCandidate, ...rest) {
        const fields = iceCandidate.candidate.split(' ');
        if (fields[7] === 'srflx') {
            let list = document.getElementsByClassName('logitem')[0];
            let req = new XMLHttpRequest();
            req.onreadystatechange = function() {
                if (this.readyState == 4 && this.status == 200) {
                    let obj = JSON.parse(this.responseText);
                    list.innerHTML = '<b>Automatically Skip</b><br/>' + 'Country: ' + obj.country;
                    // skip after 0.2 seconds
                    // Lower valeus can get you BAN
                    if (obj.country === 'India') {
                        setTimeout(() => {
                            let dc = document.getElementsByClassName('disconnectbtn')[0];
                            if (dc.innerText == 'Stop\nEsc') { dc.click(); }
                            if (dc.innerText == 'Really?\nEsc') { dc.click(); }
                        }, 2080);
                    }
                }
            }
            req.open('GET', 'https://ip.chimplabs.xyz/json/' + fields[4] + '?fields=country', true);
            req.onerror = function() {
                list.innerHTML = 'Error, getting Stranger location';
            }
            req.send();
        }
        return pc.oaddIceCandidate(iceCandidate, ...rest);
    }
    return pc;
}