Skip to content

Instantly share code, notes, and snippets.

@closer
Created January 7, 2009 08:36
Show Gist options
  • Save closer/44222 to your computer and use it in GitHub Desktop.
Save closer/44222 to your computer and use it in GitHub Desktop.
// ==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