index.html 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <link rel="canonical" href="https://jamesfengcao.gitlab.io/uweb/zh/links/" />
  7. <link rel="stylesheet" href="../style.css#" type="text/css" />
  8. <title>常用链接</title>
  9. <script>
  10. function findLang(){
  11. let href = location.href;
  12. for(let i=href.length-1;i>0;i--){
  13. if('/'==href.charAt(i) && '/'==href.charAt(i-3))
  14. return i;
  15. }
  16. return 0;
  17. }
  18. function nav2(page){
  19. let i = findLang();
  20. location.href = location.href.substring(0,i+1)+page;
  21. }
  22. function nav2Lang(lang){
  23. let i = findLang();
  24. let href = location.href;
  25. location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <header class='header'>
  31. <a class="logo" href="javascript:void(0)" onclick="return nav2('index.html#')">首页</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html#')">标签</a>
  32. <a class="logo" href="javascript:void(0)" onclick="return nav2Lang('en')">English</a>
  33. <nav>
  34. </nav>
  35. </header>
  36. <br />
  37. <div class="container">
  38. <h1 class="title">常用链接
  39. <br>
  40. <span class="subtitle"></span>
  41. </h1>
  42. <ul class="tags">
  43. </ul>
  44. <p>点击以下链接可安装至常用链接:<br>
  45. <a href="i:0gdefault.link::长截屏::ccapture%0A">长截屏</a> (需<a href="i:61:../searchurl/func.html">长截屏模式</a>)</p>
  46. <p><a href="i:0gdefault.link::vpn:i:1dandroid.net.vpn.SETTINGS:::%0A">VPN</a><br>
  47. <a href="i:0gdefault.link::showCookie:i:53:%25c%0A">showCookie</a><br>
  48. <a href="i:0gdefault.link::wireless:i:1dandroid.settings.WIRELESS_SETTINGS:::%0A">wireless</a><br>
  49. <a href="i:0gdefault.link::显示安全证书:i:1c%0A">显示网站安全证书</a><br>
  50. <a href="i:0gdefault.link::上传坚果云: {let path=`%f`;let iSlash=path.lastIndexOf('/',path.length-2);let f;if('/'!=path[path.length-1])f=path.substring(iSlash+1);else f=path.substring(iSlash+1,path.length-1)+'.tgz';location.href='i:0u'+path+':https://dav.jianguoyun.com/dav/%e6%88%91%e7%9a%84%e5%9d%9a%e6%9e%9c%e4%ba%91/'+f;}%0A">上传坚果云</a></p>
  51. <p><a href="../../en/searchurl/webdav.html">更多 webdav ...</a></p>
  52. <p><a href="i:0gdefault.link::迅雷盘离线:http://pan.xunlei.com/ {let rsc=setInterval(function(){var offBtn=document.querySelector('.pan-dropdown-menu.plus-menu>a:nth-child(2)');if(offBtn){clearInterval(rsc);var wsc=setInterval(function(){offBtn.click();var textarea=document.querySelector('.fileurl-input__container>textarea');if(textarea){clearInterval(wsc);textarea.value='%25u';var event=document.createEvent('HTMLEvents');event.initEvent('input',false,true);textarea.dispatchEvent(event);document.querySelector('.pan-dialog-btn__primary').click();}},200);}},1000);}%0A">迅雷盘离线</a></p>
  53. <p><a href="i:0gdefault.link::网页全屏: location.href='i:5fsetTimeout(()=>document.documentElement.requestFullscreen(),50);';%0A">网页全屏</a></p>
  54. <p><a href="i:0gdefault.link:../searchurl/txt/link.cfg">点击安装Cookie延期,地址栏内删除特殊字符,站内搜索,seedr离线下载等</a><br>
  55. <a href="i:0gdefault.link:../searchurl/txt/offline.link">点击安装离线下载(pcloud,furk,微云等)</a></p>
  56. <p><a href="../index.html#">uweb浏览器</a>中长按书签按钮可弹出常用链接菜单,这些链接定义在文件&quot;default.link&quot;中,改动过的文件清后台重启动后生效。每行格式如下:<br>
  57. [菜单名]:[url][空格][javascript脚本]<br>
  58. 其中空格及之后的脚本为可选项。url及之后的脚本支持<a href="../cmd/index.html#">&quot;%u&quot;,&quot;%s&quot;等替换</a>。<br>
  59. 脚本将在链接访问结束时自动执行。</p>
  60. <p>url除支持所有标准的http(s):,javascript:等链接外,还支持超微内部链接(&quot;:&quot;为链接第二个字符)及特殊链接(&quot;:&quot;为链接首字符)。</p>
  61. <p>不少本地链接文件(file:///)超微浏览器将会做特殊处理。仅举几例说明:<br>
  62. .js文件(同<a href="../longclick/index.html#">长按链接运行js文件</a>): 首行前两个字符为&quot;//&quot;者,超微将打开&quot;//&quot;后面的目标网址并执行此文件代码,目标网址支持<a href="../cmd/index.html">&quot;%u&quot;,&quot;%s&quot;等替换</a>。否则直接执行此文件。此时[javascript脚本]将作为运行.js文件的參数arguments[1]。推荐将常用js脚本本地链接保存在.link文件中。</p>
  63. <p><a href="../gesture/index.html#">default.gesture</a>及default.button文件采用了完全一样的格式。.gesture文件定义了手势操作。.button文件则从最后一个按钮开始倒着重定义了底部工具栏按钮单击操作。</p>
  64. <p>各类代理配置如下:<br>
  65. httpproxy::010[proxy host]:[port]<br>
  66. socks5::011[socks host]:[port]<br>
  67. noproxy::010:</p>
  68. <h3 id="为首字符特殊链接">&quot;:&quot;为首字符特殊链接</h3>
  69. <ul>
  70. <li>
  71. <p>:0001<br>
  72. 自动翻到上一页。(网页无法前进时按前进按钮可自动翻到下一页。)</p>
  73. </li>
  74. <li>
  75. <p>:0003<br>
  76. 切换全屏模式</p>
  77. </li>
  78. <li>
  79. <p>:0004<br>
  80. 屏幕旋转</p>
  81. </li>
  82. <li>
  83. <p>:001[fileurl]<br>
  84. 加入媒体库</p>
  85. </li>
  86. <li>
  87. <p>:010[代理域名]:[端口号]:[用户名]:[密码]<br>
  88. 设置http代理, &quot;:010:&quot;禁用代理。其中&quot;:[用户名]:[密码]&quot;部分为可选项。</p>
  89. </li>
  90. <li>
  91. <p>:011[socks5域名]:[端口号]:[用户名]:[密码]<br>
  92. socks代理,其中&quot;:[用户名]:[密码]&quot;部分为可选项。</p>
  93. </li>
  94. </ul>
  95. <h3 id="i内部链接">&quot;i:&quot;内部链接:</h3>
  96. <ul>
  97. <li>
  98. <p>i:0m[bookmarklet index|prefix|c[cssFlag]]:[url]<br>
  99. 将url作为网站访问,[bookmarklet index]至少占两个字符。</p>
  100. <ul>
  101. <li>c[cssFlag]: For example, &quot;c12&quot; will apply the third and fourth global CSS (12=2^2+2^3).</li>
  102. <li>All other cases will be treated as prefix, the real visited url is &quot;[prefix]+url&quot;.</li>
  103. </ul>
  104. </li>
  105. <li>
  106. <p>i:15[string]<br>
  107. 设置地址栏内容为[string]</p>
  108. </li>
  109. <li>
  110. <p>i:16[mimetype]:[Action Name]:[App Name]:[Activity Name]<br>
  111. 读取第三方应用输入。</p>
  112. </li>
  113. <li>
  114. <p>i:18[extended mimetype]:[range]:[url]<br>
  115. 读取url部分数据并使用指定mimetype强制处理。<br>
  116. <range>:格式同http header。譬如&quot;500-1000,-300&quot;<br>
  117. <extended mimetype>:可以为标准的mimetype。也可以在标准mimetype后面添加&quot;.&lt;文件名&gt;&quot;,此时uweb配置目录下的文件“&lt;文件名&gt;”内容会附在url部分数据后面一起显示。</p>
  118. </li>
  119. <li>
  120. <p>i:19[string]<br>
  121. 地址栏内容末尾附加[string]</p>
  122. </li>
  123. <li>
  124. <p>i:1c<br>
  125. 显示网站证书</p>
  126. </li>
  127. <li>
  128. <p>i:1d<action>:<type>:<Category>:<data><br>
  129. Launch app for specific <action></p>
  130. </li>
  131. <li>
  132. <p>i:1w<br>
  133. 等待从网络接收url并打开</p>
  134. </li>
  135. <li>
  136. <p>i:1w1<br>
  137. 等待从网络接收url并打开(不显示ip)</p>
  138. </li>
  139. <li>
  140. <p>i:50[path]:[string]<br>
  141. 保存为文件。</p>
  142. </li>
  143. <li>
  144. <p>i:51[path]:[url]<br>
  145. 保存为地址栏提示</p>
  146. </li>
  147. <li>
  148. <p>i:52[path]:[string]<br>
  149. 保存为书签</p>
  150. </li>
  151. <li>
  152. <p>i:53[path]:[string]<br>
  153. 保存为笔记</p>
  154. </li>
  155. <li>
  156. <p>i:54[path]:[url]<br>
  157. 保存为搜索引擎</p>
  158. </li>
  159. <li>
  160. <p>i:55[path]:[url]<br>
  161. 保存为链接</p>
  162. </li>
  163. <li>
  164. <p>i:56[string]<br>
  165. 将string插入到网页当前输入框。</p>
  166. </li>
  167. <li>
  168. <p>i:57[jscode]<br>
  169. 执行js代码,即使网页禁用js。</p>
  170. </li>
  171. <li>
  172. <p>i:58[url]<br>
  173. 保存到桌面</p>
  174. </li>
  175. <li>
  176. <p>i:5a[filename]<br>
  177. 接收信息至文件</p>
  178. </li>
  179. <li>
  180. <p>i:5b[string]<br>
  181. 复制至剪贴板。</p>
  182. </li>
  183. <li>
  184. <p>i:5c[url]<br>
  185. 更改自动翻页url</p>
  186. </li>
  187. <li>
  188. <p>i:5d[file url]<br>
  189. 兼容其它浏览器的方式打开本地文件。</p>
  190. </li>
  191. <li>
  192. <p>i:5e[string]<br>
  193. TTS</p>
  194. </li>
  195. <li>
  196. <p>i:5f[videourl]<br>
  197. play video fullscreen. if videourl is empty, then make following requestFullscreen() work.</p>
  198. </li>
  199. <li>
  200. <p>i:5h[?postfix:|/regex/replacement:|encoding:][url]<br>
  201. force html for url</p>
  202. <ul>
  203. <li>[encoding:]: force web page encoding.</li>
  204. </ul>
  205. </li>
  206. <li>
  207. <p>i:5i[url]<br>
  208. 重用已有窗口跳转至不同anchor。</p>
  209. </li>
  210. <li>
  211. <p>i:5j[string]<br>
  212. if [string] is file url, then send the file/folder to network, otherwise send [string] to network.</p>
  213. </li>
  214. <li>
  215. <p>i:5p[videourl]<br>
  216. play video in external player</p>
  217. </li>
  218. <li>
  219. <p>i:60[path]:[url]<br>
  220. 如果本地文件存在就打开,否则访问远程url</p>
  221. </li>
  222. <li>
  223. <p>i:62[path]:[js code]<br>
  224. 保存js返回值为文件</p>
  225. </li>
  226. <li>
  227. <p>i:63[bookmarklet index]:[url]</p>
  228. </li>
  229. <li>
  230. <p>i:70[url]:[自动翻页url]<br>
  231. 访问网址url,但指定使用后一网址自动翻页</p>
  232. </li>
  233. <li>
  234. <p>i:92[http request headers separated by ';']:[url]<br>
  235. The &quot;Host&quot; Header (fake header, different from the standard) must be the first header.<br>
  236. Ex. i:92Host;209.216.230.240:https://news.ycombinator.com<br>
  237. use &quot;i:0mi:92Host;209.216.230.240::https://news.ycombinator.com&quot; to visit the site with specified IP address.</p>
  238. </li>
  239. </ul>
  240. </div>
  241. <p>Last Modified: 11 November 2024<br>
  242. support proxies with username and password<br>
  243. <pre></pre>
  244. </p>
  245. <script id='jsgiscus'
  246. src='https://giscus.app/client.js'
  247. data-repo="torappinfo/uweb"
  248. data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
  249. data-category="Announcements"
  250. data-category-id="DIC_kwDOEgNLGc4CQjsh"
  251. data-mapping="title"
  252. data-strict="0"
  253. data-reactions-enabled="1"
  254. data-emit-metadata="0"
  255. data-input-position="top"
  256. data-theme="light"
  257. data-lang="en"
  258. data-loading="lazy"
  259. crossorigin="anonymous" async>
  260. </script>
  261. <footer class="site-footer">
  262. <div class="container">
  263. &copy; 2018-2024 Richard H. Cao
  264. </div>
  265. </footer>
  266. <!-- This document is licensed under the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available at <https://www.gnu.org/licenses/>. -->
  267. </body>
  268. </html>