The question is: you need to catch links with a specific address, and upload them to a webbrowser
inside the program. The rest of the links should open as expected, in the default browser. Those. if username / skype on the webpage etc. follow the link with the desired address, it is intercepted by the program.
1 answer
The most trivial way, which presumably will work for options for ася и скайп
is to write a simple "proxy program" that accepts some reference as a command line parameter, and then (depending on whether you need the address or not) do What they want, for example, is sent to the default browser.
After this program is written, it is in file associations
hung up on the default behavior for the desired protocols (http, https, ... )
and everything is fine.
To intercept the link processing in the browser is a very nontrivial task, and, most unpleasantly, browser-dependent. The maximum that can be done painlessly is to intercept what winsock
libraries receive
, and, in the case of an HTTP-response
from the necessary page, then duplicate opening this page with your hands and in the program you need.
But this does not change the fact that you will still have this window open in the browser, which also needs to be closed. This can be done in different ways, this is where a browser-dependency appears.
Simulate Ctrl-W
, use Greasemonkey
, if it is installed, write a plugin. There are solutions, but, unfortunately, they are either clumsy (like `Ctrl-W) or intrusive, like everyone else.