view who was fronting when a record was made

Compare changes

Choose any two refs to compare.

Changed files
+10 -1
src
entrypoints
+1 -1
package.json
··· 2 2 "name": "at-fronter", 3 3 "description": "view who was fronting when a record was made", 4 4 "private": true, 5 - "version": "0.0.7", 5 + "version": "0.0.8", 6 6 "type": "module", 7 7 "scripts": { 8 8 "dev": "wxt",
+9
src/entrypoints/content.ts
··· 200 200 ?.firstElementChild?.nextElementSibling?.firstElementChild 201 201 ?.firstElementChild?.nextElementSibling?.firstElementChild 202 202 ?.firstElementChild?.firstElementChild?.firstElementChild ?? null; 203 + const actorIdentifier = displayNameElement?.parentElement 204 + ?.getAttribute("href") 205 + ?.split("/")[2]; 206 + if ( 207 + fronter.did !== actorIdentifier && 208 + fronter.handle !== actorIdentifier 209 + ) { 210 + return; 211 + } 203 212 // sanity check 204 213 if (displayNameElement?.tagName !== "SPAN") { 205 214 console.log(