User:Dser/wikia.js

// Auto-refresh feature

AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:Chat","Special:WikiActivity","Special:RecentChanges"]; importScriptPage('AjaxRC/code.js', 'dev');

// View history for wall threads (code by Eladske)

function WallHistory { if (wgCanonicalNamespace == 'Thread') { $('#WallBrickHeader').append('View History'); }	if (wgCanonicalNamespace == 'Message_Wall' && wgAction != 'history') { $('.WikiaMainContent').prepend(' View History '); } } addOnloadHook(WallHistory);

// Recent changes button on Wiki Activity and vice versa (experimental)

function RecentChangesButtons { if (wgCanonicalSpecialPageName == "WikiActivity") { $('.WikiaPageHeader').append('Recent Changes'); }   if (wgCanonicalSpecialPageName === "RecentChanges") { $('.WikiaSearchHeader').append('Wiki Activity'); } } addOnloadHook(RecentChangesButtons);