Greasy Fork is available in English.

Omegle IP

Ctrl + Shift + I to open console

Version vom 07.09.2020. Aktuellste Version

// ==UserScript==
// @name         Omegle IP
// @namespace    https://kaaaxcreators.de
// @version      0.2
// @description  Ctrl + Shift + I to open console
// @author       Bernd Storath
// @include      https://omegle.com/*
// @include      https://www.omegle.com/*
// @grant        none
// ==/UserScript==

(function() {
    console.log("--------------------------------------------------");
    console.log("Instructions: https://github.com/kaaax0815/omegleip");
    console.log("--------------------------------------------------");
    window.oRTCPeerConnection = window.oRTCPeerConnection || window.RTCPeerConnection
    window.RTCPeerConnection = function(...args) {
        const pc = new window.oRTCPeerConnection(...args)
        pc.oaddIceCandidate = pc.addIceCandidate
        pc.addIceCandidate = function(iceCandidate, ...rest) {
            const fields = iceCandidate.candidate.split(' ')
            if (fields[7] === 'srflx') {
                console.log('IP Address:', fields[4]);
                console.log("https://whatismyipaddress.com/ip/" + fields[4]);
            }
            return pc.oaddIceCandidate(iceCandidate, ...rest)
        }
        return pc
    }
})();