1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 function injectScripts(opt_tab) {
6 chrome.tabs.executeScript({
7 file: 'lib/axs_testing.js',
10 chrome.tabs.executeScript({
11 file: 'hide-images.js',
14 chrome.tabs.insertCSS({
15 file: 'hide-images.css',
18 chrome.tabs.executeScript({
19 code: 'toggleEnabled();',
22 chrome.tabs.executeScript({
23 code: 'createInfobar();'
31 chrome.commands.onCommand.addListener(function(command) {
32 if (command == 'example_keyboard_command') {
37 chrome.browserAction.onClicked.addListener(function(tab) {