uweb/searchurl/txt/cmds.cfg

8 lines
1.9 KiB
INI
Raw Normal View History

2020-04-29 08:37:43 +00:00
打开剪贴板链接:clip/uweb:/system/bin/toybox grep -m1 -Eo '(http|https)://[^ "'\'']+'
行编辑器:text/html:cat %f|while read LINE; do echo "<a href=\"i:AA${LINE//\"/%22}\">$LINE</a><br>";done
编辑器:text/html:print "<style>div{position:fixed;top:2px}textarea{margin-top:30px}</style><script>var textarea; function deleteLine(ta){let startPos=ta.selectionStart;let endPos = ta.selectionEnd;let text=ta.value;let lStart=startPos-1;while(lStart>=0&&text.charAt(lStart)!='\\\\n')lStart--;let lEnd=endPos;let len=text.length;while(lEnd<len&&text.charAt(lEnd)!='\\\\n')lEnd++;ta.value=text.substring(0,lStart+1)+text.substring(lEnd+1);ta.selectionStart=ta.selectionEnd=lStart+1;}</script><div><button onclick=\"if(!textarea)textarea=document.getElementsByTagName('textarea')[0];let u8=new TextEncoder().encode(textarea.value);let r='';for(let i=0;i<u8.byteLength;i++)r+=String.fromCharCode(u8[i]);location.href='i:0l%f:'+btoa(r)\">Save</button><button onclick=\"if(!textarea)textarea=document.getElementsByTagName('textarea')[0];deleteLine(textarea)\">Delete Line</Button></div><textarea autofocus style='width:100%;height:100%;border:none;outline:none'/>";cat %f;
2020-04-29 08:37:43 +00:00
淘宝比价:clip/uweb:grep -m1 -Eo '(http|https)://[^ "'\'']+'|curl -s "`cat`"|grep -m1 -Eo '(http|https)://[^ ?]+'|grep -Eo '[0-9]+'|echo "http://tool.manmanbuy.com/historyLowest.aspx?url=https://detail.tmall.com/item.htm?id=`cat`"
markdeep:text/html:cat %f;echo "<style class=fallback>body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src=https://casual-effects.com/markdeep/latest/markdeep.min.js charset=utf-8></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility=visible)</script>"
显示本地md:text/html:echo "<script src=https://cdn.jsdelivr.net/npm/mdme></script><textarea>";cat %f
texme:text/html:echo "<script src=https://cdn.jsdelivr.net/npm/texme></script><textarea>";cat %f