View source for MediaWiki:Common.js
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
$(document).ready(function(){
$('.redditlink').replaceWith('<script type="text/javascript" src="http://www.reddit.com/buttonlite.js?i=5"></script>');
$('span.hover-link').hover(function(e){
var classes = $(this).attr("class").split(/\s+/);
for (var i=0; i<classes.length; i++)
{
if (classes[i].indexOf("link-") != -1)
{
if (e.type == "mouseenter")
{
$("span."+classes[i]).addClass("hover");
}
else if (e.type == "mouseleave")
{
$("span."+classes[i]).removeClass("hover");
}
}
}
000
1:0
Return to MediaWiki:Common.js.