mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
Compare commits
9 commits
668562f292
...
2704b2f1cc
Author | SHA1 | Date | |
---|---|---|---|
|
2704b2f1cc | ||
|
032723db19 | ||
|
1239ef166c | ||
|
13fbe1c9af | ||
|
0e70132833 | ||
|
8998d08b42 | ||
|
1ba51cb179 | ||
|
e35f094c97 | ||
|
96b13242b5 |
17 changed files with 271 additions and 227 deletions
|
@ -5,7 +5,20 @@
|
|||
<link>/en/_posts/</link>
|
||||
<description>Recent content in _posts on uweb browser: unlimited power</description>
|
||||
<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>
|
||||
<title>Offline resources</title>
|
||||
<link>/en/offlinecache/</link>
|
||||
|
@ -194,22 +207,6 @@ Toggle all checkboxes in forms
|
|||
Enable selection</description>
|
||||
</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>
|
||||
<title>Text selection</title>
|
||||
<link>/en/pccopy/</link>
|
||||
|
|
|
@ -51,8 +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>988: <a href="../adblock_domain/index.html">hosts</a> file to support response headers.<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>
|
||||
<p>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>
|
||||
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>
|
||||
|
@ -78,8 +78,8 @@
|
|||
</ul>
|
||||
|
||||
</div>
|
||||
<p>Last Modified: 3 April 2023<br>
|
||||
bingAI to support cors with cookies<br>
|
||||
<p>Last Modified: 12 April 2023<br>
|
||||
global redirection support in config.js<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -95,6 +95,12 @@
|
|||
</li>
|
||||
|
||||
|
||||
<li class="post">
|
||||
<a href="redirect/index.html">
|
||||
<span>Resource redirection</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="post">
|
||||
<a href="offlinecache/index.html">
|
||||
<span>Offline resources</span>
|
||||
|
@ -167,12 +173,6 @@
|
|||
</a>
|
||||
</li>
|
||||
|
||||
<li class="post">
|
||||
<a href="redirect/index.html">
|
||||
<span>Resource redirection</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="post">
|
||||
<a href="pccopy/index.html">
|
||||
<span>Text selection</span>
|
||||
|
|
39
en/index.xml
39
en/index.xml
|
@ -5,7 +5,20 @@
|
|||
<link>/en/</link>
|
||||
<description>Recent content on uweb browser: unlimited power</description>
|
||||
<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>
|
||||
<title>Offline resources</title>
|
||||
<link>/en/offlinecache/</link>
|
||||
|
@ -196,10 +209,12 @@ github
|
|||
sourceforge
|
||||
powerfolder
|
||||
pagure
|
||||
Main features Change logs 988: hosts file to support response headers.
|
||||
987: enhance hosts file to support domain attributes, such as lifting limitations with empty ip address.
|
||||
Main features Change logs 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 &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>
|
||||
|
@ -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>
|
||||
</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>
|
||||
<title>Text selection</title>
|
||||
<link>/en/pccopy/</link>
|
||||
|
|
|
@ -49,23 +49,25 @@
|
|||
<li><a href="../tags/redirection">redirection</a> </li>
|
||||
|
||||
</ul>
|
||||
<p>Click the following links to append mirrors to the file "default.redirect":<br>
|
||||
<a href="i:0gdefault.redirect::github.com::hub.fastgit.xyz%0A">github mirror:fastgit</a><br>
|
||||
<a href="i:0gdefault.redirect::github.com::hub.0z.gs%0A">github mirror 2</a></p>
|
||||
<p><a target="_self" href="i:0gdefault.redirect:../../zh/searchurl/txt/redirect.cfg">google recaptcha mirror</a></p>
|
||||
<h4 id="global-redirection">Global redirection</h4>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
[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>
|
||||
<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>
|
||||
<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 "Resource redirection".</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<p>Last Modified: 20 February 2023<br>
|
||||
use relative path<br>
|
||||
<p>Last Modified: 12 April 2023<br>
|
||||
global redirection support in config.js<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
}
|
||||
</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/parserReturn.js"></script>
|
||||
<script type="text/javascript" src="./js/bing.js"></script>
|
||||
|
|
|
@ -20,85 +20,6 @@ function getUuid() {
|
|||
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 {
|
||||
//(会话id,客户端id,签名id,是否是开始)
|
||||
//(string,string,string,boolena)
|
||||
|
|
114
en/searchurl/bingAI/js/optionsSets.js
Normal file
114
en/searchurl/bingAI/js/optionsSets.js
Normal file
|
@ -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 names = ["font","cursive","fantasy","fixed","sansserif","serif"];
|
||||
let labels = ["Global redirect url","Default font","Cursive","Fantasy","Fixed","Sans-Serif","Serif"];
|
||||
let names = ["redirecturl","font","cursive","fantasy","fixed","sansserif","serif"];
|
||||
|
||||
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">
|
||||
<option value="sans-serif">
|
||||
<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="cursive">
|
||||
</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.fantasy.value +
|
||||
'&'+ f.fixed.value +
|
||||
'&'+ f.sansserif.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) {
|
||||
let strs = text.split('\n');
|
||||
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('<input type="submit" value="Save"></form>');
|
||||
let r = sa.join('<br>');
|
||||
d.documentElement.innerHTML = r;
|
||||
d.write(r);
|
||||
d.close();
|
||||
}
|
||||
|
||||
if(d.body){
|
||||
fetch(location.href)
|
||||
.then(res => res.text())
|
||||
.then(text => {
|
||||
gen(text);
|
||||
});
|
||||
var r=new XMLHttpRequest;
|
||||
r.onload=function(){
|
||||
var t=r.responseText;
|
||||
gen(t);
|
||||
}
|
||||
r.open("GET",location.href,!0);
|
||||
r.send(null);
|
||||
}else {
|
||||
let text = "\n".repeat(labels.length-1);
|
||||
gen(text);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
<url>
|
||||
<loc>/en/_posts/</loc>
|
||||
<lastmod>2023-04-10T08:20:10+08:00</lastmod>
|
||||
<lastmod>2023-04-12T08:29:32+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
|
@ -14,6 +14,48 @@
|
|||
hreflang="en"
|
||||
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>
|
||||
<loc>/en/offlinecache/</loc>
|
||||
<lastmod>2023-04-01T21:06:06+08:00</lastmod>
|
||||
|
@ -27,19 +69,6 @@
|
|||
hreflang="en"
|
||||
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>
|
||||
<loc>/en/links/</loc>
|
||||
<lastmod>2023-04-10T08:20:10+08:00</lastmod>
|
||||
|
@ -69,19 +98,6 @@
|
|||
hreflang="en"
|
||||
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>
|
||||
<loc>/en/search/</loc>
|
||||
<lastmod>2023-03-20T22:39:44+08:00</lastmod>
|
||||
|
@ -97,7 +113,7 @@
|
|||
/>
|
||||
</url><url>
|
||||
<loc>/en/topposts/</loc>
|
||||
<lastmod>2023-04-03T17:49:38+08:00</lastmod>
|
||||
<lastmod>2023-04-12T07:51:47+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
|
@ -194,7 +210,7 @@
|
|||
/>
|
||||
</url><url>
|
||||
<loc>/en/changelog/</loc>
|
||||
<lastmod>2023-04-03T17:49:38+08:00</lastmod>
|
||||
<lastmod>2023-04-12T07:51:47+08:00</lastmod>
|
||||
</url><url>
|
||||
<loc>/en/sitemap/</loc>
|
||||
<lastmod>2023-02-01T09:52:11+08:00</lastmod>
|
||||
|
@ -286,22 +302,6 @@
|
|||
hreflang="en"
|
||||
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>
|
||||
<loc>/en/tags/clipboard/</loc>
|
||||
<lastmod>2023-02-20T21:46:50+08:00</lastmod>
|
||||
|
|
|
@ -5,7 +5,16 @@
|
|||
<link>/en/tags/</link>
|
||||
<description>Recent content in Tags on uweb browser: unlimited power</description>
|
||||
<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>
|
||||
<title>adblock</title>
|
||||
<link>/en/tags/adblock/</link>
|
||||
|
@ -33,15 +42,6 @@
|
|||
<description></description>
|
||||
</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>
|
||||
<title>clipboard</title>
|
||||
<link>/en/tags/clipboard/</link>
|
||||
|
|
|
@ -5,21 +5,18 @@
|
|||
<link>/en/tags/redirection/</link>
|
||||
<description>Recent content in redirection on uweb browser: unlimited power</description>
|
||||
<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>
|
||||
<title>Resource redirection</title>
|
||||
<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>
|
||||
<description>Click the following links to append mirrors to the file &quot;default.redirect&quot;:
|
||||
github mirror:fastgit
|
||||
github mirror 2
|
||||
<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.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>
|
||||
Each line of the file &quot;default.</description>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
|
|
|
@ -64,10 +64,12 @@ github
|
|||
sourceforge
|
||||
powerfolder
|
||||
pagure
|
||||
Main features Change logs 988: hosts file to support response headers.
|
||||
987: enhance hosts file to support domain attributes, such as lifting limitations with empty ip address.
|
||||
Main features Change logs 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 &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>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<sitemap>
|
||||
<loc>en/sitemap.xml</loc>
|
||||
|
||||
<lastmod>2023-04-10T08:20:10+08:00</lastmod>
|
||||
<lastmod>2023-04-12T08:29:32+08:00</lastmod>
|
||||
|
||||
</sitemap>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
let labels = ["网页默认字体族","cursive字体族","Fantasy字体族","Fixed字体族","Sans-Serif字体族","Serif字体族"];
|
||||
let names = ["font","cursive","fantasy","fixed","sansserif","serif"];
|
||||
let labels = ["全局重定向网址","网页默认字体族","cursive字体族","Fantasy字体族","Fixed字体族","Sans-Serif字体族","Serif字体族"];
|
||||
let names = ["redirecturl","font","cursive","fantasy","fixed","sansserif","serif"];
|
||||
|
||||
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="cursive">
|
||||
</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.fantasy.value +
|
||||
'&'+ f.fixed.value +
|
||||
'&'+ f.sansserif.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) {
|
||||
let strs = text.split('\n');
|
||||
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>");
|
||||
}
|
||||
|
||||
|
@ -35,11 +38,13 @@ function gen(text) {
|
|||
}
|
||||
|
||||
if(d.body){
|
||||
fetch(location.href)
|
||||
.then(res => res.text())
|
||||
.then(text => {
|
||||
gen(text);
|
||||
});
|
||||
var r=new XMLHttpRequest;
|
||||
r.onload=function(){
|
||||
var t=r.responseText;
|
||||
gen(t);
|
||||
}
|
||||
r.open("GET",location.href,!0);
|
||||
r.send(null);
|
||||
}else {
|
||||
let text = "\n".repeat(labels.length-1);
|
||||
gen(text);
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
%4%
|
||||
%5%
|
||||
%6%
|
||||
%7%
|
||||
|
||||
|
||||
|
||||
|
@ -21,5 +22,4 @@
|
|||
|
||||
|
||||
|
||||
|
||||
<script charset="utf-8" src="https://cdn.jsdelivr.net/gh/torappinfo/uweb/searchurl/config.js"></script>
|
||||
<script charset="utf-8" src="https://jamesfengcao.codeberg.page/en/searchurl/config.js"></script>
|
||||
|
|
Loading…
Reference in a new issue