Is there a way to do some action if a specific website is visited?

Solution 1:

Impossible : The browser works in a sandbox, totally isolated from the operating system. It cannot launch any program.

Hackers are constantly searching for such a capability, in Chrome or any other browsers. Up to now the developers have done a pretty good job of blocking totally all the possible methods.