Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Coding Challenge #83: Chrome Extension with p5.js Sketch

32.5K views
•
November 20, 2017
by
The Coding Train
YouTube video player
Coding Challenge #83: Chrome Extension with p5.js Sketch

TL;DR

Developing a Chrome extension with p5.js to draw over any webpage, discussing challenges, solutions, and insights.

Transcript

chrome extension coating challenge number two I'm also going in this coating challenge I just made one that replaces images with kittens if you didn't watch that already you can also check out the Chrome extension tutorial playlist for a lot of background information but in this video I'm going to attempt to make a Chrome extension for any web page... Read More

Key Insights

  • 📳 Instance mode in p5.js can be beneficial for namespacing functions in a Chrome extension.
  • 🪈 Loading order of p5.js and other libraries can affect script execution in Chrome extensions.
  • ❓ CSS properties like "pointer-events: none" can prevent conflicts with webpage elements in drawing overlays.
  • ❓ Performance optimization, such as initiating drawing only when necessary, can enhance the extension's efficiency.
  • 🥺 Experimenting with alternative approaches, like using SVG instead of a canvas, can lead to more efficient drawing solutions.
  • 👤 Incorporating user suggestions and feedback, such as starting with "no loop" for rendering on demand, can improve the extension's performance.
  • 🤗 Exploring the versatility of loading various libraries in Chrome extensions opens up possibilities for different functionalities beyond drawing overlays.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How can you create a Chrome extension for drawing over web pages using p5.js?

By setting up a manifest JSON file, loading p5.js libraries, and scripting with instance mode, you can create a Chrome extension to draw over any webpage.

Q: What challenges did the creator face while developing the p5.js Chrome extension?

Challenges included canvas sizing and placement issues, interactivity conflicts with webpage elements, and optimizing performance by selectively rendering.

Q: How did the creator address the issue of interfering with webpage elements while drawing?

By using CSS properties like "pointer-events: none" on the canvas element, the creator prevented the drawing overlay from intercepting mouse events on underlying webpage elements.

Q: What insights were gained regarding the use of p5.js in Chrome extensions?

Understanding instance mode, library loading order, and CSS manipulation are key insights for developing p5.js-based Chrome extensions effectively.

Summary & Key Takeaways

  • This tutorial focuses on creating a Chrome extension using p5.js to draw over any webpage.

  • Demonstrates the process of setting up the extension, including manifest JSON configuration and scripting.

  • Explores challenges such as canvas placement, interactivity issues, and optimizing performance.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from The Coding Train 📚

Coding Challenge #116: Lissajous Curve Table thumbnail
Coding Challenge #116: Lissajous Curve Table
The Coding Train
Coding Challenge #126: Toothpicks thumbnail
Coding Challenge #126: Toothpicks
The Coding Train
ITP/IMA Winter Show 2018 thumbnail
ITP/IMA Winter Show 2018
The Coding Train
Computer Mouse Conference Demos! (node.js + tensorflow.js) thumbnail
Computer Mouse Conference Demos! (node.js + tensorflow.js)
The Coding Train
Classifying Poses with ml5.js Part 2 thumbnail
Classifying Poses with ml5.js Part 2
The Coding Train
9.4: Genetic Algorithm: Looking at Code - The Nature of Code thumbnail
9.4: Genetic Algorithm: Looking at Code - The Nature of Code
The Coding Train

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.