Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught (in promise) Error: Timeout #12

Open
muhamadfahmi2378 opened this issue Sep 6, 2023 · 0 comments
Open

Uncaught (in promise) Error: Timeout #12

muhamadfahmi2378 opened this issue Sep 6, 2023 · 0 comments

Comments

@muhamadfahmi2378
Copy link

Uncaught (in promise) Error: Timeout
Context
https://www.bing.com/search?q=Bing+AI&showconv=1&FORM=hpcodx&wlexpsignin=1
Stack Trace
bing.15abdc00.js:1 (anonymous function)
1
2 (()=>{const m={matches:["://www.bing.com/search"]};async function n(t,e){return new Promise((c,o)=>{if(t.querySelector(e))c(t.querySelector(e));else{const a=new MutationObserver(u=>{u.forEach(l=>{l.type==="childList"&&t.querySelector(e)&&(c(t.querySelector(e)),a.disconnect(),clearTimeout(r))})});a.observe(t,{childList:!0,subtree:!0});const r=setTimeout(()=>{a.disconnect(),o(new Error("Timeout"))},1e4)}})}async function i(){const e=(await n(document,"cib-serp[serp-slot='none']")).shadowRoot,o=(await n(e,"cib-action-bar")).shadowRoot;(await n(o,"textarea[maxlength]")).removeAttribute("maxlength");const r=await n(o,".letter-counter");r.childNodes[r.childNodes.length-1].textContent="\u221E"}async function d(){const t=document.createElement("li"),e=document.createElement("iframe");t.style="width: 100%; height: 1200px;",e.src="https://edgeservices.bing.com/edgesvc/compose",e.csp="frame-src https://www.bing.com/search https://edgeservices.bing.com/; base-uri 'self'; require-trusted-types-for 'script';",e.style="width: 100%; height: 100%; border: none;",t.appendChild(e),(await n(document,"#b_content")).querySelectorAll("aside")[0].querySelector("#b_context").appendChild(t)}async function s(){i(),d()}window.addEventListener("load",s),window.addEventListener("popstate",s)})();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant