Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 如何使用greasemonkey将页面元素添加到另一个页面_Jquery_Iframe_Greasemonkey - Fatal编程技术网

Jquery 如何使用greasemonkey将页面元素添加到另一个页面

Jquery 如何使用greasemonkey将页面元素添加到另一个页面,jquery,iframe,greasemonkey,Jquery,Iframe,Greasemonkey,好的,我试着在facebook页面的顶部添加黑色谷歌条,所以这是我使用jquery的尝试 // ==UserScript== // @name GooggleBar Facebook // @namespace nyongrand // @require http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js // @include http://www.facebook.c

好的,我试着在facebook页面的顶部添加黑色谷歌条,所以这是我使用jquery的尝试

// ==UserScript==
// @name           GooggleBar Facebook
// @namespace      nyongrand
// @require        http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
// @include        http://www.facebook.com/*
// ==/UserScript==

$('<div id="result">a</div>').load('http://www.google.com/index.html #gbg').insertBefore('#blueBarHolder');
创建了这个iframe,但iframe中没有任何内容,iframe是空白的,尽管我看到了

<iframe width="325px" height="150px" src="http://google.com">


在firebug中。

它是空白的,因为X-Frame-Options中禁止显示。 您可以在中阅读更多关于此的信息

<iframe width="325px" height="150px" src="http://google.com">