質問編集履歴

4

コードを修正

2018/03/17 07:55

投稿

defeatist
defeatist

スコア35

test CHANGED
File without changes
test CHANGED
@@ -166,7 +166,7 @@
166
166
 
167
167
  var html = '<iframe src="http://127.0.0.1:3000/debug" frameborder="0" height="200"></iframe>';
168
168
 
169
- //`http://127.0.0.1:3000/debug`はのpopup.htmlの<body>の部分を記述したhtmlファイルの場所です
169
+ //`http://127.0.0.1:3000/debug`は1つ目方法のpopup.htmlの<body>の部分を記述したhtmlファイルの場所です
170
170
 
171
171
  $("#frame").html(html);
172
172
 

3

エラー画像を修正

2018/03/17 07:55

投稿

defeatist
defeatist

スコア35

test CHANGED
File without changes
test CHANGED
@@ -200,7 +200,7 @@
200
200
 
201
201
  すると以下のエラーが出ました。
202
202
 
203
- ![イメージ説明](721fc467fca9a92c54384859bc4377c2.png)
203
+ ![イメージ説明](6a38bb3163d1dbddd9e6d2fd9bd79c18.png)
204
204
 
205
205
 
206
206
 

2

2つめの方法のコードとエラー画像を修正

2018/03/17 05:16

投稿

defeatist
defeatist

スコア35

test CHANGED
File without changes
test CHANGED
@@ -164,7 +164,9 @@
164
164
 
165
165
  $(function() {
166
166
 
167
- var html = '<iframe src="http://embed.nicovideo.jp/watch/sm9?jsapi=1" id="nicovideoPlayer-1" frameborder="0" allowfullscreen></iframe>';
167
+ var html = '<iframe src="http://127.0.0.1:3000/debug" frameborder="0" height="200"></iframe>';
168
+
169
+ //`http://127.0.0.1:3000/debug`は上のpopup.htmlの<body>の部分を記述したhtmlファイルの場所です
168
170
 
169
171
  $("#frame").html(html);
170
172
 
@@ -178,7 +180,7 @@
178
180
 
179
181
  eventName: 'play'
180
182
 
181
- }, 'http://embed.nicovideo.jp');
183
+ }, 'chrome-extension://ghhpggjmpggclfhmeifnkpkkdifnlfgl');
182
184
 
183
185
 
184
186
 
@@ -198,7 +200,7 @@
198
200
 
199
201
  すると以下のエラーが出ました。
200
202
 
201
- ![イメージ説明](bc95ef1ac68c300c4c495ac26751ad6b.png)
203
+ ![イメージ説明](721fc467fca9a92c54384859bc4377c2.png)
202
204
 
203
205
 
204
206
 

1

2つめの方法のコードとエラー画像を訂正

2018/03/17 05:03

投稿

defeatist
defeatist

スコア35

test CHANGED
File without changes
test CHANGED
@@ -164,7 +164,7 @@
164
164
 
165
165
  $(function() {
166
166
 
167
- var html = '<iframe src="http://127.0.0.1:3000/debug" frameborder="0" height="200"></iframe>';
167
+ var html = '<iframe src="http://embed.nicovideo.jp/watch/sm9?jsapi=1" id="nicovideoPlayer-1" frameborder="0" allowfullscreen></iframe>';
168
168
 
169
169
  $("#frame").html(html);
170
170
 
@@ -198,9 +198,7 @@
198
198
 
199
199
  すると以下のエラーが出ました。
200
200
 
201
- ![イメージ説明](2ae0059885a405e376479447f387972c.png)
201
+ ![イメージ説明](bc95ef1ac68c300c4c495ac26751ad6b.png)
202
-
203
- この`X-Frame-Options`というものを回避しなければならなそうなのですが、調べてみるとグレーなどと言われているので、ここで行き止まっています。
204
202
 
205
203
 
206
204