Skip to content

Instantly share code, notes, and snippets.

@zachgk
Created May 2, 2012 03:09
Show Gist options
  • Save zachgk/2573316 to your computer and use it in GitHub Desktop.
Save zachgk/2573316 to your computer and use it in GitHub Desktop.
Wikipedia
console.log("Starting modifications to Wikipedia!"); //Start
if($("body.mediawiki:not(.page-Main_Page)")[0] ){
$("#p-logo a").css({ //Change the top-left logo be the death star
"background-image" : "url(http://images1.wikia.nocookie.net/__cb20111207032811/starwars/images/2/2a/DeathStarTransp-SWE.png)",
"background-size" : "90% 90%" //Scale Image down
});
$("#firstHeading").css({ //Change the top font/color
"font-family" : "Calibri",
"font-size" : "26px",
"color" : "white"
});
$("body.mediawiki:not(.page-Main_Page)").css({ //Change the Background
"background" : "Black"
});
$(".mediawiki #content, #body").css({ //Change the Background
"background" : "Black"
});
$("#mw-head, #mw-panel, #p-logo, #footer, #ca-history, #ca-edit, #p-view, #ca-view, #ca-viewsource, #ca-nstab-main").css({ //Change the Background
"background" : "Black"
}); //removed #p-search
$("#ca-talk").css({ //Change the Background
"background" : "Black"
});
$("#content").css({ //Change the Text Color
"color" : "White"
});
$("#bodyContent div div img:first").attr({ //Change the logo on the homepage to Yoda
"src" : "http://images2.wikia.nocookie.net/__cb20111211042618/starwars/images/a/a6/Yoda-SWE.png"
});
}
console.log("Modifications complete"); //Finish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment