Skip to content

Instantly share code, notes, and snippets.

@emillon
Created December 21, 2011 14:51
Show Gist options
  • Save emillon/1506291 to your computer and use it in GitHub Desktop.
Save emillon/1506291 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @match http://*.wikipedia.org/wiki/*
// This was written by Etienne Millon <etienne.millon@gmail.com>
//
// Replace Jimmy Wales' "donate now" pics by kittens.
// ==/UserScript==
function replaceJimmy() {
var img = $("img[alt='Jimmy Wales']")[0];
var url = 'http://placekitten.com/'+img.width+'/'+img.height;
$("img[alt='Jimmy Wales']").attr('src', url);
}
window.onload=replaceJimmy;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment