Pin Side Panel like google search

I've been searching for a way to enable a direct button for my extension Side Panel. Accessing it each time through the side panel button and then selecting my extension is cumbersome. Has anyone found a solution or a way to trigger it with a keyboard shortcut?
No description
3 Replies
frostman
frostmanOP7mo ago
Bump this, anyone that knows if it possible? Now when Chrome 123 > have disabled that side panel button, how can i get that functionality back? Would be insainly helpful to get that back. Or just be able to trigger it in another way.
Rob
Rob7mo ago
If you get rid of your popup file and put the following code in your BGSW (background.ts), it will make it so the "action" button open the sidepanel directly, which can then be pinned
chrome.action.onClicked.addListener((tab) =>
chrome.sidePanel.open({ windowId: tab.windowId })
);
chrome.action.onClicked.addListener((tab) =>
chrome.sidePanel.open({ windowId: tab.windowId })
);
frostman
frostmanOP7mo ago
Awesome, thanks 🙏 I added it as an option button to my popup script and trigger it from my BGSW. Also found that they have added the option to open the side panel if you right click the extension.
No description
Want results from more Discord servers?
Add your server