Skip to content

Commit e0ec9b9

Browse files
authored
Merge pull request #136 from SentienceAPI/sync-extension-v2.4.0
Sync Extension: v2.4.0
2 parents 82c9cb3 + 47cdb6e commit e0ec9b9

File tree

4 files changed

+55
-48
lines changed

4 files changed

+55
-48
lines changed

sentience/extension/injected_api.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,12 @@
323323
if (!el.getBoundingClientRect) return;
324324
const rect = el.getBoundingClientRect();
325325
if (rect.width < 5 || rect.height < 5) return;
326+
if ("span" === el.tagName.toLowerCase()) {
327+
if (el.closest("a")) return;
328+
const childLink = el.querySelector("a[href]");
329+
if (childLink && childLink.href) return;
330+
options.debug && el.className && el.className.includes("titleline");
331+
}
326332
window.sentience_registry[idx] = el;
327333
const semanticText = function(el, options = {}) {
328334
if (!el) return {
@@ -439,7 +445,7 @@
439445
inferred_label: semanticText?.source && ![ "explicit_aria_label", "input_value", "img_alt", "inner_text" ].includes(semanticText.source) ? toSafeString(semanticText.text) : null,
440446
label_source: semanticText?.source || null,
441447
inferred_role: inferredRole ? toSafeString(inferredRole) : null,
442-
href: toSafeString(el.href || el.getAttribute("href") || null),
448+
href: toSafeString(el.href || el.getAttribute("href") || el.closest && el.closest("a")?.href || null),
443449
class: toSafeString(getClassName(el)),
444450
value: void 0 !== el.value ? toSafeString(el.value) : toSafeString(el.getAttribute("value")),
445451
checked: void 0 !== el.checked ? String(el.checked) : null

sentience/extension/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.3.0",
4+
"version": "2.4.0",
55
"description": "Extract semantic visual grounding data from web pages",
66
"permissions": ["activeTab", "scripting"],
77
"host_permissions": ["<all_urls>"],
409 Bytes
Binary file not shown.

sentience/extension/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/275742777",
3-
"assets_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/275742777/assets",
4-
"upload_url": "https://uploads.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/275742777/assets{?name,label}",
5-
"html_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/tag/v2.3.0",
6-
"id": 275742777,
2+
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/275780781",
3+
"assets_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/275780781/assets",
4+
"upload_url": "https://uploads.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/275780781/assets{?name,label}",
5+
"html_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/tag/v2.4.0",
6+
"id": 275780781,
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_kwDOQshiJ84Qb4A5",
29-
"tag_name": "v2.3.0",
28+
"node_id": "RE_kwDOQshiJ84QcBSt",
29+
"tag_name": "v2.4.0",
3030
"target_commitish": "main",
31-
"name": "Release v2.3.0",
31+
"name": "Release v2.4.0",
3232
"draft": false,
3333
"immutable": false,
3434
"prerelease": false,
35-
"created_at": "2026-01-10T19:58:22Z",
36-
"updated_at": "2026-01-10T19:59:50Z",
37-
"published_at": "2026-01-10T19:59:16Z",
35+
"created_at": "2026-01-11T03:04:44Z",
36+
"updated_at": "2026-01-11T03:07:27Z",
37+
"published_at": "2026-01-11T03:06:49Z",
3838
"assets": [
3939
{
40-
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/338832607",
41-
"id": 338832607,
42-
"node_id": "RA_kwDOQshiJ84UMizf",
40+
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/338955721",
41+
"id": 338955721,
42+
"node_id": "RA_kwDOQshiJ84UNA3J",
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": 73652,
69-
"digest": "sha256:8b2c505a4d0943365b683bb791356cfd33398499039f6a1e9cb1ade4e4d95949",
68+
"size": 73936,
69+
"digest": "sha256:8e15a80621f3494616a751764e98a935933cea18b88423121d9f4373f0766306",
7070
"download_count": 0,
71-
"created_at": "2026-01-10T19:59:50Z",
72-
"updated_at": "2026-01-10T19:59:50Z",
73-
"browser_download_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/download/v2.3.0/extension-files.tar.gz"
71+
"created_at": "2026-01-11T03:06:50Z",
72+
"updated_at": "2026-01-11T03:06:50Z",
73+
"browser_download_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/download/v2.4.0/extension-files.tar.gz"
7474
},
7575
{
76-
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/338832606",
77-
"id": 338832606,
78-
"node_id": "RA_kwDOQshiJ84UMize",
76+
"url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/assets/338955720",
77+
"id": 338955720,
78+
"node_id": "RA_kwDOQshiJ84UNA3I",
7979
"name": "extension-package.zip",
8080
"label": "",
8181
"uploader": {
@@ -101,15 +101,16 @@
101101
},
102102
"content_type": "application/zip",
103103
"state": "uploaded",
104-
"size": 75735,
105-
"digest": "sha256:892f9a843859bdba36d8aea8bbe727c07ebeea17d925b785cbbc0b33c8aa16c4",
104+
"size": 76016,
105+
"digest": "sha256:56dcf5134d47ed4ab8025fb81c21946acf51461baa6973a60ea59727d6d44351",
106106
"download_count": 0,
107-
"created_at": "2026-01-10T19:59:50Z",
108-
"updated_at": "2026-01-10T19:59:50Z",
109-
"browser_download_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/download/v2.3.0/extension-package.zip"
107+
"created_at": "2026-01-11T03:06:49Z",
108+
"updated_at": "2026-01-11T03:06:50Z",
109+
"browser_download_url": "https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/releases/download/v2.4.0/extension-package.zip"
110110
}
111111
],
112-
"tarball_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/tarball/v2.3.0",
113-
"zipball_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/zipball/v2.3.0",
114-
"body": ""
112+
"tarball_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/tarball/v2.4.0",
113+
"zipball_url": "https://api.github.com/repos/SentienceAPI/Sentience-Geometry-Chrome-Extension/zipball/v2.4.0",
114+
"body": "## What's Changed\r\n* Structural tags by @rcholic in https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/pull/28\r\n\r\n\r\n**Full Changelog**: https://github.com/SentienceAPI/Sentience-Geometry-Chrome-Extension/compare/v2.3.0...v2.4.0",
115+
"mentions_count": 1
115116
}

0 commit comments

Comments
 (0)