-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
217 lines (210 loc) · 8.1 KB
/
index.html
File metadata and controls
217 lines (210 loc) · 8.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<script>
// Capture resource loading errors (e.g., failed <script src> or <link href>) as early as possible
(function () {
try {
if (!window.__resourceErrorBuffer) window.__resourceErrorBuffer = [];
function reportResourceError(evt) {
try {
var t = evt && evt.target;
if (!t) return;
var tag = t.tagName || '';
var src = t.src || t.href || '';
// Only flag interesting assets (JS/CSS/IMG) to avoid noise
var isAsset = /^(SCRIPT|LINK|IMG)$/.test(tag);
if (!isAsset) return;
var entry = {
tag: tag,
src: src,
outer: (t.outerHTML || '').slice(0, 200),
url: (typeof location !== 'undefined' && location.href) || '',
time: Date.now()
};
// If Sentry is ready, send immediately; otherwise buffer
if (window.Sentry && typeof window.Sentry.captureMessage === 'function') {
window.Sentry.captureMessage('Resource load error', {
level: 'warning',
extra: entry
});
} else {
window.__resourceErrorBuffer.push(entry);
}
} catch (_) {}
}
// Use capture phase to receive resource load errors
window.addEventListener('error', reportResourceError, true);
// Optional: capture unhandled promise rejections early too
window.addEventListener('unhandledrejection', function (evt) {
try {
var reason = evt && evt.reason;
if (window.Sentry && typeof window.Sentry.captureException === 'function' && reason) {
window.Sentry.captureException(reason);
}
} catch (_) {}
});
} catch (_) {}
})();
// Fetch runtime config and initialize Sentry conditionally
(function () {
function loadScript(src, onload) {
var s = document.createElement('script');
s.src = src;
s.crossOrigin = 'anonymous';
s.async = true;
if (onload) s.onload = onload;
document.head.appendChild(s);
}
function initSentry(cfg) {
if (!window.Sentry || !cfg || !cfg.sentryEnabled || !cfg.sentryDsn) return;
window.Sentry.init({
dsn: cfg.sentryDsn,
sendDefaultPii: true,
integrations: [
window.Sentry.Integrations && window.Sentry.Integrations.BrowserTracing ? new window.Sentry.Integrations.BrowserTracing() : undefined,
window.Sentry.Replay ? new window.Sentry.Replay({
maskAllText: false,
blockAllMedia: false
}) : undefined
].filter(Boolean),
tracesSampleRate: cfg.sentryTracesSampleRate || 1.0,
environment: cfg.sentryEnvironment || 'production',
tracePropagationTargets: [
'localhost',
typeof window !== 'undefined' ? window.location.origin : '',
/^https:\/\/steamrep\.kf637\.tech\/api\//,
/^\/api\//
],
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0
});
try {
var buf = window.__resourceErrorBuffer || [];
if (buf.length) {
for (var i = 0; i < buf.length; i++) {
window.Sentry.captureMessage('Resource load error (buffered)', { level: 'warning', extra: buf[i] });
}
window.__resourceErrorBuffer = [];
}
} catch (_) {}
}
try {
fetch('/config.js', { cache: 'no-store' })
.then(function (r) { return r.ok ? r.text() : ''; })
.then(function (js) {
try { if (js) { eval(js); } } catch (_) {}
var cfg = window.APP_CONFIG || {};
if (cfg.sentryEnabled && cfg.sentryBrowserLoaderUrl && cfg.sentryDsn) {
loadScript(cfg.sentryBrowserLoaderUrl, function () { initSentry(cfg); });
}
})
.catch(function () {});
} catch (_) {}
})();
</script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="Steam Account Reputation Check">
<meta property="og:description" content="Check Steam accounts for bans, trust level, and more.">
<meta property="og:type" content="website">
<title> Steam Account Reputation Check</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="main-container">
<div class="app-header">
<h1 class="mb-0">
<i class="fab fa-steam me-2"></i>
Steam Account Reputation Check
</h1>
</div>
<div class="trust-panel">
<form id="trustForm" class="mb-3">
<div class="row g-3">
<div class="col-md-9">
<input
type="text"
class="form-control form-control-lg"
id="trustInput"
placeholder="SteamID64, vanity name, or profile URL"
required
>
<div class="form-text text-secondary">
Accepts SteamID64 or a Steam profile URL (/id/ or /profiles/)
</div>
</div>
<div class="col-md-3">
<button type="submit" class="btn btn-primary btn-lg w-100" id="trustGo">
<i class="fas fa-search me-1"></i>
Check
</button>
</div>
</div>
</form>
<div id="trustSteamId" class="mb-3" style="display: none;">
<small class="steamid64">SteamID64: </small>
<code class="steamid-display" id="steamIdCode"></code>
<button class="btn btn-outline-secondary btn-sm btn-copy" id="copyIdBtn">
<i class="fas fa-copy"></i> Copy
</button>
</div>
<div id="trustResults"></div>
</div>
</div>
<div id="turnstileOverlay" class="turnstile-overlay" aria-hidden="true">
<div class="turnstile-modal" role="dialog" aria-modal="true" aria-labelledby="turnstileTitle">
<div class="turnstile-header" id="turnstileTitle">
<i class="fas fa-shield-alt me-2"></i>
Verify you are human
</div>
<div class="turnstile-body">
<p class="turnstile-text">Complete the verification to continue.</p>
<div id="turnstileWidget" class="turnstile-widget"></div>
<div id="turnstileError" class="turnstile-error" role="status" aria-live="polite"></div>
</div>
</div>
</div>
<footer class="footer bg-dark text-light py-2">
<div class="container text-center small">
<p class="mb-1">This site is not affiliated with Steam. All trademarks belong to their respective owners.</p>
<p class="mb-2">
Made by
<a href="https://github.com/Kf637" target="_blank" rel="noopener noreferrer" class="text-info text-decoration-none">Kf637</a>
and
<a href="https://github.com/ItsAlexIK" target="_blank" rel="noopener noreferrer" class="text-info text-decoration-none">ItsAlex</a>
</p>
<a href="https://github.com/Kf637/Steam-Account-Reputation-Check"
target="_blank"
rel="noopener noreferrer"
class="btn btn-outline-light btn-sm">
<i class="fab fa-github me-1"></i> View On GitHub
</a>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/js/bootstrap.bundle.min.js"></script>
<script src="lib/flags.js"></script>
<script src="lib/steamApi.js"></script>
<script src="lib/scoring.js"></script>
<script src="steam-trust-app.js"></script>
<script>
// Sanity check: report if critical modules failed to load
(function () {
try {
var missing = [];
if (!window.Flags) missing.push('Flags');
if (!window.SteamApi) missing.push('SteamApi');
if (!window.Scoring) missing.push('Scoring');
if (missing.length && window.Sentry && typeof window.Sentry.captureMessage === 'function') {
window.Sentry.captureMessage('Missing critical frontend module(s)', {
level: 'error',
extra: { missing: missing, url: (typeof location !== 'undefined' && location.href) || '' }
});
}
} catch (_) {}
})();
</script>
</body>
</html>