Greasy Fork is available in English.
通过劫持Proxy方法,逆向还原Vue3 app元素到DOM
These are versions of this script where the code was updated. Show all versions.
1.优化全局变量,防止内存泄露(感谢@cxxjackie哥哥的建议)a. vueHooked从Object变为WeakMap,作用保持不变b. vueApp改为vueUnhooked,从Object变为WeakSet,作为debug变量,现在只保留未劫持的app2.增加app.isUnmounted监听,在Vue app销毁时同时销毁脚本库对其的引用
修复 观察el BUG