Open in app

Sign In

Write

Sign In

Matt Croak Code
Matt Croak Code

1.1K Followers

Home

About

Published in Level Up Coding

·2 days ago

Add A Content Script To Your Chrome Extension (Part Two)

Messaging Vs. Injection (Manifest Version 3) — If you read, Add A Content Script to Your Chrome Extension (Part I), you’ll remember how to add a content script to your Chrome extension by referencing it in your manifest.json file. This allows you to add a script that gets run whenever the webpage loads. While we were able…

Chrome

8 min read

Add A Content Script To Your Chrome Extension (Part Two)
Add A Content Script To Your Chrome Extension (Part Two)
Chrome

8 min read


Published in Level Up Coding

·5 days ago

Add A Content Script To Your Chrome Extension (Part One)

Access the webpage from your extension (Manifest Version 3) — When writing Chrome extensions, making sure your extension can interact with the webpage in some way can be very important. So how can it be done? In this post, I’ll show you how to include what’s called a content script in your extension, and how to make it communicate with…

Google

6 min read

Add A Content Script To Your Chrome Extension (Part One)
Add A Content Script To Your Chrome Extension (Part One)
Google

6 min read


Published in Better Programming

·Mar 21

Link Sweep: A Crucial Chrome Extension for Bloggers

Aggregate all links in a blog post with the click of a button — As someone who writes pretty regularly on Medium, I often draw a lot of my insights and support for my articles from sources beyond my own writing. Because of this, I always include a References section of my articles where you can see all the links used within my article.

Chrome

7 min read

Link Sweep: A Crucial Chrome Extension for Bloggers
Link Sweep: A Crucial Chrome Extension for Bloggers
Chrome

7 min read


Published in Level Up Coding

·Mar 16

Send Messages Between A Content and Background Script (In A New Tab)

Chrome Extension: New tab, who dis? — I am working on a Chrome extension that I plan to integrate with a React project that I made previously. The goal of this extension was to capture site data when the user clicks the extension icon. Once the data is captured, persist that data in a newly opened tab…

Google

7 min read

Send Messages Between A Content and Background Script (In A New Tab)
Send Messages Between A Content and Background Script (In A New Tab)
Google

7 min read


Published in Level Up Coding

·Mar 13

How to Get Elements By Tag Name In Nested Tags

No need to gather ALL elements, just the nested ones — I was working on some Tumblr logic for an update to my Chrome extension, Link Sweep, and was working on the part where I gather all of the links on a webpage. The problem with Tumblr is that they don’t really differentiate the links (a tags) in the post modal…

Web Development

5 min read

How to Get Elements By Tag Name In Nested Tags
How to Get Elements By Tag Name In Nested Tags
Web Development

5 min read


Published in Level Up Coding

·Mar 13

What is top.document vs. document in Web Development?

Which one should you use and when? — I’ve been working on a Chrome extension lately that was just published! The extension, LinkSweep, makes use of a content script that will need to access the webpage of the current window. This content script will be used to collect data from the webpage via the Document Object Model. What is the DOM? As…

JavaScript

6 min read

What is top.document vs. document in Web Development?
What is top.document vs. document in Web Development?
JavaScript

6 min read


Published in Level Up Coding

·Mar 3

How To Fix “Invariant Violation: Application Has Not Been Registered” In React Native

The solution was right under my nose — As a React Native Developer, you’re probably no stranger to a myriad of errors in either your command line, or the app itself. You know the ones. The dramatic red menus that pop up and yell at you for something you missed. The ones that immediately invoke panic and distress…

Code

5 min read

How To Fix “Invariant Violation: Application Has Not Been Registered” In React Native
How To Fix “Invariant Violation: Application Has Not Been Registered” In React Native
Code

5 min read


Published in Level Up Coding

·Mar 1

Why You Are Having Trouble Learning JavaScript

Your Very First JavaScript Problem (And How to Solve It) — I recently answered a question on Quora where a user stated the below quandary. I am learning JavaScript bus[sic] failing exercises. What should I do? Upon answering this question, I realized that after all of the writing I’ve done over the years, I never posted a truly barebones example of…

Code

10 min read

Why You Are Having Trouble Learning JavaScript
Why You Are Having Trouble Learning JavaScript
Code

10 min read


Published in Level Up Coding

·Feb 27

How to Match Multiple Conditions in Regex (at once)

The “Logical AND” Operator — In a previous post, I wrote about how to effectively match multiple conditions in regex and show you how to write a regular expression that can contain multiple conditions — allowing you to match multiple things. See the code from the post below. const line = 'My name is Matthew…

Regex

7 min read

How to Match Multiple Conditions in Regex (at once)
How to Match Multiple Conditions in Regex (at once)
Regex

7 min read


Published in Level Up Coding

·Feb 16

How to Use A Content Script with a Popup In Your Chrome Extension

A Workaround for Manifest Version 3 — I was working on a Chrome extension that included a popup and a content script; making use of action.onClicked. The behavior I was expecting was the user clicking the icon in the extensions bar. …

Google

6 min read

How to Use A Content Script with a Popup In Your Chrome Extension
How to Use A Content Script with a Popup In Your Chrome Extension
Google

6 min read

Matt Croak Code

Matt Croak Code

1.1K Followers

📱 Software Engineer 👨🏻‍💻 Blogger 🪴 Plant Dad https://linktr.ee/mattcroak

Following
  • Roland Xavier

    Roland Xavier

  • Diana Meresc

    Diana Meresc

  • Kevin Gabeci

    Kevin Gabeci

  • Baz Roberts

    Baz Roberts

  • WritEon

    WritEon

See all (384)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech