🧩 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

Using microphone in sidepanel

Hello, I am using Plasmo to build our extension. I was able to record microphone using a content script. I am now trying to move the recording logic to a side panel. When I try to get user permissions for the microphone inside of the sidepanel, I simply get an error saying permissions dismissed. Curious if there are any pointers on how to navigate the issue.

run content script after click on element

I want to run certain content scripts after the user clicks on a an element. I read the documentation and searched through discord but could not find a working example. It would be wonderful if someone could provide a minimal working code

Tailwind stops hot reloading

When I change styles in the project created with the tailwind template: pnpm create plasmo --with-tailwindcss It usually hot reloads the first change, then stops the hot reloading. I have to pnpm dev again for changes to take effect (sometimes I have to do it twice). Is that the way it works? Should I do something extra?...

with-firebase example giving chrome web store violation.

Hey everyone, firstly huge thanks to plasmo trying to making developing web extensions more bearable. I'm building an extension and having trouble getting the firebase/auth example to pass review. The reason is this violation: ...
No description

How to setup google analytics with plasmo react chrome extension in manifest v3

and not have it be rejected by the CWS because of remote code? Which setup between those 2 examples I see in plasmo examples is the easiest and passes the CWS review without hiccups?: https://github.com/PlasmoHQ/examples/tree/main/with-google-analytics or https://github.com/PlasmoHQ/examples/tree/main/with-google-analytics-measurement ...

Is there a way to block a browser extension that uses Plasmo in my React app?

Is there a way to block a browser extension that uses Plasmo in my React app?

Service workers

So I have this sevice worker background.ts, but I can't seen to get it working. All I'm trying to do is to get it to display the content.tsx when I click but I get the error: Failed to execute script: Error Could not load file: 'content.tsx'. I've been iat it for like a day or two but I can't seem to figure it out. Thanks in advance...
No description

Redirects working both in Chrome and Firefox

Did you manage to get this to work? I have a similar case. How can I use the declarativeNetRequest (or something else) to generate dynamic rules that work on both chrome and Firefox? I want to redirect network calls to my local server JS script when I am prototyping, but when I am not, I want to use a static link to my website. I will have a toggle button (tied to a variable in storage) to determine which URL to redirect to. ```typescript async function setRedirectRule(newRedirectUrl: string) { let newRedirectRule: chrome.declarativeNetRequest.Rule = {...

help

i am building chrome extention for personal project, i want to know how to place button like grammerly in input or textarea?
No description

I have a problem with my project

Hi everybody. I am new programming in this framework and basically in React. I want to make an extension that in first instance returns me the text that I select with the mouse and shows it on the screen but as attached in the screenshot it doesn't work correctly. I copy the repository because I really don't know what I have wrong, could someone know how to solve it? Repository:https://github.com/pablo2899/Plasmo-framework Thank you very much in advance...
No description

Getting a 403 when deploying using plasmo plus

Hi there, we are using plasmo to deploy to multiple stores, I started with deploying to chrome but I am getting 403 after following the steps and adding all creds into the plasmo web app. I am getting this: ``` Errored - chrome: Step 1) Item ""[ext-id]" (Name browser plugin)": Response code 403 (Forbidden)...

Content script not loading when navigating to URL (and other issues)

Hi, A little about me first, I'm an experienced C# dev fairly new to TS, extensions and web dev generally, so I understand the principles, but not all the specifics (JS/TS/CSS/npm etc). I realised TS would be far more comfortable than JS, and Plasmo deals with manifests, packing and deployment, which is great (except for one issue with source maps ) So my specific issues; I've got quite far with writing the logic, and I've started adding UI components to the web page and it's generally working, but there are a few things I'm not sure I've got right (Chat GPT may be misleading me):...

How do I forward an API request from inside a React component to the BGSW?

Hey all! I'm making an extension that currently has a single content script which loads up a small div using React into the DOM, where a user can enter and submit messages. These messages are sent to an external API, but as I've learned, you need to use the PlasmoMessaging API in order to proxy the request to the BGSW... My only question is, how exactly is that communication done? Can inner-components (.tsx files) easily utilize the chrome / Plasmo API, or do I need to use the base content scrip...

How to do unit testing?

I attempted to download and test the sample jest, but it did not work due to the following error. and i want to use vitest,or bun:test.please support! ` jest ...

with-supbase github provider link fails

so I managed to get the with-supabase example up and running except clicking the github provider takes me toa 404 page from github i expected it to let me login with github....

Inserting element on click within a Content Script

Hi all, I'm having a React Component that add a click event listener on the body. When I click on a element, I want to show a dropdown below with a couple of options. How do I do this? Currently I have: ...

I have a problem with shadow root - Hide & visibility

hi all ... I have a problem that, I want when I click the Extension icon the shadow root will activate and overly will popup, after click again the Extension button the popup disappears. Pls help me
No description

How do I get Vue devtools to work?

I have not been successful in getting Vue devtools to work with Plasmo. I followed the instructions in the Vue devtools docs to use it as a dependency: https://devtools.vuejs.org/guide/installation.html#using-dependency-package I had to add this to my package.json: "manifest": { "content_security_policy": {...

React route is rendered twice when I use useStorage hook

Hey everyone, I'm having an issue with my extension. I'm using Plasmo and react-router together. When I render a route in which I need to call useStorage my component is rendered twice, I can't quite understand why this is happening....