registerDocumentStartHook
Registers script so it runs at document start for future page loads.
The returned top.kagg886.wvbridge.util.CloseHandle unregisters this hook. Platforms that cannot remove one native script directly emulate removal by maintaining their own hook registry and rebuilding the installed document-start scripts.