User:Lyrithya/interface.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes.
- Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button, or press Ctrl+F5.
- Firefox: hold down the Shift key while clicking Reload; alternatively press Ctrl+F5 or Ctrl-Shift-R.
- Opera, Konqueror and Safari users can just click the Reload button.
- Chrome: press Ctrl+F5 or Shift+F5
function liveClock() {
if(document.getElementById( 'pt-logout' )) {
document.getElementById( 'pt-logout' ).style.display = 'none';
}
addPortletLink('p-personal', '/wiki/Special:Log/' + wgUserName, 'logs');
addPortletLink('p-personal', '/wiki/User:Lyrithya/full_listing', 'subpages');
// addPortletLink('p-personal', '/wiki/User:Lyrithya/deathlist', 'deathlist');
addPortletLink('p-personal', '/index.php?title=Special:UserLogout&returnto=' + encodeURIComponent(wgPageName), 'log out');
document.getElementById('pt-mytalk').firstChild.innerHTML = 'talk';
document.getElementById('pt-preferences').firstChild.innerHTML = 'preferences';
document.getElementById('pt-watchlist').firstChild.innerHTML = 'watchlist';
document.getElementById('pt-mycontris').firstChild.innerHTML = 'contributions';
liveClock.node = addPortletLink( 'p-personal', wgServer + wgScriptPath + '/index.php?title=' + encodeURIComponent( wgPageName ) + '&action=purge', '', 'utcdate' );
liveClock.node.style.fontSize = 'larger';
liveClock.node.style.fontWeight = 'bolder';
showTime();
}
YAHOO.util.Event.onContentReady('p-personal', liveClock);
function showTime() {
var dateNode = liveClock.node;
if( !dateNode ) {
return;
}
var now = new Date();
var hh = now.getUTCHours();
var mm = now.getUTCMinutes();
var ss = now.getUTCSeconds();
var time = ( hh < 10 ? '0' + hh : hh ) + ':' + ( mm < 10 ? '0' + mm : mm ) + ':' + ( ss < 10 ? '0' + ss : ss );
dateNode.firstChild.replaceChild( document.createTextNode( time ), dateNode.firstChild.firstChild );
window.setTimeout( showTime, 1000 );
}
function ani1() {
addPortletLink('p-tb', '/wiki/Special:Upload', 'Upload file');
addPortletLink('p-tb', '/wiki/Special:MultipleUpload', 'Upload mltple files');
addPortletLink('p-tb', '/wiki/Special:ImportFreeImages', 'Import file');
addPortletLink('p-tb', '/wiki/Special:AbuseFilter', 'AbuseFilter');
}
YAHOO.util.Event.onContentReady('p-tb', ani1);
function ani2() {
document.getElementById('n-Pee-Review').childNodes[0].href = '/wiki/User:Cajek/Pee';
addPortletLink('p-community', '/wiki/Uncyclopedia:Votes_for_Deletion', 'Votes for Deletion', 'n-vfd');
addPortletLink('p-community','/wiki/Uncyclopedia:QuickVFD', 'Quick Deletion', 'n-qd');
addPortletLink('p-community', '/wiki/Uncyclopedia:Ban_Patrol', 'Ban Patrol', 'n-bp');
$('#n-signpost').before($('#n-vfd'));
$('#n-signpost').before($('#n-qd'));
$('#n-signpost').before($('#n-bp'));
}
YAHOO.util.Event.onContentReady('p-community', ani2);
function ani3() {
addPortletLink('p-navigation','/wiki/Template:Lead_articles', 'Lead articles', 'n-unleads');
$('#n-about').before($('#n-unleads'));
}
YAHOO.util.Event.onContentReady('p-navigation', ani3);
function ani4() {
addPortletLink('p-participate','/wiki/Uncyclopedia:Maintenance', 'Maintenance');
addPortletLink('p-participate','/wiki/User:Lyrithya/maintenance', 'New Pages');
addPortletLink('p-participate','/wiki/Uncyclopedia:Notice Templates', 'Notices');
}
YAHOO.util.Event.onContentReady('p-participate', ani4);
function ani5() {
if(wgNamespaceNumber > -1) {
if (wgCanonicalNamespace == "Talk"
|| wgCanonicalNamespace == "UnTunes"
|| wgCanonicalNamespace == "UnNews"
|| wgCanonicalNamespace == "UnTune talk"
|| wgCanonicalNamespace == "UnNews talk"
|| wgCanonicalNamespace == "Game talk"
|| wgCanonicalNamespace == "Game"
|| wgCanonicalNamespace == "Babel"
|| wgCanonicalNamespace == "Babel talk")
var searchparm = wgTitle.replace(/ /g,'+');
else var searchparm = wgPageName.replace(/_/g,'+');
searchparm = searchparm.replace(/Uncyclopedia/g, 'Project');
if (tabbedls == true) addPortletLink('p-cactions', '', 'WP', 'ca-search', 'Information about this page');
else addPortletLink('p-cactions', '', 'Search', 'ca-search', 'Information about this page');
var searcha = new Array(3);
if (wgCanonicalNamespace == "Category") searcha[0] = ['/wiki/Special:CategoryTree/' + wgPageName, 'Category tree', 'd-cattree', 'Show category tree'];
else searcha[0] = ['/wiki/Special:PrefixIndex/' + wgPageName, 'Subpages', 'd-subpages', 'List subpages and other pages starting with this title'];
searcha[1] = ['http://en.wikipedia.org/wiki/Special:Search?search=' + searchparm, 'Wikipedia', 'd-wikipedia', 'Search Wikipedia for this title'];
searchparm = searchparm.replace(/User:|User\+talk:|Forum:|Forum\+talk:|Template:|Template\+talk:|Project:|Project\+talk:/g,'');
searchparm = searchparm.replace(/\/|:/g,'+');
searcha[2] = ['http://www.google.com/search?q=' + searchparm, 'Google', 'd-google', 'Search Google for this title'];
addCactionsDropdown('ca-search', searcha);
if (skin == 'monobook') document.getElementById('ca-search').getElementsByClassName('dropdown')[0].style.width = '75px';
}
}
YAHOO.util.Event.onContentReady('p-cactions', ani5);