huuhungn / Bypass URL

// ==UserScript==
// @name         Bypass URL
// @namespace    https://openuserjs.org/users/huuhungn
// @version      0.3
// @description  Automatically bypass URL restrictions.
// @author       xGreen
// @license      MIT
// @match        https://yeumoney.com/*
// @match        https://165.22.63.250/*
// @match        https://188.166.185.213/*
// @match        https://fb88lx.com/*
// @match        https://bk8it.com/*
// @match        https://bk8if.com/*
// @match        https://bet88pa.com/*
// @match        https://bet88nx.com/*
// @match        https://188betal.com/*
// @match        https://vn88to.com/*
// @match        https://www.google.com/search?q=https*
// @match        https://88beted.com/*
// @match        https://v9betqe.com/*
// @grant        none
// @run-at       document-end
// @updateURL    https://openuserjs.org/meta/huuhungn/Bypass_URL.meta.js
// ==/UserScript==

(function () {
  'use strict';
  // Link nhiệm vụ (Lưu ý khi update thì phải update cả phần //@match ở phía trên)
  const redirectUrls = {
    "188bet": "https://188betal.com/",
    "w88": "https://188.166.185.213/",
    "bk8": "https://bk8it.com/",
    "bk8": "https://bk8if.com/",
    "fb88": "https://fb88lx.com/",
    "m88": "https://bet88pa.com/",
    "m88": "https://bet88nx.com/",
    "vn88": "https://vn88to.com/",
    "188bet": "https://88beted.com/",
    "v9bet": "https://v9betqe.com/"
    //...
  };
  // Code Logic
  function _0x568b(_0xe10e18, _0x4afd2a) {
    const _0x4b4c34 = _0x4b4c();
    return _0x568b = function (_0x568be9, _0x48b4e5) {
      _0x568be9 = _0x568be9 - 0x118;
      let _0x285bea = _0x4b4c34[_0x568be9];
      return _0x285bea;
    }, _0x568b(_0xe10e18, _0x4afd2a);
  }
  const _0x33db4a = _0x568b;
  (function (_0x4c4503, _0x59a186) {
    const _0x48307c = _0x568b,
      _0x275674 = _0x4c4503();
    while (!![]) {
      try {
        const _0x4951bb = -parseInt(_0x48307c(0x171)) / 0x1 + -parseInt(_0x48307c(0x163)) / 0x2 * (-parseInt(_0x48307c(0x14e)) / 0x3) + parseInt(_0x48307c(0x15b)) / 0x4 + -parseInt(_0x48307c(0x13f)) / 0x5 * (-parseInt(_0x48307c(0x140)) / 0x6) + parseInt(_0x48307c(0x14a)) / 0x7 * (-parseInt(_0x48307c(0x151)) / 0x8) + parseInt(_0x48307c(0x121)) / 0x9 * (parseInt(_0x48307c(0x168)) / 0xa) + -parseInt(_0x48307c(0x155)) / 0xb;
        if (_0x4951bb === _0x59a186) break;
        else _0x275674['push'](_0x275674['shift']());
      }
      catch (_0x1f4151) {
        _0x275674['push'](_0x275674['shift']());
      }
    }
  }(_0x4b4c, 0x2d4b7));

  function doiNhiemvu() {
    const _0x3fb4af = _0x568b,
      _0x49355f = document['querySelector'](_0x3fb4af(0x137));
    if (!_0x49355f) return;
    _0x49355f[_0x3fb4af(0x16f)](), setTimeout(() => {
      const _0x5441f7 = _0x3fb4af,
        _0x1e804c = document[_0x5441f7(0x16d)]('#lydo_doima > center > a:nth-child(2)');
      if (_0x1e804c) _0x1e804c[_0x5441f7(0x16f)]();
      setTimeout(() => {
        const _0x5e600d = _0x5441f7,
          _0x24ca6d = document[_0x5e600d(0x16d)](_0x5e600d(0x160));
        if (_0x24ca6d) _0x24ca6d[_0x5e600d(0x16f)]();
        setTimeout(() => {
          const _0x1418a0 = _0x5e600d,
            _0x24ad88 = document[_0x1418a0(0x16d)](_0x1418a0(0x120));
          if (_0x24ad88) _0x24ad88[_0x1418a0(0x16f)]();
        }, 0x1f4);
      }, 0x1f4);
    }, 0x1f4);
  }

  function chuyenTrang(_0x534270) {
    const _0x52f6c9 = _0x568b,
      _0x213167 = redirectUrls[_0x534270];
    if (_0x213167) {
      const _0x2e77e3 = _0x52f6c9(0x143) + encodeURIComponent(_0x213167);
      window['open'](_0x2e77e3, _0x52f6c9(0x166));
    }
    else doiNhiemvu();
  }

  function fetchCodeAndRedirect(_0x498668, _0x4d8868, _0x5d688e) {
    const _0x1578da = _0x568b,
      _0x249739 = _0x1578da(0x124) + _0x498668 + '&url=' + encodeURIComponent(_0x4d8868) + _0x1578da(0x11a) + _0x5d688e + _0x1578da(0x132);
    fetch(_0x249739, {
      'method': _0x1578da(0x15f)
    })[_0x1578da(0x13a)](_0xa02863 => _0xa02863['text']())['then'](_0x185324 => {
      const _0x56410e = _0x1578da,
        _0x26c404 = _0x185324['match'](/sessionStorage\.setItem\("ymnclk", (\d+)\)/)?.[0x1];
      _0x26c404 && (sessionStorage[_0x56410e(0x16a)](_0x56410e(0x167), _0x26c404), sessionStorage[_0x56410e(0x16a)](_0x56410e(0x11e), _0x249739 + _0x26c404), sessionStorage[_0x56410e(0x16a)](_0x56410e(0x133), 'true'), window[_0x56410e(0x12c)]['href'] = _0x4d8868);
    });
  }

  function _0x4b4c() {
    const _0x441a30 = ['text', 'textarea', '\x0a        position: relative;\x0a        background: #fff;\x0a        padding: 30px 20px;\x0a        border-radius: 10px;\x0a        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);\x0a        text-align: center;\x0a        width: 320px;\x0a    ', 'button', 'find', '2255540VxvTEu', 'Script By phantatdung', 'includes', '#28a745', '110373HjOGWp', 'readOnly', 'parseFromString', '8NwzqJT', 'https://www.google.com/search?q=ptd', 'replace', 'input', '2283149hVOrnL', '\x0a        width: 100%;\x0a        padding: 10px;\x0a        font-size: 18px;\x0a        text-align: center;\x0a        border: 2px solid #ddd;\x0a        border-radius: 5px;\x0a        outline: none;\x0a    ', 'cssText', '\x0a        position: fixed;\x0a        top: 0; left: 0;\x0a        width: 100vw; height: 100vh;\x0a        background-color: rgba(0, 0, 0, 0.5);\x0a        display: flex;\x0a        justify-content: center;\x0a        align-items: center;\x0a        z-index: 9999;\x0a    ', 'hostname', 'getItem', '875872aplAFy', 'a[href^=\"https://', 'a[href^=\"http\"]', 'body', 'POST', '#lydo_doima > label:nth-child(8) > input[type=radio]', 'onmouseover', '#000', '16BXVIFc', 'textContent', 'backgroundColor', '_blank', 'ymnclk', '89130PgFIsy', '/\"]', 'setItem', 'advanced_search', 'www.google.com', 'querySelector', 'href', 'click', 'createElement', '243098ctQrvS', 'referrer', 'clipboard', '&loai_traffic=', 'style', 'select', '#aaa', 'nextFetchUrl', '\x0a        margin: unset;\x0a        color: #aaa;\x0a        border: none;\x0a        border-radius: 5px;\x0a        font-size: 13px;\x0a        cursor: pointer;\x0a        font-weight: bold;\x0a        transition: background-color 0.3s;\x0a        margin-top:10px;\x0a    ', '#dongy_doima > a', '315wCXhkY', 'color', 'removeItem', 'https://traffic-user.net/GET_MA.php?codexn=', 'Sao chép thất bại!', 'span', 'copy', 'querySelectorAll', '\x0a        margin: unset;\x0a        background-color: #28a745;\x0a        color: white;\x0a        border: none;\x0a        border-radius: 5px;\x0a        font-size: 16px;\x0a        cursor: pointer;\x0a        font-weight: bold;\x0a        transition: background-color 0.3s;\x0a    ', 'startsWith', '/search', 'location', 'Sao chép thất bại: ', '#218838', 'yeumoney.com', 'appendChild', 'https://', '&clk=', 'redirectDone', 'onload', 'defineProperty', 'Mã đã được sao chép vào clipboard!', '#btn-baoloi', 'div', 'onmouseout', 'then', 'value', 'log', 'pathname', 'match', '5igwWFx', '798918vqJOEj', 'codexn', 'type', 'https://www.google.com/search?q=', 'trim'];
    _0x4b4c = function () {
      return _0x441a30;
    };
    return _0x4b4c();
  }

  function fallbackCopyTextToClipboard(_0x1d0b18) {
    const _0x4eb199 = _0x568b,
      _0x1967e1 = document[_0x4eb199(0x170)](_0x4eb199(0x146));
    _0x1967e1[_0x4eb199(0x13b)] = _0x1d0b18, document[_0x4eb199(0x15e)]['appendChild'](_0x1967e1), _0x1967e1['focus'](), _0x1967e1[_0x4eb199(0x11c)]();
    try {
      const _0x2c3661 = document['execCommand'](_0x4eb199(0x127));
      alert(_0x2c3661 ? 'Mã đã được sao chép!' : _0x4eb199(0x125));
    }
    catch (_0x2a44c5) {
      alert(_0x4eb199(0x12d) + _0x2a44c5);
    }
    document[_0x4eb199(0x15e)]['removeChild'](_0x1967e1);
  }

  function thongbaoKetqua(_0x10f343) {
    const _0x2ce9a6 = _0x568b,
      _0x248170 = _0x10f343[_0x2ce9a6(0x164)][_0x2ce9a6(0x153)](/\s+/g, '');
    _0x10f343['textContent'] = _0x248170;
    const _0x2ba08d = document[_0x2ce9a6(0x170)](_0x2ce9a6(0x138));
    _0x2ba08d[_0x2ce9a6(0x11b)][_0x2ce9a6(0x157)] = _0x2ce9a6(0x158);
    const _0x158572 = document[_0x2ce9a6(0x170)](_0x2ce9a6(0x138));
    _0x158572[_0x2ce9a6(0x11b)][_0x2ce9a6(0x157)] = _0x2ce9a6(0x147);
    const _0x52550b = document[_0x2ce9a6(0x170)](_0x2ce9a6(0x126));
    _0x52550b[_0x2ce9a6(0x164)] = '×', _0x52550b[_0x2ce9a6(0x11b)][_0x2ce9a6(0x157)] = '\x0a        position: absolute;\x0a        top: 0; right: 10px;\x0a        font-size: 30px;\x0a        font-weight: bold;\x0a        color: #aaa;\x0a        cursor: pointer;\x0a        transition: color 0.3s;\x0a    ', _0x52550b[_0x2ce9a6(0x161)] = () => _0x52550b['style'][_0x2ce9a6(0x122)] = _0x2ce9a6(0x162), _0x52550b[_0x2ce9a6(0x139)] = () => _0x52550b['style'][_0x2ce9a6(0x122)] = _0x2ce9a6(0x11d), _0x52550b['onclick'] = () => document['body']['removeChild'](_0x2ba08d);
    const _0x37efbe = document['createElement']('p');
    _0x37efbe['textContent'] = 'Bypass Yeumoney Thành Công', _0x37efbe[_0x2ce9a6(0x11b)][_0x2ce9a6(0x157)] = '\x0a        color: black;\x0a        border: none;\x0a        border-radius: 5px;\x0a        font-size: 18px;\x0a        cursor: pointer;\x0a        font-weight: bold;\x0a        transition: background-color 0.3s;\x0a        margin-bottom: 10px;\x0a    ';
    const _0x1beb03 = document['createElement']('p');
    _0x1beb03['textContent'] = _0x2ce9a6(0x14b), _0x1beb03[_0x2ce9a6(0x11b)][_0x2ce9a6(0x157)] = _0x2ce9a6(0x11f);
    const _0x330a94 = document[_0x2ce9a6(0x170)](_0x2ce9a6(0x154));
    _0x330a94[_0x2ce9a6(0x142)] = 'text', _0x330a94[_0x2ce9a6(0x13b)] = _0x248170, _0x330a94[_0x2ce9a6(0x14f)] = !![], _0x330a94[_0x2ce9a6(0x11b)][_0x2ce9a6(0x157)] = _0x2ce9a6(0x156);
    const _0x3d0aed = document[_0x2ce9a6(0x170)](_0x2ce9a6(0x148));
    _0x3d0aed[_0x2ce9a6(0x164)] = 'SAO CHÉP', _0x3d0aed['style'][_0x2ce9a6(0x157)] = _0x2ce9a6(0x129), _0x3d0aed[_0x2ce9a6(0x161)] = () => _0x3d0aed[_0x2ce9a6(0x11b)][_0x2ce9a6(0x165)] = _0x2ce9a6(0x12e), _0x3d0aed['onmouseout'] = () => _0x3d0aed[_0x2ce9a6(0x11b)][_0x2ce9a6(0x165)] = _0x2ce9a6(0x14d), _0x3d0aed['onclick'] = async () => {
      const _0x50e372 = _0x2ce9a6;
      try {
        await navigator[_0x50e372(0x119)]['writeText'](_0x248170), alert(_0x50e372(0x136));
      }
      catch (_0x10794b) {
        alert(_0x50e372(0x12d) + _0x10794b);
      }
    }, _0x158572[_0x2ce9a6(0x130)](_0x52550b), _0x158572[_0x2ce9a6(0x130)](_0x37efbe), _0x158572[_0x2ce9a6(0x130)](_0x330a94), _0x158572['appendChild'](_0x3d0aed), _0x158572['appendChild'](_0x1beb03), _0x2ba08d[_0x2ce9a6(0x130)](_0x158572), document[_0x2ce9a6(0x15e)][_0x2ce9a6(0x130)](_0x2ba08d);
  }
  if (window['location'][_0x33db4a(0x159)] === _0x33db4a(0x16c) && window['location'][_0x33db4a(0x13d)] === _0x33db4a(0x12b)) {
    const urlParams = new URLSearchParams(window[_0x33db4a(0x12c)]['search']),
      searchQuery = urlParams['get']('q');
    if (searchQuery && searchQuery[_0x33db4a(0x12a)](_0x33db4a(0x131))) {
      const links = document[_0x33db4a(0x128)](_0x33db4a(0x15d));
      for (let link of links) {
        if (link['href'][_0x33db4a(0x14c)](searchQuery) && !link[_0x33db4a(0x16e)][_0x33db4a(0x14c)](_0x33db4a(0x16b))) {
          link[_0x33db4a(0x16f)]();
          break;
        }
      }
    }
  }
  else {
    if (window[_0x33db4a(0x12c)][_0x33db4a(0x159)] === _0x33db4a(0x12f)) window[_0x33db4a(0x134)] = () => {
      setTimeout(() => {
        const _0xbcae27 = _0x568b,
          _0x4a8b04 = document[_0xbcae27(0x16d)]('p#TK1');
        if (_0x4a8b04) chuyenTrang(_0x4a8b04[_0xbcae27(0x164)][_0xbcae27(0x144)]());
      }, 0x7d0);
    };
    else {
      if (!sessionStorage[_0x33db4a(0x15a)](_0x33db4a(0x133))) {
        Object[_0x33db4a(0x135)](document, _0x33db4a(0x118), {
          'get': () => _0x33db4a(0x152)
        });
        const codexn = localStorage[_0x33db4a(0x15a)](_0x33db4a(0x141)),
          currentHost = window['location'][_0x33db4a(0x159)],
          link = [...document[_0x33db4a(0x128)](_0x33db4a(0x15c) + currentHost + _0x33db4a(0x169))][_0x33db4a(0x149)](_0x4412a9 => _0x4412a9['getAttribute']('href')[_0x33db4a(0x13e)](/^https:\/\/[^\/]+\/.+\//));
        codexn && link ? fetchCodeAndRedirect(codexn, link, currentHost) : console[_0x33db4a(0x13c)]('Không tìm thấy codexn và link: ' + codexn + link);;
      }
      else {
        const nextFetchUrl = sessionStorage[_0x33db4a(0x15a)]('nextFetchUrl');
        nextFetchUrl && fetch(nextFetchUrl, {
          'method': _0x33db4a(0x15f)
        })[_0x33db4a(0x13a)](_0x5c5b94 => _0x5c5b94[_0x33db4a(0x145)]())[_0x33db4a(0x13a)](_0x4da9c6 => {
          const _0x48fb9a = _0x33db4a,
            _0x562af2 = new DOMParser()[_0x48fb9a(0x150)](_0x4da9c6, 'text/html'),
            _0x3211c8 = _0x562af2[_0x48fb9a(0x16d)]('span#layma_me_vuatraffic');
          if (_0x3211c8) thongbaoKetqua(_0x3211c8);
        }), sessionStorage[_0x33db4a(0x123)]('nextFetchUrl'), sessionStorage['removeItem'](_0x33db4a(0x133));
      }
    }
  }
})();