Omegle IP

Shows IP, Suspected Proxy Status, and Location in chat window, and auto-skips bots.

目前为 2021-01-18 提交的版本。查看 最新版本

// ==UserScript==
// @name         Omegle IP
// @namespace    https://origamitoast.ga/
// @version      0.2
// @description  Shows IP, Suspected Proxy Status, and Location in chat window, and auto-skips bots.
// @author       Origami Toast
// @match        https://omegle.com/*
// @match        https://www.omegle.com/*
// @grant        none
// @run-at       document-end
// ==/UserScript==

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") {
      var list = document.getElementsByClassName("logitem")[0];
      var req = new XMLHttpRequest()
      req.onreadystatechange = function () {
        if (this.readyState == 4 && this.status == 200) {
          var obj = JSON.parse(this.responseText)
          list.innerHTML = `IP: ${fields[4]}, ${(obj.proxy ? 'proxy' : 'not proxy')}<br/>Region: ${obj.city}, ${obj.regionName}<br/>Country: ${obj.country}`
        }
      }
      req.open("GET", "https://ip.origamitoast.ga/json/" + fields[4] + "?fields=country,regionName,city,proxy", true)
      req.onerror = function () {
        list.innerHTML = "Error, ask Origami Toast#4605 or check https://origamitoast.ga/"
      }
      req.send()
    }
    return pc.oaddIceCandidate(iceCandidate, ...rest)
  }
  return pc
}
var bruh = document.getElementsByClassName("logitem")
var len = bruh.length
setInterval(function () {
  if (bruh.length == len) return;
  len = bruh.length
  var msg = bruh[len - 1].innerText.replace("Stranger: ", "")
  if (msg.match(new RegExp("^([m|f]\\b|[m|f]d)|dm|snap|subscribe|follow", "gi"))) {
    var dc = document.getElementsByClassName("disconnectbtn")[0]
    if (dc.innerText == "Stop\nEsc") {
      dc.click()
    }
    if (dc.innerText == "Really?\nEsc") {
      dc.click()
    }
  }
}, 100)

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址