Switch branches/tags
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
index.js

README.md

tabs.getActive([options][, callback])

Gets the active tab in the active window.

tabs.getActive(function(err, tab){})

options

  • protocol

tabs.executeScripts(options[, callback])

Executes content scripts in a tab.

tabs.executeScripts({
    tab: tab,
    scripts: ['underscore.js', 'jquery.js']
}, function(err, tab){})

options

  • tab (required)
  • scripts (required)
  • runAt

tabs.executeScriptsInActive(options[, callback])

Executes content scripts in the active tab.

tabs.executeScriptsInActive({
    scripts: ['underscore.js', 'jquery.js']
}, function(err, tab){})

options

  • scripts (required)
  • runAt