rebuilding site Mon Sep 6 08:11:47 PM CST 2021

This commit is contained in:
James Feng Cao 2021-09-06 20:11:47 +08:00
parent c11806d1ba
commit a28a1945d2
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<a href="..">超微浏览器</a>下点击配置链接可自动添加常用命令,<b>强制清空后台重启后</b>长按历史按钮可用。</p>
<p>其中备份恢复Cookie需android6+, webview76+。<br>
<a href="i:0g/sdcard/uweb/default.cmds:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/cmds.cfg">打开剪贴板内链接、编辑器、淘宝比价 (淘宝app内分享复制链接后在超微内直接执行此命令)、本地markdown显示支持数学公式、各类图表</a><br>
<a href="i:0g/sdcard/uweb/default.cmds:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/cmds.cfg">打开剪贴板内链接、代码编辑器、淘宝比价 (淘宝app内分享复制链接后在超微内直接执行此命令)、本地markdown显示支持数学公式、各类图表</a><br>
</p>
<p>配置文件"/sdcard/uweb/default.cmds"示例:<br>

View File

@ -1,6 +1,6 @@
打开剪贴板链接: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;
代码编辑器:text/html:print "<style>#div{position:fixed;top:2px}#editor{position: absolute;top:30;right:0;bottom:0;left:0;}</style><script src='http://cdn.bootcss.com/ace/1.2.3/ace.js'></script><script src='http://cdn.bootcss.com/ace/1.2.3/ext-language_tools.js'></script><script src='https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/ace.js'></script><div id='div'><button onclick='onSave(\"%f\")'>Save</button> <a href=''>Run</a></div><pre id='editor'>";cat %f;
淘宝比价: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