需要使窗口应用程序像下面一样工作
问题描述:
需要一个在后台作为Windows服务运行的程序。每当打开新标签页时,此程序都会加载我选择的URL。它在后台监听,每当用户访问chrome:// newtab时,程序会将用户重定向到我的URL。在以下情况下也会打开新选项卡:
need a program that runs as a Windows service in the background. This program loads a URL of my choice whenever a new tab page is opened. It listens in the background and whenever the user visits chrome://newtab, the program redirects the user to my URL. The new tab is also opened when:
答
该服务无法按照您的需要劫持用户浏览器。
由于about:页面实际上并未导航到某个页面,因此您的服务永远不会知道所创建的新标签页。
这不是服务应用程序。您所谈论的是Chrome特有的功能,唯一有可能实现您想要的功能就是Chrome的插件。
C#Chrome插件 [ ^ ]
The service will not be able to hyjack the users browser like you want.
Since the "about:" pages don't actually navigate to a page, your service will never know about the new tab neing created.
This is NOT a service app. What you are talking about is functionality specific to Chrome and the only thing that has a chance of doing what you want is a plug-in for Chrome.
C# Chrome plugin[^]