enhance default.select with clipboard output

This commit is contained in:
James Feng Cao 2023-05-23 16:43:54 +08:00
parent a8700372f4
commit 087b9df6b6
19 changed files with 73 additions and 75 deletions

View File

@ -214,6 +214,7 @@ Enable selection</description>
<guid>/en/pccopy/</guid>
<description>Click the following links to install menus for long pressing the button &amp;quot;link&amp;quot;:
Copy selected text with html format to clipboard
Search with home screen
google Translate
bing translate
@ -221,8 +222,7 @@ deepL
The file &amp;quot;default.select&amp;quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format:
[Name]:[mimetype]:[command line]
[mimetype] specifies input/output for [command line].
It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.
[input mimetype] can be the following:</description>
It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.</description>
</item>
<item>

View File

@ -51,7 +51,8 @@
<p><a href="https://releases.pagure.org/uweb/">pagure</a></p>
<h4 id="main-featuresreadmeindexhtml"><a href="../readme/index.html">Main features</a></h4>
<h4 id="change-logs">Change logs</h4>
<p>998: <a href="../rjs/index.html">Bookmarklets</a> to support CSP sites.<br>
<p>1004: bookmarklet &quot;Show as html&quot; to support clipboard site &quot;netcut.cn&quot;.<br>
998: <a href="../rjs/index.html">Bookmarklets</a> to support CSP sites.<br>
991: <a href="../redirect/index.html">global url redirection</a> support.<br>
988: <a href="../adblock_domain/index.html">hosts</a> file to support response headers.<br>
985: <a href="../links/index.html">Special urls</a> to support shortcut keys such as ctrl-a to ctrl-z.<br>
@ -78,8 +79,8 @@
</ul>
</div>
<p>Last Modified: 29 April 2023<br>
add google translate in rjs.py<br>
<p>Last Modified: 23 May 2023<br>
enhance default.select with clipboard output<br>
<pre></pre>
</p>
<script>

View File

@ -210,12 +210,12 @@ sourceforge
powerfolder
pcloud
pagure
Main features Change logs 998: Bookmarklets to support CSP sites.
Main features Change logs 1004: bookmarklet &amp;quot;Show as html&amp;quot; to support clipboard site &amp;quot;netcut.cn&amp;quot;.
998: Bookmarklets to support CSP sites.
991: global url redirection support.
988: hosts file to support response headers.
985: Special urls to support shortcut keys such as ctrl-a to ctrl-z.
983: support &amp;quot;hosts&amp;quot; file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.
975: Bookmarks to support styling for markdown etc.</description>
983: support &amp;quot;hosts&amp;quot; file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.</description>
</item>
<item>
@ -359,6 +359,7 @@ Note: Bookmarklets whose names begin with &amp;quot;!</description>
<guid>/en/pccopy/</guid>
<description>Click the following links to install menus for long pressing the button &amp;quot;link&amp;quot;:
Copy selected text with html format to clipboard
Search with home screen
google Translate
bing translate
@ -366,8 +367,7 @@ deepL
The file &amp;quot;default.select&amp;quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format:
[Name]:[mimetype]:[command line]
[mimetype] specifies input/output for [command line].
It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.
[input mimetype] can be the following:</description>
It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.</description>
</item>
<item>

View File

@ -57,7 +57,8 @@
</ul>
<p>Click the following links to install menus for long pressing the button &quot;link&quot;:<br>
<a href="i:0gdefault.select::Home:/uweb:printf file://data/data/info.torapp.uweb/files/home5.search%5C location.href=%5C%22i:15;cat;printf %5C%22%0A">Search with home screen</a></p>
<a href="i:0gdefault.select::html2clip:html/clip:cat%0A">Copy selected text with html format to clipboard</a></p>
<p><a href="i:0gdefault.select::Home:/uweb:printf file://data/data/info.torapp.uweb/files/home5.search%5C location.href=%5C%22i:15;cat;printf %5C%22%0A">Search with home screen</a></p>
<p><a href="i:0gdefault.select::google Translate:/uweb:printf 'https://translate.google.com/?sl=auto&tl=en&op=translate&text=';cat|tr ' ' '%2B'%0A">google Translate</a></p>
<p><a href="i:0gdefault.select::bing Translate:/uweb:printf 'https://cn.bing.com/translator/?from=&to=en&text=';cat|tr ' ' '%2B'%0A">bing translate</a></p>
<p><a href="i:0gdefault.select::deepL:/uweb:printf https://www.deepl.com/translator-mobile#auto/en/;cat|sed 's/ /%2520/g'%0A">deepL</a></p>
@ -76,6 +77,7 @@ It formats as &quot;[input mimetype]/[output mimetype]&quot;.<br>
<li>regular mimetype such as &quot;text/html&quot;: output as the mimetype</li>
<li>&quot;uweb&quot;: output as links</li>
<li>&quot;uwebA&quot;: output as &quot;A&quot; link, all characters including newlines are part of the link.</li>
<li>&quot;clip&quot;: output to clipboard</li>
<li>&quot;termux&quot;: output as termux command</li>
</ul>
<p><a target="_self" href="i:0hcheck.js:../../zh/searchurl/txt/check.js">checked.js</a>: Evaluate checked.js and return value as standard input for the command line. For any file url ending with &quot;/&quot;, optionally append &quot;?[prefix][<em>[postfix]]&quot;. For example, &quot;file:///sdcard/?</em>.png&quot; lists all .png files under the folder &quot;/sdcard&quot;. Select files and process them with checked.js(such as &quot;copy to PC&quot; as the later example).</p>
@ -89,8 +91,8 @@ To use ssh or scp, users need to install uweb compatible Termux provided on the
PCs need command &quot;xsel&quot; available to operate on copy/paste.</p>
</div>
<p>Last Modified: 17 April 2023<br>
add mimetype uwebA<br>
<p>Last Modified: 23 May 2023<br>
enhance default.select with clipboard output<br>
<pre></pre>
</p>
<script>

View File

@ -8,7 +8,6 @@ let chatTypes = {
"responsible_ai_policy_235",
"enablemm",
"h3imaginative",
"cricketansgnd",
"cachewriteext",
"e2ecachewrite",
"nodlcpcwrite",
@ -27,7 +26,6 @@ let chatTypes = {
"responsible_ai_policy_235",
"enablemm",
"galileo",
"cricketansgnd",
"cachewriteext",
"e2ecachewrite",
"nodlcpcwrite",
@ -35,7 +33,6 @@ let chatTypes = {
"saharasugg",
"enablenewsfc",
"dv3sugg",
"saharagenconv5"
],
//精准选项
accurate: [
@ -45,7 +42,6 @@ let chatTypes = {
"responsible_ai_policy_235",
"enablemm",
"h3precise",
"cricketansgnd",
"cachewriteext",
"e2ecachewrite",
"nodlcpcwrite",
@ -81,23 +77,23 @@ let allowedMessageTypes = [
//切片id也不知道是啥意思反正官网的更新了
let sliceIds = [
"winmuid2tf",
"sydconfigoptc",
"forallv2nscpw",
"allnopvt",
"anssuptokenlist",
"tempcacheread",
"temptacache",
"encjsreftf",
"winlongmsgtf",
"wrapnoins",
"505iccric",
"0430dv3s0",
"505scsv5",
"scprompt2",
"508jbcar",
"425bicb2",
"406sportgnds0",
"427startpm"
"516ajcoal",
"osbsdusgreccf",
"mlchatpc-c",
"winlongmsg2tf",
"creatgoglt",
"creatorv2t",
"norespwtf",
"tempcacheread",
"temptacache",
"wrapnoins",
"517bicsh",
"505scsv5",
"scprompt2",
"0516conv1",
"515vaoprvs",
"424dagslnv1s0",
"427startpm"
]

View File

@ -17,7 +17,9 @@ let source = "edge_coauthor_prod";
//接收消息类型
let allowedMessageTypes = [
"Chat",
"ActionRequest",
"Chat",
"Context",
"InternalSearchQuery",
"InternalSearchResult",
"Disengaged",

View File

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/en/_posts/</loc>
<lastmod>2023-05-14T10:54:36+08:00</lastmod>
<lastmod>2023-05-23T16:42:12+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -45,7 +45,7 @@
/>
</url><url>
<loc>/en/tags/</loc>
<lastmod>2023-05-13T17:17:39+08:00</lastmod>
<lastmod>2023-05-23T16:42:12+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -58,7 +58,7 @@
/>
</url><url>
<loc>/en/</loc>
<lastmod>2023-05-14T10:54:36+08:00</lastmod>
<lastmod>2023-05-23T16:42:12+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -113,7 +113,7 @@
/>
</url><url>
<loc>/en/topposts/</loc>
<lastmod>2023-05-12T14:04:24+08:00</lastmod>
<lastmod>2023-05-23T16:21:17+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -210,7 +210,7 @@
/>
</url><url>
<loc>/en/changelog/</loc>
<lastmod>2023-04-29T19:23:15+08:00</lastmod>
<lastmod>2023-05-23T16:21:17+08:00</lastmod>
</url><url>
<loc>/en/sitemap/</loc>
<lastmod>2023-02-01T09:52:11+08:00</lastmod>
@ -304,10 +304,10 @@
/>
</url><url>
<loc>/en/tags/clipboard/</loc>
<lastmod>2023-04-17T11:05:09+08:00</lastmod>
<lastmod>2023-05-23T16:42:12+08:00</lastmod>
</url><url>
<loc>/en/tags/pc/</loc>
<lastmod>2023-04-17T11:05:09+08:00</lastmod>
<lastmod>2023-05-23T16:42:12+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -320,7 +320,7 @@
/>
</url><url>
<loc>/en/tags/ssh/</loc>
<lastmod>2023-04-17T11:05:09+08:00</lastmod>
<lastmod>2023-05-23T16:42:12+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -333,7 +333,7 @@
/>
</url><url>
<loc>/en/tags/termux/</loc>
<lastmod>2023-04-17T11:05:09+08:00</lastmod>
<lastmod>2023-05-23T16:42:12+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -346,7 +346,7 @@
/>
</url><url>
<loc>/en/pccopy/</loc>
<lastmod>2023-04-17T11:05:09+08:00</lastmod>
<lastmod>2023-05-23T16:42:12+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -359,7 +359,7 @@
/>
</url><url>
<loc>/en/tags/windows/</loc>
<lastmod>2023-04-17T11:05:09+08:00</lastmod>
<lastmod>2023-05-23T16:42:12+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"

View File

@ -13,6 +13,7 @@
<guid>/en/pccopy/</guid>
<description>Click the following links to install menus for long pressing the button &amp;quot;link&amp;quot;:
Copy selected text with html format to clipboard
Search with home screen
google Translate
bing translate
@ -20,8 +21,7 @@ deepL
The file &amp;quot;default.select&amp;quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format:
[Name]:[mimetype]:[command line]
[mimetype] specifies input/output for [command line].
It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.
[input mimetype] can be the following:</description>
It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.</description>
</item>
</channel>

View File

@ -13,6 +13,7 @@
<guid>/en/pccopy/</guid>
<description>Click the following links to install menus for long pressing the button &amp;quot;link&amp;quot;:
Copy selected text with html format to clipboard
Search with home screen
google Translate
bing translate
@ -20,8 +21,7 @@ deepL
The file &amp;quot;default.select&amp;quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format:
[Name]:[mimetype]:[command line]
[mimetype] specifies input/output for [command line].
It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.
[input mimetype] can be the following:</description>
It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.</description>
</item>
</channel>

View File

@ -13,6 +13,7 @@
<guid>/en/pccopy/</guid>
<description>Click the following links to install menus for long pressing the button &amp;quot;link&amp;quot;:
Copy selected text with html format to clipboard
Search with home screen
google Translate
bing translate
@ -20,8 +21,7 @@ deepL
The file &amp;quot;default.select&amp;quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format:
[Name]:[mimetype]:[command line]
[mimetype] specifies input/output for [command line].
It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.
[input mimetype] can be the following:</description>
It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.</description>
</item>
</channel>

View File

@ -13,6 +13,7 @@
<guid>/en/pccopy/</guid>
<description>Click the following links to install menus for long pressing the button &amp;quot;link&amp;quot;:
Copy selected text with html format to clipboard
Search with home screen
google Translate
bing translate
@ -20,8 +21,7 @@ deepL
The file &amp;quot;default.select&amp;quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format:
[Name]:[mimetype]:[command line]
[mimetype] specifies input/output for [command line].
It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.
[input mimetype] can be the following:</description>
It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.</description>
</item>
<item>

View File

@ -13,6 +13,7 @@
<guid>/en/pccopy/</guid>
<description>Click the following links to install menus for long pressing the button &amp;quot;link&amp;quot;:
Copy selected text with html format to clipboard
Search with home screen
google Translate
bing translate
@ -20,8 +21,7 @@ deepL
The file &amp;quot;default.select&amp;quot; defines menus for selected text. If no text is selected, the menu item operates on the whole page. Each line of the file has the following format:
[Name]:[mimetype]:[command line]
[mimetype] specifies input/output for [command line].
It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.
[input mimetype] can be the following:</description>
It formats as &amp;quot;[input mimetype]/[output mimetype]&amp;quot;.</description>
</item>
</channel>

View File

@ -65,12 +65,12 @@ sourceforge
powerfolder
pcloud
pagure
Main features Change logs 998: Bookmarklets to support CSP sites.
Main features Change logs 1004: bookmarklet &amp;quot;Show as html&amp;quot; to support clipboard site &amp;quot;netcut.cn&amp;quot;.
998: Bookmarklets to support CSP sites.
991: global url redirection support.
988: hosts file to support response headers.
985: Special urls to support shortcut keys such as ctrl-a to ctrl-z.
983: support &amp;quot;hosts&amp;quot; file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.
975: Bookmarks to support styling for markdown etc.</description>
983: support &amp;quot;hosts&amp;quot; file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.</description>
</item>
<item>

View File

@ -4,14 +4,14 @@
<sitemap>
<loc>en/sitemap.xml</loc>
<lastmod>2023-05-14T10:54:36+08:00</lastmod>
<lastmod>2023-05-23T16:42:12+08:00</lastmod>
</sitemap>
<sitemap>
<loc>zh/sitemap.xml</loc>
<lastmod>2023-05-13T20:07:47+08:00</lastmod>
<lastmod>2023-05-23T08:22:59+08:00</lastmod>
</sitemap>

View File

@ -270,7 +270,6 @@ AI/chatGPT:
bingChat carrot ainav 网络剪贴板
txtpad
cmd.im
Bing international (chatgpt requires UA to be &#39;edge&#39; and some scripts)
Wait for url from other devices
gamezop
Personal use 2
@ -485,7 +484,7 @@ elsecommand: 无需执行命令command时执行。
ex:
set PATH=/system/bin:/data/data/info.torapp.uweb/files/bin
#天翼云每天签到一次
tcron /sdcard/a &amp;quot;cloud189-go sign;toybox touch /sdcard/a&amp;quot; 24
tcron /sdcard/a &amp;quot;cloudpan189-go sign;toybox touch /sdcard/a&amp;quot; 24
#每30天清空baidu目录
tcron /sdcard/b &amp;quot;rm -rf /sdcard/baidu/*;toybox touch /sdcard/b&amp;quot; 720
安装default.rc模板文件termux

View File

@ -56,7 +56,6 @@ AI/chatGPT:</p>
<p><a href="https://netcut.cn">网络剪贴板</a><br>
<a href="https://txtpad.cn">txtpad</a><br>
<a href="https://cmd.im">cmd.im</a><br>
<a href="i:0mHX-Forwarded-For;8.8.8.8:https://www.bing.com/">Bing international (chatgpt requires UA to be 'edge' and some scripts)</a><br>
<a href="i:1w">Wait for url from other devices</a><br>
<a href="https://www.gamezop.com">gamezop</a><br>
<a href="https://www.123pan.com/s/cKA9-HFUCA">Personal use 2</a></p>
@ -79,8 +78,8 @@ AI/chatGPT:</p>
<a href="c:gopher gopher://gopherddit.com">reddit gopher</a></p>
</div>
<p>Last Modified: 6 May 2023<br>
add 4everland<br>
<p>Last Modified: 23 May 2023<br>
enhance default.select with clipboard output<br>
<pre></pre>
</p>
<script>

View File

@ -449,7 +449,6 @@ AI/chatGPT:
bingChat carrot ainav 网络剪贴板
txtpad
cmd.im
Bing international (chatgpt requires UA to be &#39;edge&#39; and some scripts)
Wait for url from other devices
gamezop
Personal use 2
@ -697,7 +696,7 @@ elsecommand: 无需执行命令command时执行。
ex:
set PATH=/system/bin:/data/data/info.torapp.uweb/files/bin
#天翼云每天签到一次
tcron /sdcard/a &amp;quot;cloud189-go sign;toybox touch /sdcard/a&amp;quot; 24
tcron /sdcard/a &amp;quot;cloudpan189-go sign;toybox touch /sdcard/a&amp;quot; 24
#每30天清空baidu目录
tcron /sdcard/b &amp;quot;rm -rf /sdcard/baidu/*;toybox touch /sdcard/b&amp;quot; 720
安装default.rc模板文件termux

View File

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/zh/_posts/</loc>
<lastmod>2023-05-13T20:07:47+08:00</lastmod>
<lastmod>2023-05-23T08:22:59+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -29,7 +29,7 @@
/>
</url><url>
<loc>/zh/</loc>
<lastmod>2023-05-13T20:07:47+08:00</lastmod>
<lastmod>2023-05-23T08:22:59+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -236,7 +236,7 @@
<lastmod>2023-02-14T14:46:05+08:00</lastmod>
</url><url>
<loc>/zh/bookmark/</loc>
<lastmod>2023-05-06T18:21:58+08:00</lastmod>
<lastmod>2023-05-23T08:22:59+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -378,7 +378,7 @@
/>
</url><url>
<loc>/zh/tcron/</loc>
<lastmod>2023-02-20T21:59:49+08:00</lastmod>
<lastmod>2023-05-19T15:10:23+08:00</lastmod>
</url><url>
<loc>/zh/logcat/</loc>
<lastmod>2022-09-24T14:06:03+08:00</lastmod>

View File

@ -57,7 +57,7 @@ elsecommand: 无需执行命令command时执行。</p>
<p>ex:<br>
set PATH=/system/bin:/data/data/info.torapp.uweb/files/bin<br>
#天翼云每天签到一次<br>
tcron /sdcard/a &quot;cloud189-go sign;toybox touch /sdcard/a&quot; 24<br>
tcron /sdcard/a &quot;cloudpan189-go sign;toybox touch /sdcard/a&quot; 24<br>
#每30天清空baidu目录<br>
tcron /sdcard/b &quot;rm -rf /sdcard/baidu/*;toybox touch /sdcard/b&quot; 720</p>
<p><a target="_self" href="i:0hdefault.rc:../searchurl/txt/default.rc">安装default.rc模板文件termux</a></p>
@ -80,8 +80,8 @@ crontab -e</p>
cron运行期间保持唤醒锁保证termux可以稳定运行。</p>
</div>
<p>Last Modified: 20 February 2023<br>
use relative path<br>
<p>Last Modified: 19 May 2023<br>
update bingAI/js/optionsSets.js<br>
<pre></pre>
</p>
<script>