Jquery 如何使用greasemonkey将页面元素添加到另一个页面
好的,我试着在facebook页面的顶部添加黑色谷歌条,所以这是我使用jquery的尝试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
// ==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">