JingMatrix / ChromeXt

UserScript and DevTools supports for Chromium based and WebView based browsers
https://jingmatrix.github.io/ChromeXt/
GNU General Public License v3.0
695 stars 39 forks source link

install script event not trigger #113

Closed WhiteSevs closed 1 year ago

WhiteSevs commented 1 year ago

https://github.com/JingMatrix/ChromeXt/assets/50544447/20e78e78-b4c4-4673-b06a-382c059c94d5

可以像这样 https://github.com/WhiteSevs/TamperMonkeyScript/blob/610351d6c8c762643e31c7040164f75ca8b9072f/%E5%BA%93/DOMUtils.js#L1070 添加load事件监听

JingMatrix commented 1 year ago

Sorry, I didn't understand, is there a UserScript failed to show the prompt? Maybe it is an offline page.

WhiteSevs commented 1 year ago

是的,页面加载完毕,但是DOMContentLoaded并未触发,且这并不是脱机页面,这是greasyfork我上传的未公布的脚本

JingMatrix commented 1 year ago

Actually, the editor.js needs some kind of refactor to fix the issue #100, so I planned to fix your issue later. But since you need it, I just pused a commit for it.