mirror of https://github.com/torappinfo/uweb.git
Compare commits
9 Commits
668562f292
...
2704b2f1cc
Author | SHA1 | Date |
---|---|---|
James Feng Cao | 2704b2f1cc | |
James Feng Cao | 032723db19 | |
James Feng Cao | 1239ef166c | |
James Feng Cao | 13fbe1c9af | |
James Feng Cao | 0e70132833 | |
James Feng Cao | 8998d08b42 | |
James Feng Cao | 1ba51cb179 | |
James Feng Cao | e35f094c97 | |
James Feng Cao | 96b13242b5 |
|
@ -5,7 +5,20 @@
|
||||||
<link>/en/_posts/</link>
|
<link>/en/_posts/</link>
|
||||||
<description>Recent content in _posts on uweb browser: unlimited power</description>
|
<description>Recent content in _posts on uweb browser: unlimited power</description>
|
||||||
<generator>Hugo -- gohugo.io</generator>
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
<lastBuildDate>Sat, 01 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/_posts/index.xml" rel="self" type="application/rss+xml" />
|
<lastBuildDate>Tue, 11 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/_posts/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
<item>
|
||||||
|
<title>Resource redirection</title>
|
||||||
|
<link>/en/redirect/</link>
|
||||||
|
<pubDate>Tue, 11 Apr 2023 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
|
<guid>/en/redirect/</guid>
|
||||||
|
<description>Global redirection Global redirection is enabled with the setting option &quot;Resource redirection&quot;.
|
||||||
|
When a valid global redirection url is set, the &quot;default.redirect&quot; has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url.
|
||||||
|
&quot;default.redirect&quot; (valid only without global redirection url) Click the following links to append mirrors to the file &quot;default.redirect&quot;:
|
||||||
|
google recaptcha mirror
|
||||||
|
Each line of the file &quot;default.</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<title>Offline resources</title>
|
<title>Offline resources</title>
|
||||||
<link>/en/offlinecache/</link>
|
<link>/en/offlinecache/</link>
|
||||||
|
@ -194,22 +207,6 @@ Toggle all checkboxes in forms
|
||||||
Enable selection</description>
|
Enable selection</description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item>
|
|
||||||
<title>Resource redirection</title>
|
|
||||||
<link>/en/redirect/</link>
|
|
||||||
<pubDate>Mon, 25 Apr 2022 00:00:00 +0000</pubDate>
|
|
||||||
|
|
||||||
<guid>/en/redirect/</guid>
|
|
||||||
<description>Click the following links to append mirrors to the file &quot;default.redirect&quot;:
|
|
||||||
github mirror:fastgit
|
|
||||||
github mirror 2
|
|
||||||
google recaptcha mirror
|
|
||||||
Each line of the file &quot;default.redirect&quot; has the following format:
|
|
||||||
[domain name]:[regular expression]:[replacement expression]
|
|
||||||
in which &quot;[regular expression]&quot; is as defined by java language, and cannot have &quot;:&quot; inside; if empty, it defaults to be same as &quot;[domain name]&quot;.
|
|
||||||
Ways to enable redirection: Long the image button。 Long pressing the setting button, enable the option &quot;url redirection&quot;.</description>
|
|
||||||
</item>
|
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<title>Text selection</title>
|
<title>Text selection</title>
|
||||||
<link>/en/pccopy/</link>
|
<link>/en/pccopy/</link>
|
||||||
|
|
|
@ -51,8 +51,8 @@
|
||||||
<p><a href="https://releases.pagure.org/uweb/">pagure</a></p>
|
<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="main-featuresreadmeindexhtml"><a href="../readme/index.html">Main features</a></h4>
|
||||||
<h4 id="change-logs">Change logs</h4>
|
<h4 id="change-logs">Change logs</h4>
|
||||||
<p>988: <a href="../adblock_domain/index.html">hosts</a> file to support response headers.<br>
|
<p>991: <a href="../redirect/index.html">global url redirection</a> support.<br>
|
||||||
987: enhance <a href="../adblock_domain/index.html">hosts</a> file to support domain attributes, such as lifting limitations with empty ip address.<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>
|
985: <a href="../links/index.html">Special urls</a> to support shortcut keys such as ctrl-a to ctrl-z.<br>
|
||||||
983: support <a href="../adblock_domain/index.html">"hosts"</a> file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.<br>
|
983: support <a href="../adblock_domain/index.html">"hosts"</a> file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.<br>
|
||||||
975: <a href="../bookmark/index.html">Bookmarks</a> to support styling for markdown etc.<br>
|
975: <a href="../bookmark/index.html">Bookmarks</a> to support styling for markdown etc.<br>
|
||||||
|
@ -78,8 +78,8 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<p>Last Modified: 3 April 2023<br>
|
<p>Last Modified: 12 April 2023<br>
|
||||||
bingAI to support cors with cookies<br>
|
global redirection support in config.js<br>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
|
@ -95,6 +95,12 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="post">
|
||||||
|
<a href="redirect/index.html">
|
||||||
|
<span>Resource redirection</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="post">
|
<li class="post">
|
||||||
<a href="offlinecache/index.html">
|
<a href="offlinecache/index.html">
|
||||||
<span>Offline resources</span>
|
<span>Offline resources</span>
|
||||||
|
@ -167,12 +173,6 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="post">
|
|
||||||
<a href="redirect/index.html">
|
|
||||||
<span>Resource redirection</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="post">
|
<li class="post">
|
||||||
<a href="pccopy/index.html">
|
<a href="pccopy/index.html">
|
||||||
<span>Text selection</span>
|
<span>Text selection</span>
|
||||||
|
|
39
en/index.xml
39
en/index.xml
|
@ -5,7 +5,20 @@
|
||||||
<link>/en/</link>
|
<link>/en/</link>
|
||||||
<description>Recent content on uweb browser: unlimited power</description>
|
<description>Recent content on uweb browser: unlimited power</description>
|
||||||
<generator>Hugo -- gohugo.io</generator>
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
<lastBuildDate>Sat, 01 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/index.xml" rel="self" type="application/rss+xml" />
|
<lastBuildDate>Tue, 11 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
<item>
|
||||||
|
<title>Resource redirection</title>
|
||||||
|
<link>/en/redirect/</link>
|
||||||
|
<pubDate>Tue, 11 Apr 2023 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
|
<guid>/en/redirect/</guid>
|
||||||
|
<description>Global redirection Global redirection is enabled with the setting option &quot;Resource redirection&quot;.
|
||||||
|
When a valid global redirection url is set, the &quot;default.redirect&quot; has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url.
|
||||||
|
&quot;default.redirect&quot; (valid only without global redirection url) Click the following links to append mirrors to the file &quot;default.redirect&quot;:
|
||||||
|
google recaptcha mirror
|
||||||
|
Each line of the file &quot;default.</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<title>Offline resources</title>
|
<title>Offline resources</title>
|
||||||
<link>/en/offlinecache/</link>
|
<link>/en/offlinecache/</link>
|
||||||
|
@ -196,10 +209,12 @@ github
|
||||||
sourceforge
|
sourceforge
|
||||||
powerfolder
|
powerfolder
|
||||||
pagure
|
pagure
|
||||||
Main features Change logs 988: hosts file to support response headers.
|
Main features Change logs 991: global url redirection support.
|
||||||
987: enhance hosts file to support domain attributes, such as lifting limitations with empty ip address.
|
988: hosts file to support response headers.
|
||||||
985: Special urls to support shortcut keys such as ctrl-a to ctrl-z.
|
985: Special urls to support shortcut keys such as ctrl-a to ctrl-z.
|
||||||
983: support &quot;hosts&quot; file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.</description>
|
983: support &quot;hosts&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.
|
||||||
|
971: multiple type profiles: switch any data including website logins, user configurations orthogonally.</description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
|
@ -334,22 +349,6 @@ Performance
|
||||||
Remote javascript is defined in default.rjs. Click the following link to install. (Force exit and re-launch the app, then long press the &quot;search&quot; button to popup the menu.</description>
|
Remote javascript is defined in default.rjs. Click the following link to install. (Force exit and re-launch the app, then long press the &quot;search&quot; button to popup the menu.</description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item>
|
|
||||||
<title>Resource redirection</title>
|
|
||||||
<link>/en/redirect/</link>
|
|
||||||
<pubDate>Mon, 25 Apr 2022 00:00:00 +0000</pubDate>
|
|
||||||
|
|
||||||
<guid>/en/redirect/</guid>
|
|
||||||
<description>Click the following links to append mirrors to the file &quot;default.redirect&quot;:
|
|
||||||
github mirror:fastgit
|
|
||||||
github mirror 2
|
|
||||||
google recaptcha mirror
|
|
||||||
Each line of the file &quot;default.redirect&quot; has the following format:
|
|
||||||
[domain name]:[regular expression]:[replacement expression]
|
|
||||||
in which &quot;[regular expression]&quot; is as defined by java language, and cannot have &quot;:&quot; inside; if empty, it defaults to be same as &quot;[domain name]&quot;.
|
|
||||||
Ways to enable redirection: Long the image button。 Long pressing the setting button, enable the option &quot;url redirection&quot;.</description>
|
|
||||||
</item>
|
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<title>Text selection</title>
|
<title>Text selection</title>
|
||||||
<link>/en/pccopy/</link>
|
<link>/en/pccopy/</link>
|
||||||
|
|
|
@ -49,23 +49,25 @@
|
||||||
<li><a href="../tags/redirection">redirection</a> </li>
|
<li><a href="../tags/redirection">redirection</a> </li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<p>Click the following links to append mirrors to the file "default.redirect":<br>
|
<h4 id="global-redirection">Global redirection</h4>
|
||||||
<a href="i:0gdefault.redirect::github.com::hub.fastgit.xyz%0A">github mirror:fastgit</a><br>
|
<p><a href="i:60/data/data/info.torapp.uweb/files/config.html:https://jamesfengcao.codeberg.page/en/searchurl/config.html">Global redirection</a> is enabled with the setting option "Resource redirection".</p>
|
||||||
<a href="i:0gdefault.redirect::github.com::hub.0z.gs%0A">github mirror 2</a></p>
|
<p>When a valid global redirection url is set, the "default.redirect" has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url.</p>
|
||||||
<p><a target="_self" href="i:0gdefault.redirect:../../zh/searchurl/txt/redirect.cfg">google recaptcha mirror</a></p>
|
<h4 id="defaultredirect-valid-only-without-global-redirection-url">"default.redirect" (valid only without global redirection url)</h4>
|
||||||
|
<p>Click the following links to append mirrors to the file "default.redirect":<br>
|
||||||
|
<a target="_self" href="i:0gdefault.redirect:../../zh/searchurl/txt/redirect.cfg">google recaptcha mirror</a></p>
|
||||||
<p>Each line of the file "default.redirect" has the following format:<br>
|
<p>Each line of the file "default.redirect" has the following format:<br>
|
||||||
[domain name]:[regular expression]:[replacement expression]</p>
|
[domain name]:[regular expression]:[replacement expression]</p>
|
||||||
<p>in which "[regular expression]" is as defined by java language, and cannot have ":" inside; if empty, it defaults to be same as "[domain name]".</p>
|
<p>in which "[regular expression]" is as defined by java language, and cannot have ":" inside; if empty, it defaults to be same as "[domain name]".</p>
|
||||||
<h4 id="ways-to-enable-redirection">Ways to enable redirection:</h4>
|
<h5 id="ways-to-enable-domain-redirection">Ways to enable domain redirection:</h5>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="../urls/index.html">Long the image button</a>。</li>
|
<li><a href="../urls/index.html">Long pressing the image button</a>。</li>
|
||||||
<li>Long pressing the setting button, enable the option "url redirection".</li>
|
<li>Long pressing the setting button, enable the option "url redirection".</li>
|
||||||
<li>Long pressing the setting button, enable the option "Resource redirection".</li>
|
<li>Long pressing the setting button, enable the option "Resource redirection".</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<p>Last Modified: 20 February 2023<br>
|
<p>Last Modified: 12 April 2023<br>
|
||||||
use relative path<br>
|
global redirection support in config.js<br>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="./js/GetSet.js"></script>
|
<script type="text/javascript" src="./js/GetSet.js"></script>
|
||||||
|
<script type="text/javascript" src="./js/optionsSets.js"></script>
|
||||||
<script type="text/javascript" src="./js/bingChatHub.js"></script>
|
<script type="text/javascript" src="./js/bingChatHub.js"></script>
|
||||||
<script type="text/javascript" src="./js/parserReturn.js"></script>
|
<script type="text/javascript" src="./js/parserReturn.js"></script>
|
||||||
<script type="text/javascript" src="./js/bing.js"></script>
|
<script type="text/javascript" src="./js/bing.js"></script>
|
||||||
|
|
|
@ -20,85 +20,6 @@ function getUuid() {
|
||||||
return URL.createObjectURL(new Blob()).split('/')[3];
|
return URL.createObjectURL(new Blob()).split('/')[3];
|
||||||
}
|
}
|
||||||
|
|
||||||
//聊天选项
|
|
||||||
let chatTypes = {
|
|
||||||
//更有创造力选项
|
|
||||||
create: [
|
|
||||||
"nlu_direct_response_filter",
|
|
||||||
"deepleo",
|
|
||||||
"disable_emoji_spoken_text",
|
|
||||||
"responsible_ai_policy_235",
|
|
||||||
"enablemm",
|
|
||||||
"h3imaginative",
|
|
||||||
"clgalileo",
|
|
||||||
"gencontentv3",
|
|
||||||
"telmet",
|
|
||||||
"jbfv2",
|
|
||||||
"c2b47e4f",
|
|
||||||
"dv3sugg"
|
|
||||||
],
|
|
||||||
//balance 平衡模式选项
|
|
||||||
balance: [
|
|
||||||
"nlu_direct_response_filter",
|
|
||||||
"deepleo",
|
|
||||||
"disable_emoji_spoken_text",
|
|
||||||
"responsible_ai_policy_235",
|
|
||||||
"enablemm",
|
|
||||||
"galileo",
|
|
||||||
"jbf101",
|
|
||||||
"cachewriteext",
|
|
||||||
"e2ecachewrite",
|
|
||||||
"nodlcpcwrite",
|
|
||||||
"dv3sugg",
|
|
||||||
"dlwebtrunc",
|
|
||||||
"glpromptv6"
|
|
||||||
],
|
|
||||||
//精准选项
|
|
||||||
accurate: [
|
|
||||||
"nlu_direct_response_filter",
|
|
||||||
"deepleo",
|
|
||||||
"disable_emoji_spoken_text",
|
|
||||||
"responsible_ai_policy_235",
|
|
||||||
"enablemm",
|
|
||||||
"h3precise",
|
|
||||||
"telmet",
|
|
||||||
"jbfv2",
|
|
||||||
"c2b47e4f",
|
|
||||||
"dv3sugg",
|
|
||||||
"clgalileo"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
//接收消息类型
|
|
||||||
let allowedMessageTypes = [
|
|
||||||
"Chat",
|
|
||||||
"InternalSearchQuery",
|
|
||||||
"InternalSearchResult",
|
|
||||||
"Disengaged",
|
|
||||||
"InternalLoaderMessage",
|
|
||||||
"RenderCardRequest",
|
|
||||||
"AdsQuery",
|
|
||||||
"SemanticSerp",
|
|
||||||
"GenerateContentQuery",
|
|
||||||
"SearchQuery"
|
|
||||||
]
|
|
||||||
|
|
||||||
//切片id,也不知道是啥意思,反正官网的更新了
|
|
||||||
let sliceIds = [
|
|
||||||
"audseq",
|
|
||||||
"chk1cln",
|
|
||||||
"nofbkcf",
|
|
||||||
"nosharepre",
|
|
||||||
"fixsacodecf",
|
|
||||||
"405suggbs0",
|
|
||||||
"scctl",
|
|
||||||
"403jbf101",
|
|
||||||
"udstrclm8cmp",
|
|
||||||
"udstrclm8",
|
|
||||||
"329v6webtrunc",
|
|
||||||
"404e2ewrt"
|
|
||||||
]
|
|
||||||
|
|
||||||
class SendMessageManager {
|
class SendMessageManager {
|
||||||
//(会话id,客户端id,签名id,是否是开始)
|
//(会话id,客户端id,签名id,是否是开始)
|
||||||
//(string,string,string,boolena)
|
//(string,string,string,boolena)
|
||||||
|
|
|
@ -0,0 +1,114 @@
|
||||||
|
//聊天选项
|
||||||
|
let chatTypes = {
|
||||||
|
//更有创造力选项
|
||||||
|
create: [
|
||||||
|
"nlu_direct_response_filter",
|
||||||
|
"deepleo",
|
||||||
|
"disable_emoji_spoken_text",
|
||||||
|
"responsible_ai_policy_235",
|
||||||
|
"enablemm",
|
||||||
|
"h3imaginative",
|
||||||
|
"jbf101",
|
||||||
|
"cachewriteext",
|
||||||
|
"e2ecachewrite",
|
||||||
|
"nodlcpcwrite",
|
||||||
|
"dv3sugg",
|
||||||
|
"clgalileo",
|
||||||
|
"gencontentv3"
|
||||||
|
],
|
||||||
|
//balance 平衡模式选项
|
||||||
|
balance: [
|
||||||
|
"nlu_direct_response_filter",
|
||||||
|
"deepleo",
|
||||||
|
"disable_emoji_spoken_text",
|
||||||
|
"responsible_ai_policy_235",
|
||||||
|
"enablemm",
|
||||||
|
"galileo",
|
||||||
|
"jbf101",
|
||||||
|
"cachewriteext",
|
||||||
|
"e2ecachewrite",
|
||||||
|
"nodlcpcwrite",
|
||||||
|
"dv3sugg",
|
||||||
|
"dlwebtrunc",
|
||||||
|
"glpromptv6"
|
||||||
|
],
|
||||||
|
//精准选项
|
||||||
|
accurate: [
|
||||||
|
"nlu_direct_response_filter",
|
||||||
|
"deepleo",
|
||||||
|
"disable_emoji_spoken_text",
|
||||||
|
"responsible_ai_policy_235",
|
||||||
|
"enablemm",
|
||||||
|
"h3precise",
|
||||||
|
"clgalileo",
|
||||||
|
"jbf101",
|
||||||
|
"cachewriteext",
|
||||||
|
"e2ecachewrite",
|
||||||
|
"nodlcpcwrite",
|
||||||
|
"dv3sugg"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
//接收消息类型
|
||||||
|
let allowedMessageTypes = [
|
||||||
|
"Chat",
|
||||||
|
"InternalSearchQuery",
|
||||||
|
"InternalSearchResult",
|
||||||
|
"Disengaged",
|
||||||
|
"InternalLoaderMessage",
|
||||||
|
"RenderCardRequest",
|
||||||
|
"AdsQuery",
|
||||||
|
"SemanticSerp",
|
||||||
|
"GenerateContentQuery",
|
||||||
|
"SearchQuery"
|
||||||
|
]
|
||||||
|
|
||||||
|
//切片id,也不知道是啥意思,反正官网的更新了
|
||||||
|
let sliceIds = [
|
||||||
|
"audseq",
|
||||||
|
"chk1cln",
|
||||||
|
"nofbkcf",
|
||||||
|
"nosharepre",
|
||||||
|
"fixsacodecf",
|
||||||
|
"405suggbs0",
|
||||||
|
"scctl",
|
||||||
|
"403jbf101",
|
||||||
|
"udstrclm8cmp",
|
||||||
|
"udstrclm8",
|
||||||
|
"329v6webtrunc",
|
||||||
|
"404e2ewrt"
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
async function getPreviousMessages(){
|
||||||
|
function getUuid() {
|
||||||
|
return URL.createObjectURL(new Blob()).split('/')[3];
|
||||||
|
}
|
||||||
|
let pos = getStartProposes();
|
||||||
|
return [{
|
||||||
|
"text": getStartMessage(),
|
||||||
|
"author": "bot",
|
||||||
|
"adaptiveCards": [],
|
||||||
|
"suggestedResponses": [{
|
||||||
|
"text": pos[0],
|
||||||
|
"contentOrigin": "DeepLeo",
|
||||||
|
"messageType": "Suggestion",
|
||||||
|
"messageId": getUuid(),
|
||||||
|
"offense": "Unknown"
|
||||||
|
}, {
|
||||||
|
"text": pos[1],
|
||||||
|
"contentOrigin": "DeepLeo",
|
||||||
|
"messageType": "Suggestion",
|
||||||
|
"messageId": getUuid(),
|
||||||
|
"offense": "Unknown"
|
||||||
|
}, {
|
||||||
|
"text": pos[2],
|
||||||
|
"contentOrigin": "DeepLeo",
|
||||||
|
"messageType": "Suggestion",
|
||||||
|
"messageId": getUuid(),
|
||||||
|
"offense": "Unknown"
|
||||||
|
}],
|
||||||
|
"messageId": getUuid(),
|
||||||
|
"messageType": "Chat"
|
||||||
|
}];
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
|
|
||||||
Serif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
let labels = ["Default font","Cursive","Fantasy","Fixed","Sans-Serif","Serif"];
|
let labels = ["Global redirect url","Default font","Cursive","Fantasy","Fixed","Sans-Serif","Serif"];
|
||||||
let names = ["font","cursive","fantasy","fixed","sansserif","serif"];
|
let names = ["redirecturl","font","cursive","fantasy","fixed","sansserif","serif"];
|
||||||
|
|
||||||
let d=document;
|
let d=document;
|
||||||
|
|
||||||
let sa = [`<style>input{height:40px;width:100%;border-radius:50px;}</style>
|
let sa = [`<head><meta charset="utf-8"><meta name="viewport" content="width=device-width" /></head><style>input{height:40px;width:100%;border-radius:50px;}</style>
|
||||||
<datalist id="family">
|
<datalist id="family">
|
||||||
<option value="sans-serif">
|
<option value="sans-serif">
|
||||||
<option value="sans-serif-condensed">
|
<option value="sans-serif-condensed">
|
||||||
|
@ -13,32 +13,38 @@ let sa = [`<style>input{height:40px;width:100%;border-radius:50px;}</style>
|
||||||
<option value="monospace">
|
<option value="monospace">
|
||||||
<option value="cursive">
|
<option value="cursive">
|
||||||
</datalist>
|
</datalist>
|
||||||
<form onsubmit="let d=document;let f=d.forms[0];d.location.href='i:0i/data/data/info.torapp.uweb/files/config.html:'+f.font.value+
|
<form onsubmit="let d=document;let f=d.forms[0];d.location.href='i:0i/data/data/info.torapp.uweb/files/config.html:'
|
||||||
|
+f.redirecturl.value+
|
||||||
|
'&'+ f.font.value+
|
||||||
'&'+ f.cursive.value +
|
'&'+ f.cursive.value +
|
||||||
'&'+ f.fantasy.value +
|
'&'+ f.fantasy.value +
|
||||||
'&'+ f.fixed.value +
|
'&'+ f.fixed.value +
|
||||||
'&'+ f.sansserif.value +
|
'&'+ f.sansserif.value +
|
||||||
'&'+ f.serif.value +
|
'&'+ f.serif.value +
|
||||||
':https://fastly.jsdelivr.net/gh/torappinfo/uweb/searchurl/template/config.html';return false;" accept-charset=utf-8 >`];
|
':https://fastly.jsdelivr.net/gh/torappinfo/uweb/zh/searchurl/template/config.html';return false;" accept-charset=utf-8 >`];
|
||||||
|
|
||||||
function gen(text) {
|
function gen(text) {
|
||||||
let strs = text.split('\n');
|
let strs = text.split('\n');
|
||||||
let i=0;
|
let i=0;
|
||||||
for (i = 0; i < labels.length; i++){
|
sa.push("<label>"+labels[i]+"<input type='text' name='"+names[i]+"' value='"+strs[i]+"'/></label>");
|
||||||
|
for (i = 1; i < labels.length; i++){
|
||||||
sa.push("<label>"+labels[i]+"<input list='family' type='text' name='"+names[i]+"' value='"+strs[i]+"'/></label>");
|
sa.push("<label>"+labels[i]+"<input list='family' type='text' name='"+names[i]+"' value='"+strs[i]+"'/></label>");
|
||||||
}
|
}
|
||||||
|
|
||||||
sa.push('<input type="submit" value="Save"></form>');
|
sa.push('<input type="submit" value="Save"></form>');
|
||||||
let r = sa.join('<br>');
|
let r = sa.join('<br>');
|
||||||
d.documentElement.innerHTML = r;
|
d.write(r);
|
||||||
|
d.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(d.body){
|
if(d.body){
|
||||||
fetch(location.href)
|
var r=new XMLHttpRequest;
|
||||||
.then(res => res.text())
|
r.onload=function(){
|
||||||
.then(text => {
|
var t=r.responseText;
|
||||||
gen(text);
|
gen(t);
|
||||||
});
|
}
|
||||||
|
r.open("GET",location.href,!0);
|
||||||
|
r.send(null);
|
||||||
}else {
|
}else {
|
||||||
let text = "\n".repeat(labels.length-1);
|
let text = "\n".repeat(labels.length-1);
|
||||||
gen(text);
|
gen(text);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||||
<url>
|
<url>
|
||||||
<loc>/en/_posts/</loc>
|
<loc>/en/_posts/</loc>
|
||||||
<lastmod>2023-04-10T08:20:10+08:00</lastmod>
|
<lastmod>2023-04-12T08:29:32+08:00</lastmod>
|
||||||
<xhtml:link
|
<xhtml:link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
hreflang="zh"
|
hreflang="zh"
|
||||||
|
@ -14,6 +14,48 @@
|
||||||
hreflang="en"
|
hreflang="en"
|
||||||
href="/en/_posts/"
|
href="/en/_posts/"
|
||||||
/>
|
/>
|
||||||
|
</url><url>
|
||||||
|
<loc>/en/tags/redirection/</loc>
|
||||||
|
<lastmod>2023-04-12T08:29:32+08:00</lastmod>
|
||||||
|
</url><url>
|
||||||
|
<loc>/en/redirect/</loc>
|
||||||
|
<lastmod>2023-04-12T08:29:32+08:00</lastmod>
|
||||||
|
<xhtml:link
|
||||||
|
rel="alternate"
|
||||||
|
hreflang="zh"
|
||||||
|
href="/zh/redirect/"
|
||||||
|
/>
|
||||||
|
<xhtml:link
|
||||||
|
rel="alternate"
|
||||||
|
hreflang="en"
|
||||||
|
href="/en/redirect/"
|
||||||
|
/>
|
||||||
|
</url><url>
|
||||||
|
<loc>/en/tags/</loc>
|
||||||
|
<lastmod>2023-04-12T08:29:32+08:00</lastmod>
|
||||||
|
<xhtml:link
|
||||||
|
rel="alternate"
|
||||||
|
hreflang="zh"
|
||||||
|
href="/zh/tags/"
|
||||||
|
/>
|
||||||
|
<xhtml:link
|
||||||
|
rel="alternate"
|
||||||
|
hreflang="en"
|
||||||
|
href="/en/tags/"
|
||||||
|
/>
|
||||||
|
</url><url>
|
||||||
|
<loc>/en/</loc>
|
||||||
|
<lastmod>2023-04-12T08:29:32+08:00</lastmod>
|
||||||
|
<xhtml:link
|
||||||
|
rel="alternate"
|
||||||
|
hreflang="zh"
|
||||||
|
href="/zh/"
|
||||||
|
/>
|
||||||
|
<xhtml:link
|
||||||
|
rel="alternate"
|
||||||
|
hreflang="en"
|
||||||
|
href="/en/"
|
||||||
|
/>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/offlinecache/</loc>
|
<loc>/en/offlinecache/</loc>
|
||||||
<lastmod>2023-04-01T21:06:06+08:00</lastmod>
|
<lastmod>2023-04-01T21:06:06+08:00</lastmod>
|
||||||
|
@ -27,19 +69,6 @@
|
||||||
hreflang="en"
|
hreflang="en"
|
||||||
href="/en/offlinecache/"
|
href="/en/offlinecache/"
|
||||||
/>
|
/>
|
||||||
</url><url>
|
|
||||||
<loc>/en/</loc>
|
|
||||||
<lastmod>2023-04-10T08:20:10+08:00</lastmod>
|
|
||||||
<xhtml:link
|
|
||||||
rel="alternate"
|
|
||||||
hreflang="zh"
|
|
||||||
href="/zh/"
|
|
||||||
/>
|
|
||||||
<xhtml:link
|
|
||||||
rel="alternate"
|
|
||||||
hreflang="en"
|
|
||||||
href="/en/"
|
|
||||||
/>
|
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/links/</loc>
|
<loc>/en/links/</loc>
|
||||||
<lastmod>2023-04-10T08:20:10+08:00</lastmod>
|
<lastmod>2023-04-10T08:20:10+08:00</lastmod>
|
||||||
|
@ -69,19 +98,6 @@
|
||||||
hreflang="en"
|
hreflang="en"
|
||||||
href="/en/adblock_domain/"
|
href="/en/adblock_domain/"
|
||||||
/>
|
/>
|
||||||
</url><url>
|
|
||||||
<loc>/en/tags/</loc>
|
|
||||||
<lastmod>2023-04-08T17:53:21+08:00</lastmod>
|
|
||||||
<xhtml:link
|
|
||||||
rel="alternate"
|
|
||||||
hreflang="zh"
|
|
||||||
href="/zh/tags/"
|
|
||||||
/>
|
|
||||||
<xhtml:link
|
|
||||||
rel="alternate"
|
|
||||||
hreflang="en"
|
|
||||||
href="/en/tags/"
|
|
||||||
/>
|
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/search/</loc>
|
<loc>/en/search/</loc>
|
||||||
<lastmod>2023-03-20T22:39:44+08:00</lastmod>
|
<lastmod>2023-03-20T22:39:44+08:00</lastmod>
|
||||||
|
@ -97,7 +113,7 @@
|
||||||
/>
|
/>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/topposts/</loc>
|
<loc>/en/topposts/</loc>
|
||||||
<lastmod>2023-04-03T17:49:38+08:00</lastmod>
|
<lastmod>2023-04-12T07:51:47+08:00</lastmod>
|
||||||
<xhtml:link
|
<xhtml:link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
hreflang="zh"
|
hreflang="zh"
|
||||||
|
@ -194,7 +210,7 @@
|
||||||
/>
|
/>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/changelog/</loc>
|
<loc>/en/changelog/</loc>
|
||||||
<lastmod>2023-04-03T17:49:38+08:00</lastmod>
|
<lastmod>2023-04-12T07:51:47+08:00</lastmod>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/sitemap/</loc>
|
<loc>/en/sitemap/</loc>
|
||||||
<lastmod>2023-02-01T09:52:11+08:00</lastmod>
|
<lastmod>2023-02-01T09:52:11+08:00</lastmod>
|
||||||
|
@ -286,22 +302,6 @@
|
||||||
hreflang="en"
|
hreflang="en"
|
||||||
href="/en/rjs/"
|
href="/en/rjs/"
|
||||||
/>
|
/>
|
||||||
</url><url>
|
|
||||||
<loc>/en/tags/redirection/</loc>
|
|
||||||
<lastmod>2023-02-20T21:49:51+08:00</lastmod>
|
|
||||||
</url><url>
|
|
||||||
<loc>/en/redirect/</loc>
|
|
||||||
<lastmod>2023-02-20T21:49:51+08:00</lastmod>
|
|
||||||
<xhtml:link
|
|
||||||
rel="alternate"
|
|
||||||
hreflang="zh"
|
|
||||||
href="/zh/redirect/"
|
|
||||||
/>
|
|
||||||
<xhtml:link
|
|
||||||
rel="alternate"
|
|
||||||
hreflang="en"
|
|
||||||
href="/en/redirect/"
|
|
||||||
/>
|
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/tags/clipboard/</loc>
|
<loc>/en/tags/clipboard/</loc>
|
||||||
<lastmod>2023-02-20T21:46:50+08:00</lastmod>
|
<lastmod>2023-02-20T21:46:50+08:00</lastmod>
|
||||||
|
|
|
@ -5,7 +5,16 @@
|
||||||
<link>/en/tags/</link>
|
<link>/en/tags/</link>
|
||||||
<description>Recent content in Tags on uweb browser: unlimited power</description>
|
<description>Recent content in Tags on uweb browser: unlimited power</description>
|
||||||
<generator>Hugo -- gohugo.io</generator>
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
<lastBuildDate>Mon, 20 Mar 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/index.xml" rel="self" type="application/rss+xml" />
|
<lastBuildDate>Tue, 11 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
<item>
|
||||||
|
<title>redirection</title>
|
||||||
|
<link>/en/tags/redirection/</link>
|
||||||
|
<pubDate>Tue, 11 Apr 2023 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
|
<guid>/en/tags/redirection/</guid>
|
||||||
|
<description></description>
|
||||||
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<title>adblock</title>
|
<title>adblock</title>
|
||||||
<link>/en/tags/adblock/</link>
|
<link>/en/tags/adblock/</link>
|
||||||
|
@ -33,15 +42,6 @@
|
||||||
<description></description>
|
<description></description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item>
|
|
||||||
<title>redirection</title>
|
|
||||||
<link>/en/tags/redirection/</link>
|
|
||||||
<pubDate>Mon, 25 Apr 2022 00:00:00 +0000</pubDate>
|
|
||||||
|
|
||||||
<guid>/en/tags/redirection/</guid>
|
|
||||||
<description></description>
|
|
||||||
</item>
|
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<title>clipboard</title>
|
<title>clipboard</title>
|
||||||
<link>/en/tags/clipboard/</link>
|
<link>/en/tags/clipboard/</link>
|
||||||
|
|
|
@ -5,21 +5,18 @@
|
||||||
<link>/en/tags/redirection/</link>
|
<link>/en/tags/redirection/</link>
|
||||||
<description>Recent content in redirection on uweb browser: unlimited power</description>
|
<description>Recent content in redirection on uweb browser: unlimited power</description>
|
||||||
<generator>Hugo -- gohugo.io</generator>
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
<lastBuildDate>Mon, 25 Apr 2022 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/redirection/index.xml" rel="self" type="application/rss+xml" />
|
<lastBuildDate>Tue, 11 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/redirection/index.xml" rel="self" type="application/rss+xml" />
|
||||||
<item>
|
<item>
|
||||||
<title>Resource redirection</title>
|
<title>Resource redirection</title>
|
||||||
<link>/en/redirect/</link>
|
<link>/en/redirect/</link>
|
||||||
<pubDate>Mon, 25 Apr 2022 00:00:00 +0000</pubDate>
|
<pubDate>Tue, 11 Apr 2023 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
<guid>/en/redirect/</guid>
|
<guid>/en/redirect/</guid>
|
||||||
<description>Click the following links to append mirrors to the file &quot;default.redirect&quot;:
|
<description>Global redirection Global redirection is enabled with the setting option &quot;Resource redirection&quot;.
|
||||||
github mirror:fastgit
|
When a valid global redirection url is set, the &quot;default.redirect&quot; has no effect, and any url resource is fetched with the new url by appending the original url to the global redirection url.
|
||||||
github mirror 2
|
&quot;default.redirect&quot; (valid only without global redirection url) Click the following links to append mirrors to the file &quot;default.redirect&quot;:
|
||||||
google recaptcha mirror
|
google recaptcha mirror
|
||||||
Each line of the file &quot;default.redirect&quot; has the following format:
|
Each line of the file &quot;default.</description>
|
||||||
[domain name]:[regular expression]:[replacement expression]
|
|
||||||
in which &quot;[regular expression]&quot; is as defined by java language, and cannot have &quot;:&quot; inside; if empty, it defaults to be same as &quot;[domain name]&quot;.
|
|
||||||
Ways to enable redirection: Long the image button。 Long pressing the setting button, enable the option &quot;url redirection&quot;.</description>
|
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
</channel>
|
</channel>
|
||||||
|
|
|
@ -64,10 +64,12 @@ github
|
||||||
sourceforge
|
sourceforge
|
||||||
powerfolder
|
powerfolder
|
||||||
pagure
|
pagure
|
||||||
Main features Change logs 988: hosts file to support response headers.
|
Main features Change logs 991: global url redirection support.
|
||||||
987: enhance hosts file to support domain attributes, such as lifting limitations with empty ip address.
|
988: hosts file to support response headers.
|
||||||
985: Special urls to support shortcut keys such as ctrl-a to ctrl-z.
|
985: Special urls to support shortcut keys such as ctrl-a to ctrl-z.
|
||||||
983: support &quot;hosts&quot; file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.</description>
|
983: support &quot;hosts&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.
|
||||||
|
971: multiple type profiles: switch any data including website logins, user configurations orthogonally.</description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<sitemap>
|
<sitemap>
|
||||||
<loc>en/sitemap.xml</loc>
|
<loc>en/sitemap.xml</loc>
|
||||||
|
|
||||||
<lastmod>2023-04-10T08:20:10+08:00</lastmod>
|
<lastmod>2023-04-12T08:29:32+08:00</lastmod>
|
||||||
|
|
||||||
</sitemap>
|
</sitemap>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
let labels = ["网页默认字体族","cursive字体族","Fantasy字体族","Fixed字体族","Sans-Serif字体族","Serif字体族"];
|
let labels = ["全局重定向网址","网页默认字体族","cursive字体族","Fantasy字体族","Fixed字体族","Sans-Serif字体族","Serif字体族"];
|
||||||
let names = ["font","cursive","fantasy","fixed","sansserif","serif"];
|
let names = ["redirecturl","font","cursive","fantasy","fixed","sansserif","serif"];
|
||||||
|
|
||||||
let d=document;
|
let d=document;
|
||||||
|
|
||||||
|
@ -13,18 +13,21 @@ let sa = [`<head><meta charset="utf-8"><meta name="viewport" content="width=devi
|
||||||
<option value="monospace">
|
<option value="monospace">
|
||||||
<option value="cursive">
|
<option value="cursive">
|
||||||
</datalist>
|
</datalist>
|
||||||
<form onsubmit="let d=document;let f=d.forms[0];d.location.href='i:0i/data/data/info.torapp.uweb/files/config.html:'+f.font.value+
|
<form onsubmit="let d=document;let f=d.forms[0];d.location.href='i:0i/data/data/info.torapp.uweb/files/config.html:'
|
||||||
|
+f.redirecturl.value+
|
||||||
|
'&'+ f.font.value+
|
||||||
'&'+ f.cursive.value +
|
'&'+ f.cursive.value +
|
||||||
'&'+ f.fantasy.value +
|
'&'+ f.fantasy.value +
|
||||||
'&'+ f.fixed.value +
|
'&'+ f.fixed.value +
|
||||||
'&'+ f.sansserif.value +
|
'&'+ f.sansserif.value +
|
||||||
'&'+ f.serif.value +
|
'&'+ f.serif.value +
|
||||||
':https://fastly.jsdelivr.net/gh/torappinfo/uweb/searchurl/template/config.html';return false;" accept-charset=utf-8 >`];
|
':https://fastly.jsdelivr.net/gh/torappinfo/uweb/zh/searchurl/template/config.html';return false;" accept-charset=utf-8 >`];
|
||||||
|
|
||||||
function gen(text) {
|
function gen(text) {
|
||||||
let strs = text.split('\n');
|
let strs = text.split('\n');
|
||||||
let i=0;
|
let i=0;
|
||||||
for (i = 0; i < labels.length; i++){
|
sa.push("<label>"+labels[i]+"<input type='text' name='"+names[i]+"' value='"+strs[i]+"'/></label>");
|
||||||
|
for (i = 1; i < labels.length; i++){
|
||||||
sa.push("<label>"+labels[i]+"<input list='family' type='text' name='"+names[i]+"' value='"+strs[i]+"'/></label>");
|
sa.push("<label>"+labels[i]+"<input list='family' type='text' name='"+names[i]+"' value='"+strs[i]+"'/></label>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,11 +38,13 @@ function gen(text) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(d.body){
|
if(d.body){
|
||||||
fetch(location.href)
|
var r=new XMLHttpRequest;
|
||||||
.then(res => res.text())
|
r.onload=function(){
|
||||||
.then(text => {
|
var t=r.responseText;
|
||||||
gen(text);
|
gen(t);
|
||||||
});
|
}
|
||||||
|
r.open("GET",location.href,!0);
|
||||||
|
r.send(null);
|
||||||
}else {
|
}else {
|
||||||
let text = "\n".repeat(labels.length-1);
|
let text = "\n".repeat(labels.length-1);
|
||||||
gen(text);
|
gen(text);
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
%4%
|
%4%
|
||||||
%5%
|
%5%
|
||||||
%6%
|
%6%
|
||||||
|
%7%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,5 +22,4 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script charset="utf-8" src="https://jamesfengcao.codeberg.page/en/searchurl/config.js"></script>
|
||||||
<script charset="utf-8" src="https://cdn.jsdelivr.net/gh/torappinfo/uweb/searchurl/config.js"></script>
|
|
||||||
|
|
Loading…
Reference in New Issue