<!DOCTYPE html>
<html class="client-js vector-feature-language..." lang="en" dir="ltr">
<head>...</head>
<body class="skin-responsive skin-vector mediawiki ltr...">
<div id="mw-aria-live-region" class="mw-aria-live-region" aria-live="polite"></div>
<a class="mw-jump-link" href="#bodyContent">Jump to content</a>
<div class="vector-header-container">...</div>
<div class="mw-page-container">
<a class="mw-jump-link" href="#bodyContent">Jump to content</a>
<div class="vector-header-container">...</div>
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="vector-sitenotice-container">...</div>
</div>
<div class="vector-sitenotice-container">...</div>
</div>
</div>
</body>
</html>
Script snippet #8
×
To sync edits to the workspace, drop a folder with your sources here or Select folder
1
function startTranslation() {
2
if (!isActive) return;
3
4
walkId++;
5
const currentId = walkId;
6
7
walkAndLabel(document.body, currentId);
8
setupIntersectionObserver(currentId);
9
observeParagraphs(document.body, currentId);
10
setupMutationObserver(currentId);
11
12
updateStatus();
13
}
14
15
// --- Boot ---
16
17
async function boot() {
18
// Test proxy connection
19
try {
20
const resp = await fetch(`${CONFIG.proxyUrl}`);
21
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
22
const data = await resp.json();
23
console.log('[Charioteer] Connected to proxy');
24
} catch (err) {
25
console.error('[Charioteer] Cannot reach proxy');
26
return;
27
}
28
29
startTranslation();
30
}
Watch
Breakpoints
Pause on uncaught exceptions
Pause on caught exceptions
Pause on caught exceptions
Scope
Not paused
Call Stack
Not paused