m
m (some admin links to my left toolbar)
Line 1: Line 1:
  +
// ***** ADDITIONAL LINKS *****
  +
  +
function addBar() {
  +
document.getElementById('p-navigation').innerHTML +=
  +
'</div>'+
  +
'<div id=p-my wiki links=portlet>'+
  +
'<h5>Admin links</h5>'+
  +
'<div class=pBody><ul>'+
  +
'<li id=\><a href=\"/wiki/Category:Candidates for deletion">Deletion</a></li>'+
  +
'<li id=\><a href=\"/wiki/Category:Candidates for banning">Banning</a></li>'+
  +
'<li id=\><a href=\"/wiki/Special:Log">Logs</a></li>'+
  +
'</ul></div></div>';
  +
} //Close addBar()
  +
addOnloadHook(addBar); //Call addBar() on load
  +
  +
// ***** WIKI SWITCH *****
  +
 
/**** Guild Wars Wiki Tools - GuildWiki Switch
 
/**** Guild Wars Wiki Tools - GuildWiki Switch
 
* (c) 2007 by Patrick Westerhoff [poke]
 
* (c) 2007 by Patrick Westerhoff [poke]
Line 16: Line 33:
 
hookEvent( 'load', gwwtGuildWikiSwitch );
 
hookEvent( 'load', gwwtGuildWikiSwitch );
   
// ***** GEMSTALKER *****
+
// ***** GEM STALKER *****
   
hookEvent( 'load', function()
+
hookEvent( 'load', function()
{
+
{
 
if ( wgPageName != 'Special:Recentchanges' )
 
if ( wgPageName != 'Special:Recentchanges' )
 
return;
 
return;
Line 29: Line 46:
 
links[i].style.background = '#F0A637';
 
links[i].style.background = '#F0A637';
 
}
 
}
} );
+
} );

Revision as of 21:35, 17 December 2007

 // ***** ADDITIONAL LINKS *****

 function addBar() {
 document.getElementById('p-navigation').innerHTML += 
 '</div>'+
 '<div id=p-my wiki links=portlet>'+
   '<h5>Admin links</h5>'+
   '<div class=pBody><ul>'+
   '<li id=\><a href=\"/wiki/Category:Candidates for deletion">Deletion</a></li>'+
   '<li id=\><a href=\"/wiki/Category:Candidates for banning">Banning</a></li>'+
   '<li id=\><a href=\"/wiki/Special:Log">Logs</a></li>'+
    '</ul></div></div>';
 } //Close addBar()
 addOnloadHook(addBar); //Call addBar() on load

 // ***** WIKI SWITCH *****

 /**** Guild Wars Wiki Tools - GuildWiki Switch
  * (c) 2007 by Patrick Westerhoff [poke]
  */
 function gwwtGuildWikiSwitch ()
 {
   if ( wgNamespaceNumber < 100 )
   {
     var itemNode = document.createElement( 'li' );
     itemNode.appendChild( document.createElement( 'a' ) );
     itemNode.lastChild.href  = 'http://wiki.guildwars.com/wiki/' + wgCanonicalNamespace + ':' + encodeURIComponent( wgTitle );
     itemNode.lastChild.title = 'See this page on Guild Wars Wiki';
     itemNode.lastChild.appendChild( document.createTextNode( 'GWW' ) );
     document.getElementById( 'p-cactions' ).getElementsByTagName( 'ul' )[0].appendChild( itemNode );
   }
 }
 hookEvent( 'load', gwwtGuildWikiSwitch );

 // ***** GEM STALKER *****

 hookEvent( 'load', function()
 {
  if ( wgPageName != 'Special:Recentchanges' )
    return;
  
  var links = document.getElementById( 'bodyContent' ).getElementsByTagName( 'a' );
  for ( var i = 0; i < links.length; i++ )
  {
    if ( links[i].title.indexOf( 'User:Gem' ) > -1 )
      links[i].style.background = '#F0A637';
  }
 } );
Community content is available under CC-BY-NC-SA unless otherwise noted.