Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
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:
Posted
Comments
BillWoodruff 10-Feb-14 12:25pm    
What have you tried so far ? Show us your code.
W Balboos, GHB 10-Feb-14 13:04pm    
Based upon what's in the paragraph stating your problem, you are attempting to run a background service (launched w/boot?) that will hijack the user's browser. More than an example or knowledge of what you tried, I'd need to know a valid motive for this activity.
Blutfaust 10-Feb-14 13:07pm    
So you are trying to hijack the users browser? Are you trying to create malware?

1 solution

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[^]
 
Share this answer
 
Comments
JatinKhimani 10-Feb-14 23:23pm    
Yes you are right but needs to develop like that<<<<After installation and onwards (till uninstallation), when the user opens a new tab in google chrome browser(using ‘+’ sign), it will open a new tab with a custom supplied address (the address will be static in nature and will be inside the software, say www.xyz.com) instead of opening a new tab with thumbnails>>

Needs to create communication between my software and chrom. ans then take the event of the New Tab Page .
Dave Kreskowiak 10-Feb-14 23:56pm    
Based on your description of what you want to do, a Windows service is just not going to accomplish this at all.

Chrome doesn't expose events, or anything of the like, such as "a new tab is opened" to external subscribers. Also events, in the form that you see them in a Windows Forms or WPF app don't cross process boundaries.

You simply have no choice at all but to write a plug-in.

JatinKhimani 11-Feb-14 0:40am    
Thanking you for that but if you have an any type of idea about that and also idea about to Add or make Plug-in Like that accomplish my requirements.
soo then tell me or guide me or any type of link then give me okay !!
Thanking you!!
Dave Kreskowiak 11-Feb-14 7:55am    
You'll have to follow the link I already provided. I don't know the API model internally in Chrome and have never written a plugin for it.
JatinKhimani 12-Feb-14 2:41am    
Okay will try for it Thanking you!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900