Results 1 to 3 of 3

Thread: I want to spot fast when reading articles

  1. #1
    Hostboard Member villiamsdana's Avatar
    Join Date
    March 11th, 2022
    Posts
    31
    Follows
    0
    Following
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)

    I want to spot fast when reading articles

    I started building a browser extension that highlights specific words on web pages — like custom keywords I want to spot fast when reading articles. Got the highlighting part kind of working, but every time the page reloads or scrolls with infinite loading, the highlights disappear. Not sure how to keep it consistent.

  2. #2
    Hostboard Member MarinaBil's Avatar
    Join Date
    March 11th, 2022
    Posts
    49
    Follows
    0
    Following
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)

    Re: I want to spot fast when reading articles

    I ran into that issue too when I made a tool to highlight product prices under a certain value. What helped was using MutationObserver to detect when the DOM changes and reapplying the highlights. I didn’t even know about that until I dug into https://5ly.co/browser-extension-development/ — they explain how to handle dynamic content pretty clearly. You can also throttle updates so your extension doesn’t slow everything down.

  3. #3
    Junior Hostboard Member juliastill's Avatar
    Join Date
    March 12th, 2022
    Posts
    27
    Follows
    0
    Following
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)

    Re: I want to spot fast when reading articles

    Stuff like that makes you realize how many moving parts websites have these days. Extensions sound simple until you start building one and find out it’s like solving ten puzzles at once. Fun though, in a frustrating way.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •