Skip to content

Commit 1eb9f30

Browse files
author
SentienceDEV
committed
Merge pull request #61 from SentienceAPI/sync-extension-v2.0.4
Sync Extension: v2.0.4
2 parents 4391af8 + 4b91578 commit 1eb9f30

3 files changed

Lines changed: 60 additions & 49 deletions

File tree

sentience-chrome/injected_api.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,17 +726,23 @@
726726
}
727727

728728
console.log(`[SentienceAPI] Found ${iframes.length} iframe(s), requesting snapshots...`);
729-
730729
// Request snapshot from each iframe
731730
const iframePromises = iframes.map((iframe, idx) => {
731+
// OPTIMIZATION: Skip common ad domains to save time
732+
const src = iframe.src || '';
733+
if (src.includes('doubleclick') || src.includes('googleadservices') || src.includes('ads system')) {
734+
console.log(`[SentienceAPI] Skipping ad iframe: ${src.substring(0, 30)}...`);
735+
return Promise.resolve(null);
736+
}
737+
732738
return new Promise((resolve) => {
733739
const requestId = `iframe-${idx}-${Date.now()}`;
734740

735741
// 1. EXTENDED TIMEOUT (Handle slow children)
736742
const timeout = setTimeout(() => {
737743
console.warn(`[SentienceAPI] ⚠️ Iframe ${idx} snapshot TIMEOUT (id: ${requestId})`);
738744
resolve(null);
739-
}, 10000); // Increased to 10s to handle slow processing
745+
}, 5000); // Increased to 5s to handle slow processing
740746

741747
// 2. ROBUST LISTENER with debugging
742748
const listener = (event) => {
@@ -1036,6 +1042,10 @@
10361042
return {
10371043
status: "success",
10381044
url: window.location.href,
1045+
viewport: {
1046+
width: window.innerWidth,
1047+
height: window.innerHeight
1048+
},
10391049
elements: cleanedElements,
10401050
raw_elements: cleanedRawElements,
10411051
screenshot: screenshot

sentience-chrome/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Sentience Semantic Visual Grounding Extractor",
4-
"version": "2.0.2",
4+
"version": "2.0.4",
55
"description": "Extract semantic visual grounding data from web pages",
66
"permissions": ["activeTab", "scripting"],
77
"host_permissions": ["<all_urls>"],

sentience-chrome/release.json

Lines changed: 47 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
{
2-
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/273025127",
3-
"assets_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/273025127/assets",
4-
"upload_url": "https://uploads.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/273025127/assets{?name,label}",
5-
"html_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/tag/v2.0.3",
6-
"id": 273025127,
2+
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/273046101",
3+
"assets_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/273046101/assets",
4+
"upload_url": "https://uploads.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/273046101/assets{?name,label}",
5+
"html_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/tag/v2.0.4",
6+
"id": 273046101,
77
"author": {
8-
"login": "rcholic",
9-
"id": 135060,
10-
"node_id": "MDQ6VXNlcjEzNTA2MA==",
11-
"avatar_url": "https://avatars.githubusercontent.com/u/135060?v=4",
8+
"login": "github-actions[bot]",
9+
"id": 41898282,
10+
"node_id": "MDM6Qm90NDE4OTgyODI=",
11+
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
1212
"gravatar_id": "",
13-
"url": "https://api.github.com/users/rcholic",
14-
"html_url": "https://github.com/rcholic",
15-
"followers_url": "https://api.github.com/users/rcholic/followers",
16-
"following_url": "https://api.github.com/users/rcholic/following{/other_user}",
17-
"gists_url": "https://api.github.com/users/rcholic/gists{/gist_id}",
18-
"starred_url": "https://api.github.com/users/rcholic/starred{/owner}{/repo}",
19-
"subscriptions_url": "https://api.github.com/users/rcholic/subscriptions",
20-
"organizations_url": "https://api.github.com/users/rcholic/orgs",
21-
"repos_url": "https://api.github.com/users/rcholic/repos",
22-
"events_url": "https://api.github.com/users/rcholic/events{/privacy}",
23-
"received_events_url": "https://api.github.com/users/rcholic/received_events",
24-
"type": "User",
13+
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
14+
"html_url": "https://github.com/apps/github-actions",
15+
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
16+
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
17+
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
18+
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
19+
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
20+
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
21+
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
22+
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
23+
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
24+
"type": "Bot",
2525
"user_view_type": "public",
2626
"site_admin": false
2727
},
28-
"node_id": "RE_kwDOQshiJ84QRghn",
29-
"tag_name": "v2.0.3",
28+
"node_id": "RE_kwDOQshiJ84QRlpV",
29+
"tag_name": "v2.0.4",
3030
"target_commitish": "main",
31-
"name": "Release v2.0.3",
31+
"name": "Release v2.0.4",
3232
"draft": false,
3333
"immutable": false,
3434
"prerelease": false,
35-
"created_at": "2025-12-27T01:12:14Z",
36-
"updated_at": "2025-12-27T22:46:31Z",
37-
"published_at": "2025-12-27T22:46:13Z",
35+
"created_at": "2025-12-28T05:42:53Z",
36+
"updated_at": "2025-12-28T05:44:58Z",
37+
"published_at": "2025-12-28T05:44:57Z",
3838
"assets": [
3939
{
40-
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/333567799",
41-
"id": 333567799,
42-
"node_id": "RA_kwDOQshiJ84T4dc3",
40+
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/333683577",
41+
"id": 333683577,
42+
"node_id": "RA_kwDOQshiJ84T45t5",
4343
"name": "extension-files.tar.gz",
4444
"label": "",
4545
"uploader": {
@@ -65,17 +65,17 @@
6565
},
6666
"content_type": "application/gzip",
6767
"state": "uploaded",
68-
"size": 73434,
69-
"digest": "sha256:ca93cdaf875792eb22333f7ba5b13dd129552f388900e624422e73959338d8fb",
68+
"size": 73579,
69+
"digest": "sha256:664d4476dc5741e0df63d6264db43a63b9ab2a4deac3049a1e61e084ebf2639c",
7070
"download_count": 0,
71-
"created_at": "2025-12-27T22:46:31Z",
72-
"updated_at": "2025-12-27T22:46:31Z",
73-
"browser_download_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/download/v2.0.3/extension-files.tar.gz"
71+
"created_at": "2025-12-28T05:44:58Z",
72+
"updated_at": "2025-12-28T05:44:58Z",
73+
"browser_download_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/download/v2.0.4/extension-files.tar.gz"
7474
},
7575
{
76-
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/333567800",
77-
"id": 333567800,
78-
"node_id": "RA_kwDOQshiJ84T4dc4",
76+
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/333683578",
77+
"id": 333683578,
78+
"node_id": "RA_kwDOQshiJ84T45t6",
7979
"name": "extension-package.zip",
8080
"label": "",
8181
"uploader": {
@@ -101,15 +101,16 @@
101101
},
102102
"content_type": "application/zip",
103103
"state": "uploaded",
104-
"size": 75584,
105-
"digest": "sha256:291750ec174d9aadade298d2a2aa1057d08a138e2650c97cd93d56b6bcbee713",
104+
"size": 75736,
105+
"digest": "sha256:b817ac0bba53872e6f725b38e16063c476790b8498953c1bec3d645ebcbebfb4",
106106
"download_count": 0,
107-
"created_at": "2025-12-27T22:46:31Z",
108-
"updated_at": "2025-12-27T22:46:31Z",
109-
"browser_download_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/download/v2.0.3/extension-package.zip"
107+
"created_at": "2025-12-28T05:44:58Z",
108+
"updated_at": "2025-12-28T05:44:58Z",
109+
"browser_download_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/download/v2.0.4/extension-package.zip"
110110
}
111111
],
112-
"tarball_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/tarball/v2.0.3",
113-
"zipball_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/zipball/v2.0.3",
114-
"body": ""
112+
"tarball_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/tarball/v2.0.4",
113+
"zipball_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/zipball/v2.0.4",
114+
"body": "## What's Changed\n* short iframe wait form 10 to 5; skip ad junk sites by @rcholic in https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/pull/18\n\n\n**Full Changelog**: https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/compare/v2.0.2...v2.0.4",
115+
"mentions_count": 1
115116
}

0 commit comments

Comments
 (0)