15 questions
1
vote
1
answer
170
views
Plasmo Firefox production build: Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist
With plasmo 0.90.5, I faced this issue when trying to run my Firefox extension that I built with manifest v3. This issue happens when I try to pass a message to the content script.
Uncaught (in ...
2
votes
0
answers
112
views
How to keep Supabase session synced between Next.js app and Plasmo Chrome extension?
I'm building a Chrome extension using Plasmo and a web app using Next.js (App Router).
I'm using Supabase for authentication, and I want the auth session to stay in sync between the web app and the ...
0
votes
0
answers
101
views
Dynamically Populating Chrome Context Menu Items via Extension
I'm building a Chrome extension with the Plasmo and Supabase, where I fetch data from whenever the browser's context menu is opened, using a broadcasted contextmenu event. I aim to dynamically update ...
0
votes
1
answer
95
views
Plasmo React MUI Inject Styles
I am developing an extension with Plasmo and using MUI with REACT.
I am having a content script as following:
import { Button } from "@mui/material"
import type { PlasmoCSConfig } from "...
0
votes
1
answer
109
views
External style library for Plasmo
I am trying to build browser extension with Plasmo, and I want to use control like react-quill, I can install the package, but it will also need to import the css for quill, in normal react project, ...
0
votes
1
answer
50
views
PlasmoCSUI setting h-full cannot fill the parent node
PlasmoCSUI h-full not working
On twitter, I want to inject my own element (button) to the end of a list (a row of horizontal buttons), and I want to keep the same button height as them, but I found ...
0
votes
1
answer
69
views
Why is the select options showing up behind my div?
CSUI (content script) showing select options behind div
The select options shows up behind the card that select field. The styles are working fine but any time I open like a dropdown thats supposed to ...
0
votes
0
answers
212
views
How can I efficiently and securely communicate between my Next JS backend and my chrome extension
I am building a website that will use chrome extension for some of its feature, I am using Next Auth and would like to authenticate from my extension whether or not the user is logged in/ has the next ...
0
votes
1
answer
123
views
React state is undefined when reading inside of an callback function
I am trying to read a react state when the callback of chrome.tabs.onUpdated.addListener is being called, but it seems the state value is undefined, even though it's set previously.
Here is the hook ...
0
votes
0
answers
53
views
Trouble while injecting generated text in the input field of Twitter using a browser extension
I'm currently developing a Twitter browser extension, and I've encountered an issue with injecting AI-generated text, obtained from an API, into Twitter's tweet input field. Although the injection ...
0
votes
0
answers
93
views
Trouble with AI-generated tweets in Twitter browser extension when emojis are present in input field
I'm currently developing a Twitter browser extension that allows users to generate tweets and replies using AI. The extension works well, but I've encountered an issue when there's already an emoji ...
0
votes
1
answer
821
views
Extension: How to resolve the errors `Uncaught Error: Extension context invalidated` and `Warning: React.jsx: type is invalid -- expected a string`?
I'm using React, Typescript, Plasmo, and MaterialUI to develop a Chrome extension.
I continued to receive the following errors even after commenting out code for the popup, background and content ...
2
votes
1
answer
175
views
Vue hints for a react based project created with plasmo
I've just installed Plasmo and generated a initial project. It's react-based but I'm getting Vue errors in WebStorm. npm run dev works without any problems, but I keep getting the red squigly lines ...
1
vote
0
answers
1k
views
How do I make the Plasmo CSUI container fill the anchor's width and height?
I'm making a browser extension using Plasmo and I need to have the CSUI container fill the anchor, so I can then use CSS to easily position the contents wherever I want using absolute values that are ...
2
votes
0
answers
1k
views
Send message to content script from service worker
I am using Plasmo to create google chrome extensions.
My requirement is to invoke a function in a Content Script periodically. I tried to use setInterval() but this was not reliable. I read that using ...