User:Kotepho/prefs.js

// $Id: usermain.js 1346 2006-03-08 11:20:33Z quarl $

var $usermain = new Module('usermain.js'); $usermain.depend('autofocus.js'); $usermain.depend('alexafy.js'); $usermain.depend('google.js'); $usermain.depend('nav_custom.js');

$usermain.depend('sig.js'); $usermain.depend('rollback.js'); $usermain.depend('autotag.js'); $usermain.depend('copyvio.js'); $usermain.depend('edittop.js'); $usermain.depend('watchlist.js'); $usermain.depend('watchbutton.js'); $usermain.depend('autofocus.js'); $usermain.depend('directredirect.js'); $usermain.depend('locz.js'); $usermain.depend('datez.js'); $usermain.depend('coorz.js'); //$usermain.depend('imdbz.js'); //$usermain.depend('alexafy.js'); $usermain.depend('userscript.js'); //$usermain.depend('autosummary.js'); $usermain.depend('smartsubmit.js'); $usermain.depend('newmessages.js'); $usermain.depend('tabtalknew.js'); $usermain.depend('tabdiff.js'); $usermain.depend('tabsince.js'); $usermain.depend('purge.js'); $usermain.depend('editcount.js'); $usermain.depend('nav_logs.js'); $usermain.depend('quicknav.js'); $usermain.depend('hideown.js'); $usermain.depend('google.js');

$usermain.depend('autoafd.js'); $usermain.depend('afd_vote.js'); $usermain.depend('xfdclose.js'); $usermain.depend('obsolete/autowarn.js');

$usermain.depend('instapreview.js'); $usermain.depend('popups.js'); $usermain.depend('picturepopups.js');

$usermain.depend('redirector.js'); $usermain.depend('debugnote.js');

$autofocus.enable; $querysave.enable; $popups.enable;

$rollback.widgetLoad; $autotag.widgetLoad; $copyvio.widgetLoad; $edittop.widgetLoad; $watchlist.widgetLoad; $watchbutton.widgetLoad; $autofocus.enable; $locz.widgetLoad; $datez.widgetLoad; $coorz.widgetLoad; $imdbz.widgetLoad; $alexafy.widgetLoad; $userscript.widgetLoad; $tabtalknew.widgetLoad; $tabdiff.widgetLoad; $tabsince.widgetLoad; $purge.widgetLoad; $editcount.widgetLoad; $nav_logs.widgetLoad; $quicknav.widgetLoad; $google.widgetLoad; $directredirect.widgetLoad;

// $autoafd.widgetLoad; // $afd_vote.widgetLoad; $xfdclose.widgetLoad; $autowarn.widgetLoad;                            // obsolete

$instapreview.widgetLoad;

$redirector.widgetLoad; $debugnote.widgetLoad;

var customizePortlets = function { // user space, user talk space: var spUser = "User:" + wikiDoc.username + "/"; var spUserTalk = "User talk:" + wikiDoc.username + "/";

// actions: $nav_custom.alterLinkText('ca-edit', 'Edit');

// personal: $nav_custom.alterLinkText('pt-mytalk', 'Talk'); $nav_custom.alterLinkText('pt-preferences', 'Prefs'); $nav_custom.alterLinkText('pt-watchlist', 'Watchlist'); $nav_custom.alterLinkText('pt-mycontris', 'Contribs');

var homeUrl = WikiPage(null, spUser + 'home').url; $wikiwidget.addLiLink({after: 'pt-userpage'}, homeUrl, 'Home', 'pt-userhome', null);

// navigation: $nav_custom.addNavLink({pagename: spUserTalk + "todo"}); $nav_custom.addNavLink({pagename: spUser + "sandbox"}); $nav_custom.addNavLink({pagename: spUser + "monobook.js"}); // $nav_custom.addNavLink({pagename: spUser + "monobook",   //                         editpagename: spUser + "monobook.js"});

$nav_custom.delNavLink('n-help'); $nav_custom.delNavLink('n-contact'); $nav_custom.delNavLink('n-sitesupport'); };

$util.addOnloadHook(customizePortlets);

popupDelay = 1.5; //popupActionsMenu = false; //popupAdminLinks = true; // popupLiveOptions = true; // -->== Settings == simplePopups=false; popupAdminLinks=true; popupImages=false; imagePopupsForImages=false;