Return to Level1Techs.com

Polishing My chrome Extension

#1

I’ve quickly put together a quick chrome extension that blacklists games on Twitch. Super simple, but I’m still struggling with a few hurdles.

First: At https://www.twitch.tv/directory, browsing “All Live Channels” and selecting “Categories” the page does not “refresh”. How can I detect if the url changes and/or the html header changes?

Second: I currently have the script run when the page is scrolled down. I’ve tried to detect when x from bottom of page, but it doesn’t seem to work. The page does make a POST request to https://gpl.twitch.tv/gpl/. How can I detect when this request is made using JS or jQuery?

0 Likes

#2

Use an xhr breakpoint to figure out what to monkeypatch

0 Likes