Created
January 7, 2009 08:36
-
-
Save closer/44222 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Wikimage | |
// @namespace cshamoo | |
// @include http://*.wikipedia.org/wiki/* | |
// ==/UserScript== | |
(function() { | |
var title = document.getElementsByTagName('h1')[0].innerHTML; | |
var google = "http://images.google.co.jp/images"; | |
var q = google + '?q=' + title; | |
var iframe = document.createElement('iframe'); | |
var content = document.getElementById('content'); | |
iframe.src = q; | |
iframe.border = "0"; | |
iframe.style.width = "100%"; | |
iframe.style.height = "1200px"; | |
iframe.style.border = "none"; | |
content.appendChild(iframe); | |
})(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment