Compare commits

...

3 commits

Author SHA1 Message Date
James Feng Cao
e20a424290 update bing.html 2023-04-02 11:33:29 +08:00
James Feng Cao
cd7f1f9cea minor changes in tips 2023-04-02 10:39:13 +08:00
James Feng Cao
b01672cb48 refine bingAI UI 2023-04-02 09:52:12 +08:00
14 changed files with 63 additions and 33 deletions

View file

@ -89,9 +89,9 @@ Bookmarks with secrets (POST instead of GET) The search engine (&amp;quot;.</des
PC button + option &amp;quot;wide viewport&amp;quot; + global js &amp;quot;force page resizable&amp;quot;.
Playing audio when screen off
Option &amp;quot;Floating video&amp;quot; + video fullscreen playing
** Use POST-type search engine as bookmark to auto login **
Use POST-type search engine as bookmark to auto login
Multiple home screens and Next/Prev page:
home5.html, home6.mht(or .html or .search), home7.mht(or .html or .search), ... can be visited via pressing the right arrow button while home4.mht(or .html or .</description>
home5.html, home6.mht(or .html or .search), home7.mht(or .html or .search), ... can be visited via pressing the right arrow button while home4.mht(or .html or .search), home3.</description>
</item>
<item>

View file

@ -135,9 +135,9 @@ Bookmarks with secrets (POST instead of GET) The search engine (&amp;quot;.</des
PC button + option &amp;quot;wide viewport&amp;quot; + global js &amp;quot;force page resizable&amp;quot;.
Playing audio when screen off
Option &amp;quot;Floating video&amp;quot; + video fullscreen playing
** Use POST-type search engine as bookmark to auto login **
Use POST-type search engine as bookmark to auto login
Multiple home screens and Next/Prev page:
home5.html, home6.mht(or .html or .search), home7.mht(or .html or .search), ... can be visited via pressing the right arrow button while home4.mht(or .html or .</description>
home5.html, home6.mht(or .html or .search), home7.mht(or .html or .search), ... can be visited via pressing the right arrow button while home4.mht(or .html or .search), home3.</description>
</item>
<item>

View file

@ -97,7 +97,7 @@
</div>
<p>Last Modified: 1 April 2023<br>
fix &lt;a&gt; tag with href &amp; onclick for README<br>
sync newbinggogo<br>
<pre></pre>
</p>

View file

@ -7,7 +7,7 @@
<title id="docTitle">NewBingGoGo</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.2.0/github-markdown.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.4/katex.min.css">
<link rel="stylesheet" href="./css/bing.css">
<link rel="stylesheet" href="https://gitee.com/jamesfengcao/uweb/raw/master/en/searchurl/bingAI/css/bing.css">
</head>
<body>
@ -74,6 +74,13 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/4.3.0/marked.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.4/katex.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.4/contrib/auto-render.min.js"></script>
<script>
async function getMagicUrl() {
let v = localStorage.GoGoUrl;
if(v) return v;
return "https://mybing2.xn--xyza.top/";
}
</script>
<script src="./js/GetSet.js"></script>
<script src="./js/ChatMessages.js"></script>
<script src="./js/bingChatHub.js"></script>

View file

@ -2,12 +2,6 @@ async function setMagicUrl(url) {
localStorage.setItem('GoGoUrl',url);
}
async function getMagicUrl() {
let v = localStorage.GoGoUrl;
if(v) return v;
return "https://mybing2.xn--xyza.top/";
}
// ture:开启使用魔法聊天|false:关闭使用魔法聊天|'repeat':开启聊天复用
async function setChatHubWithMagic(user) {
localStorage.setItem('ChatHubWithMagic',user);

View file

@ -44,11 +44,15 @@ var throttling = {
function porserType2Item(item){
let chatDiv = document.getElementById('chat');
if(item.result){
if(item.result.value=='Success'){
let result = item.result;
if(result.value=='Success'){
}else if (item.result.value == 'Throttled') {
addError(item.result.message);
}else if (result.value == 'Throttled') {
addError(result.message);
addError('24消息请求数达到了限制');
}else{
addError(result.message);
addError('发生未知错误!');
}
}
if (item.throttling) {
@ -112,9 +116,16 @@ function porserMessages(messages, father) {
}else if (message.messageType == 'RenderCardRequest'){//渲染卡片请求,目前不知道有什么用
renderCardRequest(message, father);
}else if(message.messageType == 'Disengaged'){
let div = getByID(message.messageId, 'div', chat, 'error');
div.innerHTML = `
${message.hiddenText}<br>聊天中断试试开始新主题
`;
}else if(message.contentOrigin == 'TurnLimiter'){
addError(message.text);
addError('聊天被限制了,试试开始新主题?');
} else {
console.log('发现一个另类message', JSON.stringify(message));
}
@ -232,7 +243,7 @@ function generateContentQueryImg(message, father){
img.src = imgs[el].src;
theUrls.append('imgs',img.src.split('?')[0]);
img.onclick = ()=>{
window.open('GeneratePicture/img.html?'+theUrls.toString(), '_blank');
window.open('chrome-extension://'+chrome.runtime.id+'/GeneratePicture/img.html?'+theUrls.toString(), '_blank');
}
father.appendChild(img);
}

View file

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/en/_posts/</loc>
<lastmod>2023-04-01T21:06:06+08:00</lastmod>
<lastmod>2023-04-02T10:37:42+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -29,7 +29,7 @@
/>
</url><url>
<loc>/en/</loc>
<lastmod>2023-04-01T23:32:56+08:00</lastmod>
<lastmod>2023-04-02T10:37:42+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -162,7 +162,7 @@
/>
</url><url>
<loc>/en/tips/</loc>
<lastmod>2023-03-23T22:38:58+08:00</lastmod>
<lastmod>2023-04-02T10:37:42+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"

View file

@ -51,7 +51,7 @@
PC button + option &quot;wide viewport&quot; + global js &quot;force page resizable&quot;.</p>
<p><strong>Playing audio when screen off</strong><br>
Option &quot;Floating video&quot; + video fullscreen playing</p>
<p>** <a href="../bookmark/index.html">Use POST-type search engine as bookmark to auto login</a> **</p>
<p><a href="../bookmark/index.html"><b>Use POST-type search engine as bookmark to auto login</b></a></p>
<p><strong>Multiple home screens and Next/Prev page</strong>:<br>
home5.html, home6.mht(or .html or .search), home7.mht(or .html or .search), ... can be visited via pressing the right arrow button while home4.mht(or .html or .search), home3.mht(or .html or .search) ... with long pressing the left arrow.</p>
<p>Click download button on the bottom toolbar to save remote webpage, the resulted offline file can be used as one of the home screens.</p>
@ -59,8 +59,8 @@ home5.html, home6.mht(or .html or .search), home7.mht(or .html or .search), ...
With <a href="../bookmark/index.html">bookmark</a>, configuration folders can be symbolic linked to other public folders or managed by 3rd party file managers via termux.</p>
</div>
<p>Last Modified: 23 March 2023<br>
add option https to func.html<br>
<p>Last Modified: 2 April 2023<br>
sync newbinggogo<br>
<pre></pre>
</p>

View file

@ -4,14 +4,14 @@
<sitemap>
<loc>en/sitemap.xml</loc>
<lastmod>2023-04-01T23:32:56+08:00</lastmod>
<lastmod>2023-04-02T10:37:42+08:00</lastmod>
</sitemap>
<sitemap>
<loc>zh/sitemap.xml</loc>
<lastmod>2023-04-01T23:39:33+08:00</lastmod>
<lastmod>2023-04-02T10:01:58+08:00</lastmod>
</sitemap>

View file

@ -13,7 +13,13 @@
<guid>/zh/tips/</guid>
<description>免魔法直接使用newbing (chatgpt)
总要求:长按底部&amp;quot;PC&amp;quot;按钮选择user-agent为&amp;quot;edge&amp;quot;。用户需登录微软网站比如cn.bing.com帐号已经开通newbing。
方法1: bingChat自带魔法直接界面
要求: 安装界面html
勾选选项“使用离线缓存”
复制bing.com cookies至魔法域名
点击界面入口
可配置魔法url, 详情
方法2: 可以采用超级书签/直接界面+脚本+hosts。
其中超级书签固定bingchat入口。
脚本重定向api至魔法师.

View file

@ -13,7 +13,13 @@
<guid>/zh/tips/</guid>
<description>免魔法直接使用newbing (chatgpt)
总要求:长按底部&amp;quot;PC&amp;quot;按钮选择user-agent为&amp;quot;edge&amp;quot;。用户需登录微软网站比如cn.bing.com帐号已经开通newbing。
方法1: bingChat自带魔法直接界面
要求: 安装界面html
勾选选项“使用离线缓存”
复制bing.com cookies至魔法域名
点击界面入口
可配置魔法url, 详情
方法2: 可以采用超级书签/直接界面+脚本+hosts。
其中超级书签固定bingchat入口。
脚本重定向api至魔法师.

View file

@ -85,7 +85,7 @@
</div>
<p>Last Modified: 1 April 2023<br>
fix &lt;a&gt; tag with href &amp; onclick for README<br>
sync newbinggogo<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-01T20:51:06+08:00</lastmod>
<lastmod>2023-04-02T10:01:58+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -16,7 +16,7 @@
/>
</url><url>
<loc>/zh/</loc>
<lastmod>2023-04-01T23:39:33+08:00</lastmod>
<lastmod>2023-04-02T10:01:58+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"
@ -29,7 +29,7 @@
/>
</url><url>
<loc>/zh/tips/</loc>
<lastmod>2023-04-01T20:51:06+08:00</lastmod>
<lastmod>2023-04-02T10:01:58+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="en"

View file

@ -47,10 +47,16 @@
<ul class="tags">
</ul>
<p><strong>免魔法直接使用newbing (chatgpt)</strong></p>
<p><strong>免魔法直接使用newbing (chatgpt)</strong><br>
总要求:长按底部&quot;PC&quot;按钮选择user-agent为&quot;edge&quot;。用户需登录微软网站比如cn.bing.com帐号已经开通newbing。</p>
<ul>
<li>
<p>方法1: <a href="../../en/offlinecache/index.html">bingChat自带魔法直接界面</a></p>
<p>方法1: <a href="../../en/offlinecache/index.html">bingChat自带魔法直接界面</a><br>
要求: 安装界面html<br>
勾选选项“使用离线缓存”<br>
复制bing.com cookies至魔法域名<br>
点击界面入口<br>
可配置魔法url, <a href="https://gitee.com/jja8/NewBingGoGo/blob/master/docs/%E5%88%9B%E5%BB%BA%E8%87%AA%E5%B7%B1%E7%9A%84%E9%AD%94%E6%B3%95%E9%93%BE%E6%8E%A5.md">详情</a></p>
</li>
<li>
<p>方法2: 可以采用超级书签/直接界面+脚本+hosts。<br>
@ -78,8 +84,8 @@ UA为非默认时点击PC按钮将恢复UA为默认同时触发不保存UA
<a href="../filenames">配置文件列表</a>中直接点击文件名即可编辑。</p>
</div>
<p>Last Modified: 1 April 2023<br>
add bingAI UI<br>
<p>Last Modified: 2 April 2023<br>
sync newbinggogo<br>
<pre></pre>
</p>