jgoon
jgoon
Explore posts from servers
PD🧩 Plasmo Developers
Created by RVG|𝓵𝓸𝓻𝔂 on 10/21/2023 in #👾extension
change extension icon after pressing a button
i think you need to config the action in the manifest although
8 replies
PD🧩 Plasmo Developers
Created by RVG|𝓵𝓸𝓻𝔂 on 10/21/2023 in #👾extension
change extension icon after pressing a button
in the background script, you can use plasmo's browser api which will dynamically change based which browser you are on
8 replies
PD🧩 Plasmo Developers
Created by RVG|𝓵𝓸𝓻𝔂 on 10/21/2023 in #👾extension
change extension icon after pressing a button
example use case:
const path = {
"16": "assets/icon16.png",
"48": "assets/icon48.png",
"128": "assets/icon128.png"
};

chrome.browserAction.setIcon({ path });
const path = {
"16": "assets/icon16.png",
"48": "assets/icon48.png",
"128": "assets/icon128.png"
};

chrome.browserAction.setIcon({ path });
8 replies
PD🧩 Plasmo Developers
Created by RVG|𝓵𝓸𝓻𝔂 on 10/21/2023 in #👾extension
change extension icon after pressing a button
I don't think plasmo has built an api for this, so simply use the browsers native api chrome.browserAction.setIcon https://developer.chrome.com/docs/extensions/reference/browserAction/
8 replies
PD🧩 Plasmo Developers
Created by Chubby Princess on 10/19/2023 in #👾extension
content.tsx with TailwindCSS affected by page styles
Have you tried using tailwind prefixes? https://tailwindcss.com/docs/configuration#prefix
8 replies