PageSourceSearch

https://www.wy88.ai/public/html/scripts/custom-event-scripts.js?ts=1790741626665

js wy88.ai collected 2026-10-05 16:11:21 UTC 3,143 bytes, 85 lines download raw bytes

1var externalMerchantAction = {
2  depositSuccess: function (extraParam) {
3    if (window.fbq) {
4      window.fbq("track", "Purchase", {
5        value: extraParam && extraParam.amount ? extraParam.amount : "0.00",
6        currency:
7          extraParam && extraParam.currency ? extraParam.currency : "THB",
8      });
9      console.log("triggered depositSuccess");
10    }
11
12    var depositScript = {
13      ALL: {
14        id: "deposit_script",
15        script:
16          '<script id="deposit_script"> (function(a,b){a="https://track.wy88vn.com/conversion.js?cid=OPTIONAL&payout=OPTIONAL&txid=OPTIONAL&et=ftd";var c=b.createElement("script"),d=b.scripts[0];if(b=b.cookie.match(/(^| )vl-cid=([^;]+)/))if(-1<a.indexOf("cid="))a=a.replace(/cid (tg://bot_command?command=cid)=.*?(&|$)/,"cid="+b.pop()+"&");else{var e=-1<a.indexOf("?")?"&":"?";a+=e+"cid="+b.pop()}c.src=a;d.parentNode.insertBefore(c,d)})(window,document); </script>',
17      },
18    };
19
20    var scriptObj = depositScript["ALL"];
21    injectScriptIntoHead(scriptObj.id, scriptObj.script);
22  },
23  registerSuccess: function (extraParam) {
24    if (window.fbq) {
25      window.fbq("track", "CompleteRegistration");
26      console.log("triggered register Success");
27    }
28  },
29};
30
31function injectScriptIntoHead(id, script) {
32  var proceed = true;
33  if (id) {
34    var foundElem = document.getElementById(id);
35    if (foundElem) {
36      proceed = false;
37    }
38  }
39
40  if (proceed) {
41    var range = document.createRange();
42    var scriptFragment = range.createContextualFragment(script);
43    document.head.appendChild(scriptFragment);
44  }
45}
46
47function injectScriptIntoBody(id, script) {
48  var proceed = true;
49  if (id) {
50    var foundElem = document.getElementById(id);
51    if (foundElem) {
52      proceed = false;
53    }
54  }
55
56  if (proceed) {
57    var range = document.createRange();
58    var scriptFragment = range.createContextualFragment(script);
59    document.body.appendChild(scriptFragment);
60  }
61}
62
63function detectDomainAndInjectScript() {
64  var domainScript = {
65    "www.wy88bet.com": {
66      id: "wy88bet_com",
67      script:
68        "<script id=\"wy88bet_com\"\">
vendor: 399 bytes, line 68
68 !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '
68937301160785819
vendor: 30 bytes, line 68
68'); fbq('track', 'PageView'); 
68</script>",
69      bodyId: "body_wy88bet_com",
70      bodyScript:
71        '<noscript id="body_wy88bet_com"><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=937301160785819&ev=PageView&noscript=1" /></noscript>',
72    },
73  };
74  var currentDomain = window.location.hostname;
75  if (domainScript[currentDomain]) {
76    var scriptObj = domainScript[currentDomain];
77    injectScriptIntoHead(scriptObj.id, scriptObj.script);
78
79    if (scriptObj.bodyScript) {
80      injectScriptIntoBody(scriptObj.bodyId, scriptObj.bodyScript);
81    }
82  }
83}
84
85detectDomainAndInjectScript();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.