Help:Quickbar

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
m (added final message)
m (User:Lapper/help/quickbar moved to Help:Quickbar)

Revision as of 19:30, 15 October 2005

Hi there! This is Lapper from the recent changes patrol. I noticed you had a question and I'm here to help. Here's how to add a link to your quickbar:


1. First, decide what kind of link you would like to add. Here are some suggestions:

  • A page that you frequent, that isn't easily accessible.
  • One of your user space pages.
  • A friend's user page or talk page.

2. Find the complete address of that page, and copy it down.

3. Go to your monobook.js page by visiting the following address:

http://www.hrwiki.org/index.php/User:(Your user name)/monobook.js

4. Edit the page, and insert the following lines of code:

 gs*****InsertBefore = 'pt-@@@@@';
 function *****Link()
 {
   var user = document.getElementById( 'pt-userpage').firstChild.firstChild.data;
   var li = document.createElement( 'li' );
   li.id = 'pt-*****';
   var a = document.createElement( 'a' );
   a.appendChild( document.createTextNode( '******' ) );
   a.href = '#####'
   li.appendChild( a );
   if ( ! gs*****InsertBefore )
   {
      document.getElementById( 'pt-logout' ).parentNode.appendChild( li );
   }
   else
   {
       var before = document.getElementById( gs******InsertBefore );
       before.appendChild( li, before );
   }
 }
 if ( window.addEventListener ) window.addEventListener( 'load', *****Link, false );
 else if ( window.attachEvent ) window.attachEvent( 'onload', *****Link );

5. Now, look at all of the symbols in the code. You'll see stars, @ signs, and number signs. You need to replace them:

  • Where ever you see ***** in the code, replace it with your (very short) new link name. You will do this eight times.
  • Where you see @@@@@ in the code, replace it with one of the following names:
    • Replace it with userpage if you want the link to appear before your userpage link.
    • Replace it with mytalk if you want the link to appear before your my talk link.
    • Replace it with preferences if you want the link to appear before your preferences link.
    • Replace it with watchlist if you want the link to appear before your my watchlist link.
    • Replace it with mycontris if you want the link to appear before your my contributions link.
    • Replace it with logout if you want the link to appear before your log out link.
    • Delete that entire line of text if you want the link to appear after your log out link.
  • Where you see ##### in the code, replace it with the entire link path to the page you want to link to.

6. Now, save your edit, and reload the page. You should have a brand new link in your quickbar!

If you need any more help, leave me a message on my talk page. See you around.

Personal tools