teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

.

2018/07/21 00:39

投稿

Koyyyyyy
Koyyyyyy

スコア55

title CHANGED
File without changes
body CHANGED
@@ -29,9 +29,9 @@
29
29
 
30
30
  {
31
31
  "update_url": "https://clients2.google.com/service/update2/crx",
32
- "name": "ICU-OPAC-Viewer",
32
+ "name": "Viewer",
33
33
  "manifest_version": 2,
34
- "description": "Search books through icu ipac.",
34
+ "description": "Search books throughipac.",
35
35
  "version": "1.5.6",
36
36
  "permissions": [
37
37
  "contextMenus"

2

add manifest.json

2018/07/21 00:39

投稿

Koyyyyyy
Koyyyyyy

スコア55

title CHANGED
File without changes
body CHANGED
@@ -22,4 +22,34 @@
22
22
  chrome.tabs.onUpdated.addListenerでtabが開かれたあと呼ばれる関数を定義しました。
23
23
  console.log(window.document)の出力結果を見てみると出力されたのは拡張機能自体のhtmlでした。
24
24
 
25
- どのようにしたら新たに開かれたタブを操作できるのでしょうか。
25
+ どのようにしたら新たに開かれたタブを操作できるのでしょうか。
26
+
27
+ manifesut.json
28
+  ```
29
+
30
+ {
31
+ "update_url": "https://clients2.google.com/service/update2/crx",
32
+ "name": "ICU-OPAC-Viewer",
33
+ "manifest_version": 2,
34
+ "description": "Search books through icu ipac.",
35
+ "version": "1.5.6",
36
+ "permissions": [
37
+ "contextMenus"
38
+ ],
39
+ "icons": {
40
+ "16": "icon16.png",
41
+ "48": "icon48.png",
42
+ "128": "icon128.png"
43
+ },
44
+ "background": {
45
+ "page": "rightClickSearch.html"
46
+ },
47
+ "browser_action": {
48
+ "default_icon": "icon16.png"
49
+ },
50
+ "content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'"
51
+ }
52
+
53
+ ```
54
+
55
+ background.jsには何も書いておりませんでした。

1

2018/07/21 00:39

投稿

Koyyyyyy
Koyyyyyy

スコア55

title CHANGED
@@ -1,1 +1,1 @@
1
- chrome 拡張機能 開発 質問
1
+ chrome 拡張機能  新規作成されたタブの操作の仕方
body CHANGED
File without changes