Panels
0 篇文章
调用者 asyncfunctionmain(){debugger;constids=['20241218103123-y71h0a3','20250420081646-ezi1xm9'];for(constidofids){runJs.plugin.call('demo1_callable',id);}}main();plugin.saveAction(thisBlock.id,"demo1 调用者")
//name 快速打开自定义功能//seehttps://ld246.com/article/1745488922117//version0.0.3.1//updateDesc0.0.3.1 增加 eruda 调试工具//updateDesc0.0.3 增加刷新页面,全屏,宽屏,断点调试,打开网页版等功能//updateDesc0.0.2 增加快捷键支持,把思源命令面板的命令移植过来//updateUrlhtt
//调用示例//observeElement('.tooltip.tooltip--memo:not(.fn__none)',({element,mutationsList,stop})=>{//console.log([element?.outerHTML,mutationsList,stop]);//});asyncfunctionobserveElement(selector,callback
functionwaitFor(conditionFn,timeoutMs=5000){returnnewPromise((resolve,reject)=>{conststart=Date.now();constcheck=()=>{if(typeofconditionFn==='string')conditionFn=()=>document.querySelector(conditionFn