How can I add a script to display notifications for webpage updates?

0
1
Asked By CuriousCoder89 On

I'm really new to coding and I'm looking for a simple way to add a specific script to a webpage. I want this script to make a notification pop up over other windows whenever there are changes on the page. I've been dabbling with PowerToys on Windows 11, but it's not really working for me. Do I need to share the webpage link for more help?

3 Answers

Answered By MonitorManiac On

Have you looked into tools like Tampermonkey? It might not be as simple as a custom button or filter, but it could work for your needs. Just a heads up, since you mentioned you're a flight dispatcher, if the program fails due to changes in the website, it could lead to serious issues. If window space is a concern, could getting a second monitor be an option?

Answered By ScriptSavvy12 On

You might want to check out using the dev console to add an event handler for the changes you’re monitoring, but keep in mind this would reset every time the page refreshes. Modern browsers block some action that would force a tab to come to the front for user experience and security reasons. For notifications, the Notifications API could be useful. If you're looking for something more automatic, maybe consider writing a web scraping script with Selenium or Playwright that pings the page for updates. By the way, what exactly are you monitoring, and how urgent are those updates?

Answered By TechGuru99 On

Unfortunately, you can’t just add code to websites that you don’t own unless you’re developing a browser extension, which might be a bit too advanced for now. It’s a good idea to focus on basics first. Any specific features you’d want to add, or is it just about notifications?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.