···2233[](https://chrome.google.com/webstore/detail/skylink-bluesky-did-detector/aflpfginfpjhanhkmdpohpggpolfopmb)
4455-A simple Chrome extension that detects if the current website is connected to a Bluesky user.
55+A simple web extension that detects if the current website is connected to a Bluesky user.
6677Remember the good 'ol days of visiting someone's blog and being delighted when the "RSS" lit up in your browser? This is meant to capture that same magic. No more hunting on a page for a random bird icon to see if you can find their online profile.
88
+3-3
background.js
···22const runtime = typeof browser !== 'undefined' ? browser.runtime : chrome.runtime;
33const tabs = typeof browser !== 'undefined' ? browser.tabs : chrome.tabs;
44const storage = typeof browser !== 'undefined' ? browser.storage.local : chrome.storage.local;
55-const browserAction = typeof browser !== 'undefined' ? browser.browserAction : chrome.browserAction;
55+const action = typeof browser !== 'undefined' ? browser.action : chrome.action;
6677// On extension installation, check if privacy consent was already accepted and show it if not
88runtime.onInstalled.addListener(() => {
···28282929// Function to set the extension icon
3030function setIcon(tabId, iconName) {
3131- browserAction.setIcon({ path: iconName, tabId });
3131+ action.setIcon({ path: iconName, tabId });
3232}
33333434// On extension installation, set the icon to gray for all tabs
···5050});
51515252// When the extension icon is clicked, open the profile page if there's a DID
5353-browserAction.onClicked.addListener((tab) => {
5353+action.onClicked.addListener((tab) => {
5454 const did = tabsWithDID.get(tab.id);
5555 if (did) {
5656 const newUrl = `${bskyAppUrl}/profile/${did}`;