🧩 Plasmo Developers
Join the 🧩 Plasmo Developers server to ask questions!
Join Server🧩 Plasmo Developers
Join the community to ask questions about 🧩 Plasmo Developers and get answers from other members.
Join ServerCommunity questions
Channels
How do I access the current website URL from Plasmo popup?
How would I get the website URL using Plasmo?
Plasmo-itero github extension is harassing my other developers
Embedded component won’t load custom font
How should I access the <html> tag of a popup page?
What would be the proper way to have plasmo mounted earlier - at the <html>?
Context: I've wrapped the popup page with radix's
<Theme>
as the root element, but this Theme isn't modyfing <html>
. I think it doesn't have access to the root elements, because of being it resides in shadow dom...How do I message from background to my content script?
```
chrome.webNavigation.onCompleted.addListener(async(details) => {
if(details.frameType == "outermost_frame"){
console.info("The user has loaded my favorite website!");
console.log(details)
const tabId = details.tabId
chrome.tabs.sendMessage(tabId, {message: "Message from background script"}, function (response) {
if (chrome.runtime.lastError) {
console.error(chrome.runtime.lastError);
} else {...
How do I make a CSUI container fill the anchor's width and height?
In my case, the anchor element is a simple
textarea
(I don't need to handle the case where the textarea gets resized).Opening content script only if an element is present on the page?
I have a scraper function that returns content if it exists (which I already have working perfectly) but lets just pretend for this question that it simply returns a boolean.
for example could this:
export const config: PlasmoCSConfig = {
matches: ["https://www.medium.com/*"],
// could be 10000000 m...
how to import/use external component libraries? and how to register components?
example: https://vuetifyjs.com/en/getting-started/installation/
And another doubt would be how do I import previously created components (.vue), mainly within the CSUI.
which is a good/scalable folder structure for a big extension?
HMR for other chromium browsers
plasmo dev --target=<some-chromium-target>-dev
From what I can tell it's this addition to the manifest that achieves this dev server behavior:
{
"matches": [
"<all_urls>"
],
"resources": [
"__plasmo_hmr_proxy__"
]
}
Is there maybe a...
Is there an extension repository that shows how the testing should be done?
Thank you
How can I put breakpoints in vs code to debug? Or if you can't, what is the correct way to debug?
How to access the methods or variables of another third-party extension
I want to modify the behavior of a third party extension and it would be easier for me to access its variables or methods, and make small changes to it, or call methods from my extension,than scraping the HTML it adds to the web, or doing everything from scratch
Thanks
Build time slowed by switching to plasmo with src
Build time without src: ~1656ms
Is there a build time improvement by not using plasmo with src as shown here: https://github.com/PlasmoHQ/examples/tree/main/with-src ? I recently migrated my file structure to use src and builds are about 5x slower. Any guidance would be great thank you!
Importing Material Symbols to Content UI
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");
GmailJS + Plasmo
Using context between sidepanel tabs
Because I'd like to be able to navigate between multiple sidepanels for differents features in my extensions.
Freezing and crashing without reason
PlasmoCSConfig,
PlasmoCSUIJSXContainer,
PlasmoCSUIProps,
PlasmoRender
} from 'plasmo';
import { type FC } from 'react';
import { createRoot } from 'react-dom/client';
import cssText from 'data-text:../style.css';
import { App } from '~youtube-video-sidebar/components';
// Specific Url Where Extension Injects
export const config: PlasmoCSConfig = {
matches: [
'https://www.youtube.com/',
'https://www.youtube.com/watch*',
'https://www.youtube.com/@*'
]
};
ex...
Modifying HttpOnly cookies
content.ts
file that edits the document.cookies
, but that doesn't include httpOnly cookies. I then made a BSGW and tried to use the webReqeuest API to listen to the onHeadersReceived event, but that also doesn't include the set-cookie headers. Does anyone have any ideas on how to go about doing this?Local Storage Item does not show up in service worker dev tools ?