enhance :0cc cookie copy

This commit is contained in:
James Feng Cao 2023-04-10 08:23:51 +08:00
parent 6a726e893c
commit cb565e5567
12 changed files with 167 additions and 152 deletions

View File

@ -77,14 +77,14 @@ Access-Control-Allow-Origin;https://www.bing.com;Access-Control-Allow-Credential
104.21.8.195;Access-Control-Allow-Origin;https://www.bing.com;Access-Control-Allow-Credentials;true uweb.torapp.eu.org</p>
</li>
</ul>
<p><a href="file:///data/data/info.torapp.uweb/files/default.hosts">&quot;default.hosts&quot;</a> blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as &quot;yahoo.com&quot; and &quot;finance.yahoo.com&quot;. If the length of the last 2 segments is less than 7, such as &quot;com.pl&quot;, then it is treated as one segment, so domains like &quot;xxx.xxx.com.pl&quot; are also valid in the hosts file.</p>
<p><a href="file:///data/data/info.torapp.uweb/files/default.hosts">&quot;default.hosts&quot;</a> blocks whole domain trees including all descendant domains. The domains in the hosts file must be 2 or 3 segment domains, such as &quot;yahoo.com&quot; and &quot;finance.yahoo.com&quot;. If the length of the last 2 segments is less than 7, such as &quot;com.pl&quot;, then it is treated as one segment, so domains like &quot;xxx.xxx.com.pl&quot; are also valid in the hosts file.</p>
<p>Each line of the hosts file has the following format:<br>
[rootDomain][space][regex for domain prefix before rootDomain][space][regex for the whole url without &quot;http(s)://&quot;]<br>
The first part [rootDomain] is required and the others are optional. regex is java-grammar regular expression. If the second regex is used, it is recommended to merge the first regex to the second one for performance.</p>
</div>
<p>Last Modified: 7 April 2023<br>
add bing.js for cf &amp; deno<br>
<p>Last Modified: 8 April 2023<br>
add cloudflare/bing.js<br>
<pre></pre>
</p>

View File

@ -49,8 +49,8 @@
</ul>
<p>Click the following links to install menus popped by long pressing the bookmark button (with star as icon):<br>
<a href="i:0gdefault.link:../searchurl/txt/link.cfg">Select All:CTRL-A/undo:CTRL-Z/Redo:CTRL-Y</a><br>
<a href="i:0gdefault.link::Extend cookies::0000%0A">Extend site cookies to 10 years</a><br>
<a href="i:0gdefault.link::Clear cookies::00000%0A">Clear site cookies</a></p>
<a href="i:0gdefault.link::Extend cookies::0cc;Max-Age=315360000%0A">Extend site cookies to 10 years</a><br>
<a href="i:0gdefault.link::Clear cookies::0cc;Max-Age=0%0A">Clear site cookies</a></p>
<p><a href="i:0gdefault.link::vpn:i:1dandroid.net.vpn.SETTINGS:::%0A">VPN</a></p>
<p><a href="i:0gdefault.link::profile_config::cprofile . files .conf%0A">Switch configuration</a></p>
<p><a href="i:0gdefault.link::Wait msg:i:1w%0A">Wait for network msg</a></p>
@ -78,10 +78,6 @@ noproxy::010:</p>
<h3 id="special-links-beginning-with-">special links beginning with ':'</h3>
<ul>
<li>
<p>:0000<br>
Extend cookie expiracy to 70 years, may be denied by server.</p>
</li>
<li>
<p>:0003<br>
Toggle fullscreen mode</p>
</li>
@ -106,8 +102,8 @@ Config http proxy, &quot;:010:&quot; to disable any proxy.</p>
Socks proxy</p>
</li>
<li>
<p>:0cc[url1]:[url2]<br>
cookie copy from url1 to url2</p>
<p>:0cc[url1]:[url2][:;[cookie attributes]]<br>
cookie copy from url1 to url2, the last part &quot;[:;[cookie attributes]]&quot; is optionable.</p>
</li>
</ul>
<h4 id="commands">commands</h4>
@ -302,8 +298,8 @@ use &quot;i:0mi:92Host;209.216.230.240::https://news.ycombinator.com&quot; to vi
</ul>
</div>
<p>Last Modified: 1 April 2023<br>
use [ipv6] in hosts<br>
<p>Last Modified: 10 April 2023<br>
enhance :0cc cookie copy<br>
<pre>i:56 urls support CTRL_A to CTRL-Z
</pre>
</p>

View File

@ -76,7 +76,7 @@
<script>
async function getMagicUrl() {
let v = localStorage.GoGoUrl;
if(v) return v;
if(v && v.startsWith("http")) return v;
return "https://mybing2.xn--xyza.top/";
}
</script>

View File

@ -0,0 +1,27 @@
export default {
async fetch(req, _env) {
let url = req.url;
let iSlash = url.indexOf('/',11);
let nUrl = url.substring(iSlash+1);
return goUrl(req, nUrl);
}
}
function goUrl(request, url) {
let fp = {
method: request.method,
headers: {}
}
let reqHeaders = new Headers(request.headers);
let dropHeaders = ["cookie","user-agent","accept","accept-language"];
let he = reqHeaders.entries();
for (let h of he) {
let key = h[0],
value = h[1];
if (dropHeaders.includes(key)) {
fp.headers[key] = value;
}
}
return fetch(url, fp);
}

View File

@ -1,4 +1,4 @@
import { serve } from "https://deno.land/std@0.140.0/http/server.ts";
import { serve } from "https://deno.land/std/http/server.ts";
async function handler(req: Request): Promise<Response> {
let url = req.url;
let iSlash = url.indexOf('/',11);

View File

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/en/_posts/</loc>
<lastmod>2023-04-07T18:05:06+08:00</lastmod>
<lastmod>2023-04-10T08:20:10+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -29,7 +29,7 @@
/>
</url><url>
<loc>/en/</loc>
<lastmod>2023-04-07T18:05:06+08:00</lastmod>
<lastmod>2023-04-10T08:20:10+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -42,7 +42,7 @@
/>
</url><url>
<loc>/en/links/</loc>
<lastmod>2023-04-01T08:54:03+08:00</lastmod>
<lastmod>2023-04-10T08:20:10+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -55,10 +55,10 @@
/>
</url><url>
<loc>/en/tags/adblock/</loc>
<lastmod>2023-04-07T18:05:06+08:00</lastmod>
<lastmod>2023-04-08T17:53:21+08:00</lastmod>
</url><url>
<loc>/en/adblock_domain/</loc>
<lastmod>2023-04-07T18:05:06+08:00</lastmod>
<lastmod>2023-04-08T17:53:21+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -71,7 +71,7 @@
/>
</url><url>
<loc>/en/tags/</loc>
<lastmod>2023-04-07T18:05:06+08:00</lastmod>
<lastmod>2023-04-08T17:53:21+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"

View File

@ -4,14 +4,14 @@
<sitemap>
<loc>en/sitemap.xml</loc>
<lastmod>2023-04-07T18:05:06+08:00</lastmod>
<lastmod>2023-04-10T08:20:10+08:00</lastmod>
</sitemap>
<sitemap>
<loc>zh/sitemap.xml</loc>
<lastmod>2023-04-07T14:38:07+08:00</lastmod>
<lastmod>2023-04-10T08:19:24+08:00</lastmod>
</sitemap>

View File

@ -5,7 +5,55 @@
<link>/zh/_posts/</link>
<description>Recent content in _posts on 超微浏览器: 威、快、高效、极致优化</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Sat, 04 Mar 2023 00:00:00 +0000</lastBuildDate><atom:link href="/zh/_posts/index.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Mon, 10 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="/zh/_posts/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>常用链接</title>
<link>/zh/links/</link>
<pubDate>Mon, 10 Apr 2023 00:00:00 +0000</pubDate>
<guid>/zh/links/</guid>
<description>点击以下链接可安装至常用链接:
VPN
showCookie
wireless
显示网站安全证书
上传坚果云
更多 webdav ...
迅雷盘离线
网页全屏
点击安装Cookie延期地址栏内删除特殊字符站内搜索seedr离线下载等
点击安装离线下载(pcloud,furk,微云等)
uweb浏览器中长按书签按钮可弹出常用链接菜单这些链接定义在文件&amp;quot;default.link&amp;quot;中,改动过的文件清后台重启动后生效。每行格式如下:
[菜单名]:[url][空格][javascript脚本]
其中空格及之后的脚本为可选项。url及之后的脚本支持&amp;quot;%u&amp;quot;,&amp;quot;%s&amp;quot;等替换。
脚本将在链接访问结束时自动执行。
url除支持所有标准的http(s):,javascript:等链接外,还支持超微内部链接(&amp;quot;:&amp;quot;为链接第二个字符)及特殊链接(&amp;quot;:&amp;quot;为链接首字符)。
不少本地链接文件(file:///)超微浏览器将会做特殊处理。仅举几例说明:
.js文件(同长按链接运行js文件): 首行前两个字符为&amp;quot;//&amp;quot;者,超微将打开&amp;quot;//&amp;quot;后面的目标网址并执行此文件代码,目标网址支持&amp;quot;%u&amp;quot;,&amp;quot;%s&amp;quot;等替换。否则直接执行此文件。此时[javascript脚本]将作为运行.js文件的參数arguments[1]。推荐将常用js脚本本地链接保存在.link文件中。
default.gesture及default.button文件采用了完全一样的格式。.gesture文件定义了手势操作。.button文件则从最后一个按钮开始倒着重定义了底部工具栏按钮单击操作。
各类代理配置如下:
httpproxy::010[proxy host]:[port]
socks5::011[socks host]:[port]
noproxy::010:
&amp;quot;:&amp;quot;为首字符特殊链接 :0001
自动翻到上一页。(网页无法前进时按前进按钮可自动翻到下一页。)
:0003
切换全屏模式
:0004
屏幕旋转
:001[fileurl]
加入媒体库
:002[url]
显示此url下安全cookie
:010[proxy host]:[port]
设置http代理, &amp;quot;:010:&amp;quot;禁用代理。
:011[socks host]:[port]
socks代理
&amp;quot;i:&amp;quot;内部链接: i:0m[bookmarklet index|prefix|c[cssFlag]]:[url]
将url作为网站访问[bookmarklet index]至少占两个字符。
c[cssFlag]: For example, &amp;quot;c12&amp;quot; will apply the third and fourth global CSS (12=2^2+2^3). All other cases will be treated as prefix, the real visited url is &amp;quot;[prefix]+url&amp;quot;.</description>
</item>
<item>
<title>小技巧</title>
<link>/zh/tips/</link>
@ -209,56 +257,6 @@ gozer 广告屏蔽样式
对这一部分不良信息而言,我们可以利用超微浏览器的自定义样式功能加以屏蔽。</description>
</item>
<item>
<title>常用链接</title>
<link>/zh/links/</link>
<pubDate>Tue, 10 May 2022 00:00:00 +0000</pubDate>
<guid>/zh/links/</guid>
<description>点击以下链接可安装至常用链接:
VPN
showCookie
wireless
显示网站安全证书
上传坚果云
更多 webdav ...
迅雷盘离线
网页全屏
点击安装Cookie延期地址栏内删除特殊字符站内搜索seedr离线下载等
点击安装离线下载(pcloud,furk,微云等)
uweb浏览器中长按书签按钮可弹出常用链接菜单这些链接定义在文件&amp;quot;default.link&amp;quot;中,改动过的文件清后台重启动后生效。每行格式如下:
[菜单名]:[url][空格][javascript脚本]
其中空格及之后的脚本为可选项。url及之后的脚本支持&amp;quot;%u&amp;quot;,&amp;quot;%s&amp;quot;等替换。
脚本将在链接访问结束时自动执行。
url除支持所有标准的http(s):,javascript:等链接外,还支持超微内部链接(&amp;quot;:&amp;quot;为链接第二个字符)及特殊链接(&amp;quot;:&amp;quot;为链接首字符)。
不少本地链接文件(file:///)超微浏览器将会做特殊处理。仅举几例说明:
.js文件(同长按链接运行js文件): 首行前两个字符为&amp;quot;//&amp;quot;者,超微将打开&amp;quot;//&amp;quot;后面的目标网址并执行此文件代码,目标网址支持&amp;quot;%u&amp;quot;,&amp;quot;%s&amp;quot;等替换。否则直接执行此文件。此时[javascript脚本]将作为运行.js文件的參数arguments[1]。推荐将常用js脚本本地链接保存在.link文件中。
default.gesture及default.button文件采用了完全一样的格式。.gesture文件定义了手势操作。.button文件则从最后一个按钮开始倒着重定义了底部工具栏按钮单击操作。
各类代理配置如下:
httpproxy::010[proxy host]:[port]
socks5::011[socks host]:[port]
noproxy::010:
&amp;quot;:&amp;quot;为首字符特殊链接 :0000
Cookie延期至70年但服务器有可能否决。
:0001
自动翻到上一页。(网页无法前进时按前进按钮可自动翻到下一页。)
:0003
切换全屏模式
:0004
屏幕旋转
:001[fileurl]
加入媒体库
:002[url]
显示此url下安全cookie
:010[proxy host]:[port]
设置http代理, &amp;quot;:010:&amp;quot;禁用代理。
:011[socks host]:[port]
socks代理
&amp;quot;i:&amp;quot;内部链接: i:0m[bookmarklet index|prefix|c[cssFlag]]:[url]
将url作为网站访问[bookmarklet index]至少占两个字符。
c[cssFlag]: For example, &amp;quot;c12&amp;quot; will apply the third and fourth global CSS (12=2^2+2^3). All other cases will be treated as prefix, the real visited url is &amp;quot;[prefix]+url&amp;quot;.</description>
</item>
<item>
<title>重定向网址至国内镜像</title>
<link>/zh/redirect/</link>

View File

@ -99,6 +99,12 @@
</li>
<li class="post">
<a href="links/index.html">
<span>常用链接</span>
</a>
</li>
<li class="post">
<a href="tips/index.html">
<span>小技巧</span>
@ -147,12 +153,6 @@
</a>
</li>
<li class="post">
<a href="links/index.html">
<span>常用链接</span>
</a>
</li>
<li class="post">
<a href="redirect/index.html">
<span>重定向网址至国内镜像</span>

View File

@ -5,7 +5,55 @@
<link>/zh/</link>
<description>Recent content on 超微浏览器: 威、快、高效、极致优化</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Sat, 04 Mar 2023 00:00:00 +0000</lastBuildDate><atom:link href="/zh/index.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Mon, 10 Apr 2023 00:00:00 +0000</lastBuildDate><atom:link href="/zh/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>常用链接</title>
<link>/zh/links/</link>
<pubDate>Mon, 10 Apr 2023 00:00:00 +0000</pubDate>
<guid>/zh/links/</guid>
<description>点击以下链接可安装至常用链接:
VPN
showCookie
wireless
显示网站安全证书
上传坚果云
更多 webdav ...
迅雷盘离线
网页全屏
点击安装Cookie延期地址栏内删除特殊字符站内搜索seedr离线下载等
点击安装离线下载(pcloud,furk,微云等)
uweb浏览器中长按书签按钮可弹出常用链接菜单这些链接定义在文件&amp;quot;default.link&amp;quot;中,改动过的文件清后台重启动后生效。每行格式如下:
[菜单名]:[url][空格][javascript脚本]
其中空格及之后的脚本为可选项。url及之后的脚本支持&amp;quot;%u&amp;quot;,&amp;quot;%s&amp;quot;等替换。
脚本将在链接访问结束时自动执行。
url除支持所有标准的http(s):,javascript:等链接外,还支持超微内部链接(&amp;quot;:&amp;quot;为链接第二个字符)及特殊链接(&amp;quot;:&amp;quot;为链接首字符)。
不少本地链接文件(file:///)超微浏览器将会做特殊处理。仅举几例说明:
.js文件(同长按链接运行js文件): 首行前两个字符为&amp;quot;//&amp;quot;者,超微将打开&amp;quot;//&amp;quot;后面的目标网址并执行此文件代码,目标网址支持&amp;quot;%u&amp;quot;,&amp;quot;%s&amp;quot;等替换。否则直接执行此文件。此时[javascript脚本]将作为运行.js文件的參数arguments[1]。推荐将常用js脚本本地链接保存在.link文件中。
default.gesture及default.button文件采用了完全一样的格式。.gesture文件定义了手势操作。.button文件则从最后一个按钮开始倒着重定义了底部工具栏按钮单击操作。
各类代理配置如下:
httpproxy::010[proxy host]:[port]
socks5::011[socks host]:[port]
noproxy::010:
&amp;quot;:&amp;quot;为首字符特殊链接 :0001
自动翻到上一页。(网页无法前进时按前进按钮可自动翻到下一页。)
:0003
切换全屏模式
:0004
屏幕旋转
:001[fileurl]
加入媒体库
:002[url]
显示此url下安全cookie
:010[proxy host]:[port]
设置http代理, &amp;quot;:010:&amp;quot;禁用代理。
:011[socks host]:[port]
socks代理
&amp;quot;i:&amp;quot;内部链接: i:0m[bookmarklet index|prefix|c[cssFlag]]:[url]
将url作为网站访问[bookmarklet index]至少占两个字符。
c[cssFlag]: For example, &amp;quot;c12&amp;quot; will apply the third and fourth global CSS (12=2^2+2^3). All other cases will be treated as prefix, the real visited url is &amp;quot;[prefix]+url&amp;quot;.</description>
</item>
<item>
<title>小技巧</title>
<link>/zh/tips/</link>
@ -386,56 +434,6 @@ gozer 广告屏蔽样式
对这一部分不良信息而言,我们可以利用超微浏览器的自定义样式功能加以屏蔽。</description>
</item>
<item>
<title>常用链接</title>
<link>/zh/links/</link>
<pubDate>Tue, 10 May 2022 00:00:00 +0000</pubDate>
<guid>/zh/links/</guid>
<description>点击以下链接可安装至常用链接:
VPN
showCookie
wireless
显示网站安全证书
上传坚果云
更多 webdav ...
迅雷盘离线
网页全屏
点击安装Cookie延期地址栏内删除特殊字符站内搜索seedr离线下载等
点击安装离线下载(pcloud,furk,微云等)
uweb浏览器中长按书签按钮可弹出常用链接菜单这些链接定义在文件&amp;quot;default.link&amp;quot;中,改动过的文件清后台重启动后生效。每行格式如下:
[菜单名]:[url][空格][javascript脚本]
其中空格及之后的脚本为可选项。url及之后的脚本支持&amp;quot;%u&amp;quot;,&amp;quot;%s&amp;quot;等替换。
脚本将在链接访问结束时自动执行。
url除支持所有标准的http(s):,javascript:等链接外,还支持超微内部链接(&amp;quot;:&amp;quot;为链接第二个字符)及特殊链接(&amp;quot;:&amp;quot;为链接首字符)。
不少本地链接文件(file:///)超微浏览器将会做特殊处理。仅举几例说明:
.js文件(同长按链接运行js文件): 首行前两个字符为&amp;quot;//&amp;quot;者,超微将打开&amp;quot;//&amp;quot;后面的目标网址并执行此文件代码,目标网址支持&amp;quot;%u&amp;quot;,&amp;quot;%s&amp;quot;等替换。否则直接执行此文件。此时[javascript脚本]将作为运行.js文件的參数arguments[1]。推荐将常用js脚本本地链接保存在.link文件中。
default.gesture及default.button文件采用了完全一样的格式。.gesture文件定义了手势操作。.button文件则从最后一个按钮开始倒着重定义了底部工具栏按钮单击操作。
各类代理配置如下:
httpproxy::010[proxy host]:[port]
socks5::011[socks host]:[port]
noproxy::010:
&amp;quot;:&amp;quot;为首字符特殊链接 :0000
Cookie延期至70年但服务器有可能否决。
:0001
自动翻到上一页。(网页无法前进时按前进按钮可自动翻到下一页。)
:0003
切换全屏模式
:0004
屏幕旋转
:001[fileurl]
加入媒体库
:002[url]
显示此url下安全cookie
:010[proxy host]:[port]
设置http代理, &amp;quot;:010:&amp;quot;禁用代理。
:011[socks host]:[port]
socks代理
&amp;quot;i:&amp;quot;内部链接: i:0m[bookmarklet index|prefix|c[cssFlag]]:[url]
将url作为网站访问[bookmarklet index]至少占两个字符。
c[cssFlag]: For example, &amp;quot;c12&amp;quot; will apply the third and fourth global CSS (12=2^2+2^3). All other cases will be treated as prefix, the real visited url is &amp;quot;[prefix]+url&amp;quot;.</description>
</item>
<item>
<title>运行javascript脚本</title>
<link>/zh/rjs/</link>

View File

@ -73,10 +73,6 @@ noproxy::010:</p>
<h3 id="为首字符特殊链接">&quot;:&quot;为首字符特殊链接</h3>
<ul>
<li>
<p>:0000<br>
Cookie延期至70年但服务器有可能否决。</p>
</li>
<li>
<p>:0001<br>
自动翻到上一页。(网页无法前进时按前进按钮可自动翻到下一页。)</p>
</li>
@ -249,8 +245,8 @@ use &quot;i:0mi:92Host;209.216.230.240::https://news.ycombinator.com&quot; to vi
</ul>
</div>
<p>Last Modified: 4 April 2023<br>
add showCookie<br>
<p>Last Modified: 10 April 2023<br>
enhance :0cc cookie copy<br>
<pre></pre>
</p>

View File

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/zh/_posts/</loc>
<lastmod>2023-04-07T14:38:07+08:00</lastmod>
<lastmod>2023-04-10T08:19:24+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -14,9 +14,22 @@
hreflang="zh"
href="/zh/_posts/"
/>
</url><url>
<loc>/zh/links/</loc>
<lastmod>2023-04-10T08:19:24+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/links/"
/>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/links/"
/>
</url><url>
<loc>/zh/</loc>
<lastmod>2023-04-07T14:38:07+08:00</lastmod>
<lastmod>2023-04-10T08:19:24+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -218,19 +231,6 @@
</url><url>
<loc>/zh/adblock_css/</loc>
<lastmod>2022-09-24T14:06:03+08:00</lastmod>
</url><url>
<loc>/zh/links/</loc>
<lastmod>2023-04-04T10:48:55+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
href="/en/links/"
/>
<xhtml:link
rel="alternate"
hreflang="zh"
href="/zh/links/"
/>
</url><url>
<loc>/zh/rjs/</loc>
<lastmod>2023-03-01T16:37:19+08:00</lastmod>