我想编写一个Wikidata小工具,需要等待页面完全加载,包括每个语句旁边的Disassembly of section .text:
0000000000000000 <_start>:
0: 48 rex.W
1: 65 gs
2: 6c ins BYTE PTR es:[rdi],dx
3: 6c ins BYTE PTR es:[rdi],dx
4: 6f outs dx,DWORD PTR ds:[rsi]
5: 20 57 6f and BYTE PTR [rdi+0x6f],dl
8: 72 6c jb 76 <SYS_EXIT+0x3a>
a: 64 21 00 and DWORD PTR fs:[rax],eax
d: b8 01 00 00 00 mov eax,0x1
12: bf 01 00 00 00 mov edi,0x1
17: 48 be 00 00 00 00 00 movabs rsi,0x0
1e: 00 00 00
21: ba 0d 00 00 00 mov edx,0xd
26: 0f 05 syscall
0000000000000028 <exit>:
28: b8 3c 00 00 00 mov eax,0x3c
2d: bf 00 00 00 00 mov edi,0x0
32: 0f 05 syscall
链接。
我试图等待edit
,但这没有帮助-我的代码在初始化编辑工具栏之前开始执行。最好的方法是什么?
wikibase.view.ViewFactoryFactory
答案 0 :(得分:2)
收到了IRC频道的回复,谢谢nikki
!
mw.hook('wikibase.entityPage.entityView.rendered').add(function () {
....
});