🧩 Plasmo Developers

PD

🧩 Plasmo Developers

Join the community to ask questions about 🧩 Plasmo Developers and get answers from other members.

Join

👾extension

👟framework

🔰newbie

🦉pallas

Issue with blog content

I'm trying to follow this article of using firebase with react and plasmo but most of the images are not available: https://www.plasmo.com/blog/posts/firebase-chrome-extension...

Overwrite existing CSS/Styling on page

Hi, how can I overwrite existing CSS on a webpage?

Scrapping data from website

Hi guys, i'm new with browser extension, so i want to make an extention for my website only and there have scenario that extension may store user input for automate, i wonder in plasmo how can i send data from my website to extension, thank everyone

Existing NextJs project

Hello Everyone, I just started working with plasmo and NextJS. I have a NextJS project already working and want to create an extension for it. My first question is how do I add plasmo to it? Do I just copy and paste the files that are in the "with-nextjs" examples repo into my own nextjs repo? If yes, Do I do it under a seperate directory or add them in root of the project?...

compression type

Hey! How do I go about sending the zipped package via the "Manual Upload API". I either seemed to get compression errors, invalid zip errors or mainfest.json not found errors when on the signing stage. Currently I'm running (but I've trialed a bunch of other things) - yarn build && yarn package...

Changes to .prettierrc.mjs and tsconfig.js not taking effect

Hi, I just created a package with Plasmo. The first thing I did was set strict to true in the tsconfig.json and then set singleQuote to true in .prettierrc.mjs. Unfortunately, these do not seem to be taking effect. After making these changes, pnpm build is still passing without any complaints with code that is non-strict and has double quotes. These are the only two changes I have from the default package you get with pnpm create plasmo. Any help would be much appreciated. ```...

sendBackgroundRelay bug

The body that I send via relay always arrives null, the message arrives but with the body null 👀

Content script runs on all URLs. Doesn't respect the config.matches.

Pretty much as described in the title. I configured the context script according to Plasmo docs, but it doesn't behave as expected. ```typescript export const config = { matches: ["https://x.com/*"],...

overidin the manifest.json not working?

I need permissions to be able to do scripting(in a background service worker), I tried to override my manifest.json. I searched it up and the documentation said adding to the package.json. However, when I do that, it still does nto change the manifest so I dont have permission cause when I log the manifest.json in the background serve worker, it only has premission to open side tab. This is my repo: https://github.com/ThePathOfLeastResistance/checkment
No description

Itero Help

Just paid for a team subscription but the server returns a 500 every time i try to create a team. Also still showing 'personal account' under the dashboard but 'professional' under billing can someone help?

Why does the emotion-tailwind-antd example use 2 content scripts

I was using looking at this example to better understand how the framework functioned and I found it weird why inject.tsx was even made. All that it does is check for a tag and then create a div to contain the other elements? Is it for performance? Is it cause the 2nd file has many imports? Then why do both trigger on the same URL? Wouldn't that end up loading both anyway?

I wanna make a button to change some on current page

this button is in popup, how should i handle this? should i send it to background then call content? or onmessage it in content dirtectly? or other message communiting ways?

How to do CSUI routing?

I'm trying to build a chrome extension with plasmo, I' using the cs ui for my extension, now my extension will have multiple pages like initially there will be welcome page then clicking on a button will lead to a diffrent page like that. but I don't know how to do this kind of routing efficiently in CSUI currently i'm using the below approch, which will get out of hand if I add more and more pages, and it is very dificult for complex routing as well. Can someone please help me with any suggesition or something? ``` const App=()=>{ const [page,setPage]=useState(1);...

supabase with turnstile captcha

how and where to add turnstile captcha in supabase plasmo extension? is .env file right place to place turnstile captcha secret?...

runtime.lastError

I am getting the following error: Unchecked runtime.lastError: The page keeping the extension port is moved into back/forward cache, so the message channel is closed. It happens when navigating away from certain webpages. The behavior seems extremely inconsistent and I am not sure where the error is originating from. I've commented out my content scripts with no luck so I do not think it is an issue with my content scripts. ...

run dev plasmo

Very new to plasmo and I am having trouble executing npm run dev for a plasmo project; not sure what I should be doing to resolve this
No description

files get overwritten when I restart the development server; build/chrome-mv3-dev

I want to edit popup.xxxxxx.js and manifest.json. There are two versions of these files that exists one of the versions is in build/chrome-mv3-dev and the other in .plasmo. I have been editing the ones in build/chrome-mv3-dev and when i save and the server reloads things work as i want them to. The problem is when i restart the dev server completely the changes I made to these files is overwritten. Not sure what I am supposed to be doing in order to make changes to these files.

How can i send message from Content Script to SidePanel?

I want to use Chrome MediaDevice API in Content Script UI, but i still need send meesage to my Side panel to make it better view. I don't know which should i use? btw, i dont know what is "BGSW" and what difference it with "CS"...
No description

using existing extension

Is there a way for me to easily integrate an existing chrome extension with manifest.json, background.js, pop.js and .html files to the plasma interface