User:Tlosk/monobook.js: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
(Created page with 'table.gallery { border: 1px solid #ccc; margin: 2px; padding: 2px; background-color: white; } table.gallery tr { vertical-align: top; } table.gallery td { vertical-align:…')
 
imported>Tlosk
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
table.gallery {
function WikiActivity2RecentChanges() {
border: 1px solid #ccc;
$('a.wikia-button[data-id$="wikiactivity"]').replaceWith('<a data-id="recentchanges" class="wikia-button secondary" accesskey="g" title="Special:RecentChanges" href="/wiki/Special:RecentChanges"><img height="0" width="0" class="sprite activity" src="http://images1.wikia.nocookie.net/common/skins/common/blank.gif">Recent Changes</a>');
margin: 2px;
padding: 2px;
background-color: white;
}
 
table.gallery tr {
vertical-align: top;
}
 
table.gallery td {
vertical-align: top;
background-color: #f9f9f9;
border: solid 2px white;
}
 
table.gallery td.galleryheader {
    text-align: center;
font-weight: bold;
}
table.gallery caption {
font-weight: bold;
}
 
div.gallerybox {
margin: 2px;
}
 
div.gallerybox div.thumb {
text-align: center;
border: 1px solid #ccc;
margin: 2px;
        background-color: #000;  /* Black padding */
}
 
div.gallerytext {
overflow: hidden;
font-size: 94%;
padding: 2px 4px;
}
}
addOnloadHook(WikiActivity2RecentChanges);

Latest revision as of 15:46, 28 December 2010

function WikiActivity2RecentChanges() {
	$('a.wikia-button[data-id$="wikiactivity"]').replaceWith('<a data-id="recentchanges" class="wikia-button secondary" accesskey="g" title="Special:RecentChanges" href="/wiki/Special:RecentChanges"><img height="0" width="0" class="sprite activity" src="http://images1.wikia.nocookie.net/common/skins/common/blank.gif">Recent Changes</a>');
}
 
addOnloadHook(WikiActivity2RecentChanges);