mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
Compare commits
No commits in common. "2704b2f1cca99aff31824c5cce2311d33f181ff1" and "668562f29228b8e0dc94c11819dbe3f036fdddf9" have entirely different histories.
2704b2f1cc
...
668562f292
17 changed files with 227 additions and 271 deletions
|
@ -5,20 +5,7 @@
|
|||
<link>/en/_posts/</link>
|
||||
<description>Recent content in _posts on uweb browser: unlimited power</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<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>
|
||||
|
||||
<lastBuildDate>Sat, 01 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/_posts/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Offline resources</title>
|
||||
<link>/en/offlinecache/</link>
|
||||
|
@ -207,6 +194,22 @@ 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>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>
|
||||
<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>
|
||||
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: 12 April 2023<br>
|
||||
global redirection support in config.js<br>
|
||||
<p>Last Modified: 3 April 2023<br>
|
||||
bingAI to support cors with cookies<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -95,12 +95,6 @@
|
|||
</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>
|
||||
|
@ -173,6 +167,12 @@
|
|||
</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,20 +5,7 @@
|
|||
<link>/en/</link>
|
||||
<description>Recent content on uweb browser: unlimited power</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<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>
|
||||
|
||||
<lastBuildDate>Sat, 01 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>Offline resources</title>
|
||||
<link>/en/offlinecache/</link>
|
||||
|
@ -209,12 +196,10 @@ github
|
|||
sourceforge
|
||||
powerfolder
|
||||
pagure
|
||||
Main features Change logs 991: global url redirection support.
|
||||
988: hosts file to support response headers.
|
||||
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.
|
||||
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.
|
||||
975: Bookmarks to support styling for markdown etc.
|
||||
971: multiple type profiles: switch any data including website logins, user configurations orthogonally.</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.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
@ -349,6 +334,22 @@ 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,25 +49,23 @@
|
|||
<li><a href="../tags/redirection">redirection</a> </li>
|
||||
|
||||
</ul>
|
||||
<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>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>
|
||||
<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>
|
||||
<h5 id="ways-to-enable-domain-redirection">Ways to enable domain redirection:</h5>
|
||||
<h4 id="ways-to-enable-redirection">Ways to enable redirection:</h4>
|
||||
<ul>
|
||||
<li><a href="../urls/index.html">Long pressing the image button</a>。</li>
|
||||
<li><a href="../urls/index.html">Long 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: 12 April 2023<br>
|
||||
global redirection support in config.js<br>
|
||||
<p>Last Modified: 20 February 2023<br>
|
||||
use relative path<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -81,7 +81,6 @@
|
|||
}
|
||||
</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,6 +20,85 @@ 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)
|
||||
|
|
|
@ -1,114 +0,0 @@
|
|||
//聊天选项
|
||||
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 = ["Global redirect url","Default font","Cursive","Fantasy","Fixed","Sans-Serif","Serif"];
|
||||
let names = ["redirecturl","font","cursive","fantasy","fixed","sansserif","serif"];
|
||||
let labels = ["Default font","Cursive","Fantasy","Fixed","Sans-Serif","Serif"];
|
||||
let names = ["font","cursive","fantasy","fixed","sansserif","serif"];
|
||||
|
||||
let d=document;
|
||||
|
||||
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>
|
||||
let sa = [`<style>input{height:40px;width:100%;border-radius:50px;}</style>
|
||||
<datalist id="family">
|
||||
<option value="sans-serif">
|
||||
<option value="sans-serif-condensed">
|
||||
|
@ -13,38 +13,32 @@ 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.redirecturl.value+
|
||||
'&'+ 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.font.value+
|
||||
'&'+ f.cursive.value +
|
||||
'&'+ f.fantasy.value +
|
||||
'&'+ f.fixed.value +
|
||||
'&'+ f.sansserif.value +
|
||||
'&'+ f.serif.value +
|
||||
':https://fastly.jsdelivr.net/gh/torappinfo/uweb/zh/searchurl/template/config.html';return false;" accept-charset=utf-8 >`];
|
||||
':https://fastly.jsdelivr.net/gh/torappinfo/uweb/searchurl/template/config.html';return false;" accept-charset=utf-8 >`];
|
||||
|
||||
function gen(text) {
|
||||
let strs = text.split('\n');
|
||||
let i=0;
|
||||
sa.push("<label>"+labels[i]+"<input type='text' name='"+names[i]+"' value='"+strs[i]+"'/></label>");
|
||||
for (i = 1; i < labels.length; i++){
|
||||
for (i = 0; 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.write(r);
|
||||
d.close();
|
||||
d.documentElement.innerHTML = r;
|
||||
}
|
||||
|
||||
if(d.body){
|
||||
var r=new XMLHttpRequest;
|
||||
r.onload=function(){
|
||||
var t=r.responseText;
|
||||
gen(t);
|
||||
}
|
||||
r.open("GET",location.href,!0);
|
||||
r.send(null);
|
||||
fetch(location.href)
|
||||
.then(res => res.text())
|
||||
.then(text => {
|
||||
gen(text);
|
||||
});
|
||||
}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-12T08:29:32+08:00</lastmod>
|
||||
<lastmod>2023-04-10T08:20:10+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
|
@ -14,48 +14,6 @@
|
|||
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>
|
||||
|
@ -69,6 +27,19 @@
|
|||
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>
|
||||
|
@ -98,6 +69,19 @@
|
|||
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>
|
||||
|
@ -113,7 +97,7 @@
|
|||
/>
|
||||
</url><url>
|
||||
<loc>/en/topposts/</loc>
|
||||
<lastmod>2023-04-12T07:51:47+08:00</lastmod>
|
||||
<lastmod>2023-04-03T17:49:38+08:00</lastmod>
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="zh"
|
||||
|
@ -210,7 +194,7 @@
|
|||
/>
|
||||
</url><url>
|
||||
<loc>/en/changelog/</loc>
|
||||
<lastmod>2023-04-12T07:51:47+08:00</lastmod>
|
||||
<lastmod>2023-04-03T17:49:38+08:00</lastmod>
|
||||
</url><url>
|
||||
<loc>/en/sitemap/</loc>
|
||||
<lastmod>2023-02-01T09:52:11+08:00</lastmod>
|
||||
|
@ -302,6 +286,22 @@
|
|||
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,16 +5,7 @@
|
|||
<link>/en/tags/</link>
|
||||
<description>Recent content in Tags on uweb browser: unlimited power</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<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>
|
||||
|
||||
<lastBuildDate>Mon, 20 Mar 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/index.xml" rel="self" type="application/rss+xml" />
|
||||
<item>
|
||||
<title>adblock</title>
|
||||
<link>/en/tags/adblock/</link>
|
||||
|
@ -42,6 +33,15 @@
|
|||
<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,18 +5,21 @@
|
|||
<link>/en/tags/redirection/</link>
|
||||
<description>Recent content in redirection on uweb browser: unlimited power</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<lastBuildDate>Tue, 11 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/redirection/index.xml" rel="self" type="application/rss+xml" />
|
||||
<lastBuildDate>Mon, 25 Apr 2022 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>Tue, 11 Apr 2023 00:00:00 +0000</pubDate>
|
||||
<pubDate>Mon, 25 Apr 2022 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;:
|
||||
<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.</description>
|
||||
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>
|
||||
|
||||
</channel>
|
||||
|
|
|
@ -64,12 +64,10 @@ github
|
|||
sourceforge
|
||||
powerfolder
|
||||
pagure
|
||||
Main features Change logs 991: global url redirection support.
|
||||
988: hosts file to support response headers.
|
||||
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.
|
||||
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.
|
||||
975: Bookmarks to support styling for markdown etc.
|
||||
971: multiple type profiles: switch any data including website logins, user configurations orthogonally.</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.</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<sitemap>
|
||||
<loc>en/sitemap.xml</loc>
|
||||
|
||||
<lastmod>2023-04-12T08:29:32+08:00</lastmod>
|
||||
<lastmod>2023-04-10T08:20:10+08:00</lastmod>
|
||||
|
||||
</sitemap>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
let labels = ["全局重定向网址","网页默认字体族","cursive字体族","Fantasy字体族","Fixed字体族","Sans-Serif字体族","Serif字体族"];
|
||||
let names = ["redirecturl","font","cursive","fantasy","fixed","sansserif","serif"];
|
||||
let labels = ["网页默认字体族","cursive字体族","Fantasy字体族","Fixed字体族","Sans-Serif字体族","Serif字体族"];
|
||||
let names = ["font","cursive","fantasy","fixed","sansserif","serif"];
|
||||
|
||||
let d=document;
|
||||
|
||||
|
@ -13,21 +13,18 @@ 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.redirecturl.value+
|
||||
'&'+ 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.font.value+
|
||||
'&'+ f.cursive.value +
|
||||
'&'+ f.fantasy.value +
|
||||
'&'+ f.fixed.value +
|
||||
'&'+ f.sansserif.value +
|
||||
'&'+ f.serif.value +
|
||||
':https://fastly.jsdelivr.net/gh/torappinfo/uweb/zh/searchurl/template/config.html';return false;" accept-charset=utf-8 >`];
|
||||
':https://fastly.jsdelivr.net/gh/torappinfo/uweb/searchurl/template/config.html';return false;" accept-charset=utf-8 >`];
|
||||
|
||||
function gen(text) {
|
||||
let strs = text.split('\n');
|
||||
let i=0;
|
||||
sa.push("<label>"+labels[i]+"<input type='text' name='"+names[i]+"' value='"+strs[i]+"'/></label>");
|
||||
for (i = 1; i < labels.length; i++){
|
||||
for (i = 0; i < labels.length; i++){
|
||||
sa.push("<label>"+labels[i]+"<input list='family' type='text' name='"+names[i]+"' value='"+strs[i]+"'/></label>");
|
||||
}
|
||||
|
||||
|
@ -38,13 +35,11 @@ function gen(text) {
|
|||
}
|
||||
|
||||
if(d.body){
|
||||
var r=new XMLHttpRequest;
|
||||
r.onload=function(){
|
||||
var t=r.responseText;
|
||||
gen(t);
|
||||
}
|
||||
r.open("GET",location.href,!0);
|
||||
r.send(null);
|
||||
fetch(location.href)
|
||||
.then(res => res.text())
|
||||
.then(text => {
|
||||
gen(text);
|
||||
});
|
||||
}else {
|
||||
let text = "\n".repeat(labels.length-1);
|
||||
gen(text);
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
%4%
|
||||
%5%
|
||||
%6%
|
||||
%7%
|
||||
|
||||
|
||||
|
||||
|
@ -22,4 +21,5 @@
|
|||
|
||||
|
||||
|
||||
<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 a new issue