Created
December 21, 2011 14:51
-
-
Save emillon/1506291 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== | |
// @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