From 7fdd0fc543922022c9cb6e4f46861f53890405a2 Mon Sep 17 00:00:00 2001 From: 8ball Date: Sun, 8 Nov 2026 23:39:00 +0330 Subject: [PATCH] v3.6.7: unwrap Bing ck/a and Google url= link wrappers before the own-domain filter, so native web_search returns organic sources --- index.js | 6 +++++- package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a708141..e45dff5 100644 --- a/index.js +++ b/index.js @@ -1379,7 +1379,11 @@ const SEARCH_EXTRACT = `(() => { const link = node.matches('a') ? node : node.closest('a'); if (!link) continue; let url = link.href; - if (/^\\/(url|link)\\?/.test(url)) { const m = url.match(/[?&](?:url|q)=([^&]+)/); if (m) { try { url = decodeURIComponent(m[1]); } catch {} } } + // Engines wrap organic URLs: Google /url?url=..., Bing /ck/a?u=a1. + // Unwrap first — then apply the own-domain filter, or the wrappers eat + // every real result. + { const m = url.match(/[?&]u=([^&]+)/); if (m) { let v = m[1]; if (v.startsWith('a1')) v = v.slice(2); try { const d = atob(v.replace(/-/g, '+').replace(/_/g, '/')); if (/^https?:/i.test(d)) url = d; } catch {} } } + { const m = url.match(/[?&](?:url|q)=([^&]+)/); if (m) { try { const d = decodeURIComponent(m[1]); if (/^https?:/i.test(d)) url = d; } catch {} } } if (!/^https?:/i.test(url) || seen.has(url) || selfUrl(url)) continue; const title = clean(link.innerText); if (!title || title.length < 4) continue; diff --git a/package.json b/package.json index 1b84acd..d8058e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@local/edge-kit-easy", - "version": "3.6.6", + "version": "3.6.7", "private": true, "type": "module", "description": "Edge Kit Browser — human-style browsing for agents in Edge, Chrome, or Firefox: see, click, type, video understanding, gameplay; live-attach-first over CDP/BiDi with a native settings page and the native web seam",