Jump to content

Close chrome tab if page is 404 or contain some text

Recommended Posts

Hello everyone,

I've recently written a script that opens a webpage in a new tab. However, I'd like to enhance its functionality so that if the webpage returns a 404 Not Found error or contains specific text, the tab will close automatically.

Has anyone encountered this before or know if it's feasible to implement this behavior?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...