Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8068941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:51:00+00:00 2026-06-05T12:51:00+00:00

I want to write a short script so that on some event chrome will

  • 0

I want to write a short script so that on some event chrome will open up all the links on a page that match a certain regular expression. I’ve got all the logic down, I just don’t know much about programming for chrome. I googled how to create new tabs in chrome and I found that chrome.tabs.create is the method I want. However, when I try to test using the built in javascript console in chrome, it tells me that chrome.tabs is undefined. What can I do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T12:51:01+00:00Added an answer on June 5, 2026 at 12:51 pm

    chrome.tabs will only be available on extension pages (that is, pages that begin with chrome-extension://). Create a new extension and have the background page of that extension open the tabs.

    You’ll need to load code into your ordinary web page with a content script (or inject a file script via executeScript in your background page) that runs your link-gathering logic and the passes all the URLs to the background page, which can then call chrome.tabs.create.

    I wish it were easier, but that’s really the simplest way. Background pages have access to the full extension API, but the rely on other scripts to run within ordinary web pages to give them instrustions via message passing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write a short script that will query my mysql db, and
Short Version I want an ADPlus script that will do a full memory dump
I want to write a Perl Script that reads a file.txt with columns of
I want to write a unit test for a Django manage.py command that does
I want to write a JAR file that makes use of the javax servlet
In my game (that is also written in C#) I want to include some
I have some simple shell scripting tasks that I want to do For example:
I want write a little code analyzer which parses nested structures and translates into
Hello I want write my own desktop sharing application in Java. The application should
I want to write a syntax highlighting extension for Emacs, but I Googling of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.