SPA like vue is supported。offers functions like click element after loaded, call function after url change。
< Feedback on jQuery-like SPA operation library
使用的是 暴力猴子
Using Violent Monkey
猜测可能是时机问题 `@run-at document-start` 可能会出错
Guess it might be a matter of timing `@run-at document-start` might be wrong
var observer = new MutationObserver(recallback)
observer.observe(document.body, {
childList: true,
subtree: true
})
代码中的此处,有可能 document.body 是null,请排查
Here in the code, `document.body` may be null, please check
示例网址(example url):https://www.igdl.me/
测试代码(test code):
$('[value="选择文件"]').inserted(function () {
console.log($(this));
debugger;
}, true);