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 RecentChanges { if (wgSpecial == "Special:WikiActivity") { $('.WikiaPageHeader').append('Recent Changes'); }   if (wgSpecial == "Special:WikiActivity") { $('#ajaxRefresh').append('Wiki Activity'); } } addOnloadHook(RecentChanges);