User:Kwiki/monobook.js

importScript('User:Ale_jrb/Scripts/igloo.js'); // User:Ale_jrb/Scripts/igloo

// Add a "Kate" link to your monobook "personal menu" list at the very // top of the page. //   //  Indicate where you would like "Kate" to appear: //   pt-userpage, pt-mytalk, pt-preferences, //   pt-watchlist, pt-mycontris, pt-logout // gsKateInsertBefore = 'pt-mycontris'; // leave blank to append after "logout" // function KateLink {   var user = document.getElementById( 'pt-userpage').firstChild.firstChild.data; var li = document.createElement( 'li' ); li.id = 'pt-kate'; var a = document.createElement( 'a' ); a.appendChild( document.createTextNode( 'SUL' ) ); // eh, the css makes the text lowercase a.href = 'http://toolserver.org/~vvv/sulutil.php?user=' + user; li.appendChild( a ); if ( ! gsKateInsertBefore ) // append to end (right) of list { document.getElementById( 'pt-logout' ).parentNode.appendChild( li ); }   else { var before = document.getElementById( gsKateInsertBefore ); before.appendChild( li, before ); } }     if ( window.addEventListener ) window.addEventListener( 'load', KateLink, false ); else if ( window.attachEvent     ) window.attachEvent   ( 'onload', KateLink );

// Add a "Kate" link to your monobook "personal menu" list at the very // top of the page. //   //  Indicate where you would like "Kate" to appear: //   pt-userpage, pt-mytalk, pt-preferences, //   pt-watchlist, pt-mycontris, pt-logout // gsKateInsertBefore2 = 'pt-mycontris'; // leave blank to append after "logout" // function KateLink2 {   var user = document.getElementById( 'pt-userpage').firstChild.firstChild.data; var li = document.createElement( 'li' ); li.id = 'pt-kate'; var a = document.createElement( 'a' ); a.appendChild( document.createTextNode( 'luxo' ) ); // eh, the css makes the text lowercase a.href = 'http://toolserver.org/~luxo/contributions/contributions.php?user=' + user + '&blocks=true&showclosed=true&lang=en'; li.appendChild( a ); if ( ! gsKateInsertBefore2 ) // append to end (right) of list { document.getElementById( 'pt-logout' ).parentNode.appendChild( li ); }   else { var before = document.getElementById( gsKateInsertBefore ); before.appendChild( li, before ); } }     if ( window.addEventListener ) window.addEventListener( 'load', KateLink2, false ); else if ( window.attachEvent     ) window.attachEvent   ( 'onload', KateLink2 );

if( typeof( FriendlyConfig ) == 'undefined' ) FriendlyConfig = {}; // DO NOT REMOVE THIS LINE - ALL FRIENDLY SETTINGS AFTER THIS FriendlyConfig.clockStyle			=	"dynamic"; FriendlyConfig.enableClock			=	true; FriendlyConfig.groupByDefault			=	true; FriendlyConfig.idsToRename			=	[ { id: 'ca-nstab-main', name: 'Main', mainPageOnly: true }, { id: 'ca-nstab-help', name: 'Help' }, { id: 'ca-nstab-special', name: 'Special' }, { id: 'ca-nstab-project', name: 'Project' }, { id: 'ca-nstab-user', name: 'User' }, { id: 'ca-edit', name: 'Edit' }, { id: 'ca-viewsource', name: 'Source' }, { id: 'ca-talk', name: 'Talk' }, { id: 'ca-undelete', name: 'Undelete' }, { id: 'ca-addsection', name: '+' } ]; FriendlyConfig.insertHeadings			=	true; FriendlyConfig.insertSignature			=	true; //sign welcome templates, where appropriate FriendlyConfig.insertTalkbackSignature		=	true; //always sign talkback templates FriendlyConfig.insertUsername			=	true; FriendlyConfig.markSharedIPAsMinor		=	true; FriendlyConfig.markTaggedPagesAsMinor		=	true; FriendlyConfig.markTaggedPagesAsPatrolled	=	true; FriendlyConfig.markTalkbackAsMinor		=	true; FriendlyConfig.markWelcomesAsMinor		=	true; FriendlyConfig.maskTemplateInSummary		=	true; FriendlyConfig.quickWelcomeMode			=	"auto"; FriendlyConfig.quickWelcomeTemplate		=	"Welcome"; FriendlyConfig.summaryAd			=	" using Friendly"; FriendlyConfig.talkbackHeading			=	"== Talkback =="; FriendlyConfig.topWelcomes			=	false; FriendlyConfig.watchTaggedPages			=	true; FriendlyConfig.watchWelcomes			=	false; FriendlyConfig.welcomeHeading			=	"== Welcome ==";