how to open a link in new tab in chrome extension?

Is there a Chrome extension or script that can watch a page (like a Facebook group page), and automatically open any new link that is posted?

  • I have a Mac. I'd like to be able to keep this running in the background and just watch the Facebook group page. Whenever a new comment is posted that contains a link, I would like this script to open the link in a new tab. However, it should also disregard any older links.

  • Answer:

    This would be rather complicated. It certainly doesn't exist already. If you were to write it yourself, you would also have to resolve some interesting problems. For example, Facebook pages are very dynamic. The advertisements, suggestions for people to add, etc. that appear in the sidebar change every time you reload the page. You would have to write your script in a way to ignore changes in these dynamic elements and only pay attention to new posts. If you're specifically writing this script just to monitor a Facebook group page (rather than any page on the Internet), you're probably better off using Facebook's Graph API to fetch the posts. In other words: what you're asking for is fairly specific and thus does not already exist. You could make it yourself.

Christopher J. Su at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.