-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inject findAndReplaceDOMText onto page via Chrome Extension? #80
Comments
I've successfully included it in my Chrome extensions. Do you get that same console error in the background page console AND in the normal console when you load it as a content script? What about using the same file locally? It just sounds like there's something wrong with the file itself. |
How did you set it up? Because this is suggested to add the file via a script tag in index.html. I'll check when I get back, thx for the help so far |
Same way you did it.
I'm using version 0.4.5 of the script, not minified. |
Hmm weird. Yeah my error is saying
I also downloaded the unminified version and put that in my lib folder. My code is here if you wanna have a quick look - https://github.com/puyanwei/chrome-extension-same-highlighter Thx so far for ur help, really appreciate it! |
Hi,
Is there a way of adding this to a chrome extension? I want to highlight all same words which involves me adding a span to those found.
I have tried to add it in the manifest.json like this;
as well as trying to append it via
background.js
(preload) orcontent.js
(page) with something like this;However the console says;
findAndReplaceDOMText.js:7 Uncaught SyntaxError: Unexpected token <
The text was updated successfully, but these errors were encountered: