<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hrwikitwice.com/index.php?action=history&amp;feed=atom&amp;title=Help%3AJavaScript</id>
	<title>Help:JavaScript - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://hrwikitwice.com/index.php?action=history&amp;feed=atom&amp;title=Help%3AJavaScript"/>
	<link rel="alternate" type="text/html" href="https://hrwikitwice.com/index.php?title=Help:JavaScript&amp;action=history"/>
	<updated>2026-07-21T12:49:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://hrwikitwice.com/index.php?title=Help:JavaScript&amp;diff=31823&amp;oldid=prev</id>
		<title>imported&gt;HRWikiMirrorBot: Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert)</title>
		<link rel="alternate" type="text/html" href="https://hrwikitwice.com/index.php?title=Help:JavaScript&amp;diff=31823&amp;oldid=prev"/>
		<updated>2026-07-18T21:00:57Z</updated>

		<summary type="html">&lt;p&gt;Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert)&lt;/p&gt;
&lt;a href=&quot;https://hrwikitwice.com/index.php?title=Help:JavaScript&amp;amp;diff=31823&amp;amp;oldid=18477&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>imported&gt;HRWikiMirrorBot</name></author>
	</entry>
	<entry>
		<id>https://hrwikitwice.com/index.php?title=Help:JavaScript&amp;diff=18477&amp;oldid=prev</id>
		<title>imported&gt;HRWikiMirrorBot: Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert)</title>
		<link rel="alternate" type="text/html" href="https://hrwikitwice.com/index.php?title=Help:JavaScript&amp;diff=18477&amp;oldid=prev"/>
		<updated>2026-07-18T17:00:33Z</updated>

		<summary type="html">&lt;p&gt;Reimported from hrwiki.org Wayback HTML→wikitext (full reconvert)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- Mirrored from Homestar Runner Wiki (hrwiki.org) via Wayback Machine --&amp;gt;&lt;br /&gt;
You can add JavaScript to any page, to let you customize how the page looks. If you use the Monobook skin (the default) you can put the Javascript [/wiki/Special:MyPage/monobook.js here]. If you use Tavistyle you can put it [/wiki/Special:MyPage/tavistyle.js here], or if you use Cologne Blue you can put it [/wiki/Special:MyPage/cologneblue.js here].&lt;br /&gt;
&lt;br /&gt;
There are a lot of &amp;quot;helper&amp;quot; functions available. To use them, put {{subst:[[Template:utilities|utilities]]}} at the top of this page. When you save, this will become&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;// include utility functions&lt;br /&gt;
document.write(&amp;#039;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;/index.php?title=User:Phlip/utilities.js&amp;amp;action=raw&amp;amp;ctype=text/javascript&amp;amp;dontcountme=s&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&amp;#039;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which will include all the relevant code. If you want to stop using them, just remove those two lines.&lt;br /&gt;
&lt;br /&gt;
They have been tested in Firefox and Internet Explorer (5.0, 5.5 and 6.0).&lt;br /&gt;
&lt;br /&gt;
If you don&amp;#039;t understand JavaScript, feel free to skip down to [#Examples Examples] and mix &amp;amp; match the pieces into the template in [#General General].&lt;br /&gt;
&lt;br /&gt;
== General ==&lt;br /&gt;
&lt;br /&gt;
You need to set up the code to be run when the page has loaded (otherwise it will try to edit a page that doesn&amp;#039;t exist yet). Your JavaScript page should basically look like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{subst:utilities}}&lt;br /&gt;
&lt;br /&gt;
function doeverything()&lt;br /&gt;
{&lt;br /&gt;
  // code goes here&lt;br /&gt;
}&lt;br /&gt;
if (window.addEventListener) window.addEventListener(&amp;quot;load&amp;quot;,doeverything,false);&lt;br /&gt;
else if (window.attachEvent) window.attachEvent(&amp;quot;onload&amp;quot;,doeverything);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and put the things below where it says &amp;#039;&amp;#039;// code goes here&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Available functions ==&lt;br /&gt;
&lt;br /&gt;
All these functions are on an object called utilities. So to call them you need to type utilities.&amp;#039;&amp;#039;function&amp;#039;&amp;#039;(&amp;#039;&amp;#039;parameters&amp;#039;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
=== Information ===&lt;br /&gt;
&lt;br /&gt;
==== getArticleFullTitle ====&lt;br /&gt;
&lt;br /&gt;
utilities.getArticleFullTitle()&lt;br /&gt;
&lt;br /&gt;
Returns the title of the current page, like &amp;quot;Help:JavaScript&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;alert(&amp;quot;You&amp;#039;re looking at &amp;quot; + utilities.getArticleFullTitle());&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== getArticleTitle ====&lt;br /&gt;
&lt;br /&gt;
utilities.getArticleTitle()&lt;br /&gt;
&lt;br /&gt;
Returns the title of the current page without the namespace, like &amp;quot;JavaScript&amp;quot;. This is useful if you want to be able to find the associated talk page (see [#talknamespace talknamespace])&lt;br /&gt;
&lt;br /&gt;
==== getArticleNamespace ====&lt;br /&gt;
&lt;br /&gt;
utilities.getArticleNamespace()&lt;br /&gt;
&lt;br /&gt;
Returns the [[Help:Namespaces|namespace]] of the current page. Note that this returns a [[Help:Namespace|magical number]] – to get the actual name, see [#namespaces namespaces] below.&lt;br /&gt;
&lt;br /&gt;
==== getArticleURL ====&lt;br /&gt;
&lt;br /&gt;
utilities.getArticleURL()&lt;br /&gt;
&lt;br /&gt;
Returns the URL for the page you&amp;#039;re looking at. Note that this is a link to the &amp;#039;&amp;#039;article&amp;#039;&amp;#039;, not the exact page you&amp;#039;re looking at – for example if you&amp;#039;re editing a page, it will still link to the real page (not the edit page). If you want the full link, use window.location.&lt;br /&gt;
&lt;br /&gt;
==== localurl ====&lt;br /&gt;
&lt;br /&gt;
utilities.localurl(&amp;#039;&amp;#039;page&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;namespace&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;extras&amp;#039;&amp;#039;]])&lt;br /&gt;
&lt;br /&gt;
Returns the URL of the given page. Again, the namespace should be a number. Examples:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;utilities.localurl(&amp;quot;Main Page&amp;quot;)&lt;br /&gt;
utilities.localurl(&amp;quot;User:Me&amp;quot;) // this works&lt;br /&gt;
utilities.localurl(&amp;quot;Me&amp;quot;, 2)   // this works too&lt;br /&gt;
utilities.localurl(&amp;quot;Me&amp;quot;, 2, &amp;quot;action=edit&amp;quot;) // an &amp;quot;edit&amp;quot; link for User:Me&lt;br /&gt;
utilities.localurl(utilities.getArticleTitle(), utilities.getArticleNamespace(), &amp;quot;action=edit&amp;quot;) // an &amp;quot;edit&amp;quot; link for the current page&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== namespaces ====&lt;br /&gt;
&lt;br /&gt;
utilities.namespaces[&amp;#039;&amp;#039;number&amp;#039;&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
An array of the names of each namespace. This is blank for the Main namespace, and the name for all the others.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;var ns = utilities.getArticleNamespace();&lt;br /&gt;
if (ns == 0)&lt;br /&gt;
  alert(&amp;quot;You&amp;#039;re looking at the main namespace!&amp;quot;);&lt;br /&gt;
else&lt;br /&gt;
  alert(&amp;quot;You&amp;#039;re looking at &amp;quot; + utilities.namespaces[ns] + &amp;quot;!&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== namespacedescription ====&lt;br /&gt;
&lt;br /&gt;
utilities.namespacedescription[&amp;#039;&amp;#039;number&amp;#039;&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
An array of the descriptions of each namespace – what the tabs are labeled with in Monobook. For example &amp;quot;Project Page&amp;quot; for a [[HRWiki:The Stick|HRWiki namespace page]], etc.&lt;br /&gt;
&lt;br /&gt;
==== articlenamespace ====&lt;br /&gt;
&lt;br /&gt;
utilities.articlenamespace[&amp;#039;&amp;#039;number&amp;#039;&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
An array of the article namespace for each talk namespace. For example 2 is &amp;quot;User&amp;quot; and 3 is &amp;quot;User talk&amp;quot;, so utilities.articlenamespace[2] and  utilities.articlenamespace[3] are both 2.&lt;br /&gt;
&lt;br /&gt;
==== talknamespace ====&lt;br /&gt;
&lt;br /&gt;
utilities.talknamespace[&amp;#039;&amp;#039;number&amp;#039;&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
An array of the talk namespace for each article namespace. For example 2 is &amp;quot;User&amp;quot; and 3 is &amp;quot;User talk&amp;quot;, so utilities.talknamespace[2] and  utilities.talknamespace[3] are both 3. utilities.talknamespace[-1] (the Special namespace) doesn&amp;#039;t exist.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;var ns = getArticleNamespace();&lt;br /&gt;
var talkpage = utilities.localurl(utilities.getArticleTitle(), utilities.talknamespace[ns]);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Monobook-specific ===&lt;br /&gt;
&lt;br /&gt;
These functions only work in the Monobook skin – if you try to use them elsewhere you&amp;#039;ll get a big obnoxious error message telling you to fix it.&lt;br /&gt;
&lt;br /&gt;
==== addMonobookQuickbarLink ====&lt;br /&gt;
&lt;br /&gt;
utilities.addMonobookQuickbarLink(&amp;#039;&amp;#039;URL&amp;#039;&amp;#039;, &amp;#039;&amp;#039;title&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;where&amp;#039;&amp;#039;])&lt;br /&gt;
&lt;br /&gt;
Adds a link to the &amp;quot;quickbar&amp;quot; (the bar with links to your user page, your talk page, logout, etc). &amp;quot;Where&amp;quot; should be one of:&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;userpage&amp;quot; if you want the link to appear before your &amp;#039;&amp;#039;&amp;#039;userpage&amp;#039;&amp;#039;&amp;#039; link.&lt;br /&gt;
* &amp;quot;mytalk&amp;quot; if you want the link to appear before your &amp;#039;&amp;#039;&amp;#039;my talk&amp;#039;&amp;#039;&amp;#039; link.&lt;br /&gt;
* &amp;quot;preferences&amp;quot; if you want the link to appear before your &amp;#039;&amp;#039;&amp;#039;preferences&amp;#039;&amp;#039;&amp;#039; link.&lt;br /&gt;
* &amp;quot;watchlist&amp;quot; if you want the link to appear before your &amp;#039;&amp;#039;&amp;#039;my watchlist&amp;#039;&amp;#039;&amp;#039; link.&lt;br /&gt;
* &amp;quot;mycontris&amp;quot; if you want the link to appear before your &amp;#039;&amp;#039;&amp;#039;my contributions&amp;#039;&amp;#039;&amp;#039; link.&lt;br /&gt;
* &amp;quot;logout&amp;quot; if you want the link to appear before your &amp;#039;&amp;#039;&amp;#039;log out&amp;#039;&amp;#039;&amp;#039; link.&lt;br /&gt;
* Leave it off entirely if you want the link to appear after your &amp;#039;&amp;#039;&amp;#039;log out&amp;#039;&amp;#039;&amp;#039; link.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;utilities.addMonobookQuickbarLink(utilities.localurl(&amp;quot;Main Page&amp;quot;), &amp;quot;Back Home&amp;quot;, &amp;quot;userpage&amp;quot;)&lt;br /&gt;
utilities.addMonobookQuickbarLink(&amp;quot;http://www.somesite.com/&amp;quot;, &amp;quot;Outta Here&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== addMonobookTab ====&lt;br /&gt;
&lt;br /&gt;
utilities.addMonobookTab(&amp;#039;&amp;#039;URL&amp;#039;&amp;#039;, &amp;#039;&amp;#039;title&amp;#039;&amp;#039;, &amp;#039;&amp;#039;padding&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;at start&amp;#039;&amp;#039;])&lt;br /&gt;
&lt;br /&gt;
Adds a link to the tab bar (the bar with links to the page, the talk page, edit, history, etc). &amp;#039;&amp;#039;padding&amp;#039;&amp;#039; lets you group the tabs together (like edit and history are) – if it&amp;#039;s set to true it will be separated from the other links, if you set it to false it won&amp;#039;t be. &amp;#039;&amp;#039;at start&amp;#039;&amp;#039; says whether to add the tab to the start or to the end (the tab bar changes too much to be able to say &amp;quot;put it here&amp;quot;... some pages don&amp;#039;t have an &amp;quot;edit&amp;quot; link if they&amp;#039;re protected, Special pages only have the &amp;quot;special&amp;quot; tab...). If you leave &amp;#039;&amp;#039;at start&amp;#039;&amp;#039; off, it will put it on the end.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;utilities.addMonobookQuickbarLink(&amp;quot;http://www.somesite.com/&amp;quot;, &amp;quot;A&amp;quot;, true)  //  \&lt;br /&gt;
utilities.addMonobookQuickbarLink(&amp;quot;http://www.somesite.com/&amp;quot;, &amp;quot;B&amp;quot;, false) //   } these links will all be grouped together&lt;br /&gt;
utilities.addMonobookQuickbarLink(&amp;quot;http://www.somesite.com/&amp;quot;, &amp;quot;C&amp;quot;, false) //  /&lt;br /&gt;
utilities.addMonobookQuickbarLink(&amp;quot;http://www.somesite.com/&amp;quot;, &amp;quot;Loner&amp;quot;, true) //  this one will start a new group&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== addMonobookNavboxLink ====&lt;br /&gt;
&lt;br /&gt;
utilities.addMonobookNavboxLink(&amp;#039;&amp;#039;URL&amp;#039;&amp;#039;, &amp;#039;&amp;#039;title&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;which one&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;at start&amp;#039;&amp;#039;]])&lt;br /&gt;
&lt;br /&gt;
Adds a link to the navigation boxes (the ones to the left). If &amp;#039;&amp;#039;which one&amp;#039;&amp;#039; is left off it will add to the &amp;quot;navigation&amp;quot; box. It can be set to:&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;navigation&amp;quot; to add to &amp;#039;&amp;#039;&amp;#039;navigation&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;quot;tb&amp;quot; to add to the &amp;#039;&amp;#039;&amp;#039;toolbox&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;quot;ext&amp;quot; to add to &amp;#039;&amp;#039;&amp;#039;external links&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Again, &amp;#039;&amp;#039;at start&amp;#039;&amp;#039; can be true to add it to the top, or false (or leave it off) to add it to the bottom.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;utilities.addMonobookNavboxLink(utilities.localurl(&amp;quot;Toons&amp;quot;), &amp;quot;Toons&amp;quot;)&lt;br /&gt;
utilities.addMonobookNavboxLink(&amp;quot;http://www.somesite.com/&amp;quot;, &amp;quot;Some Site&amp;quot;, &amp;quot;ext&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== addMonobookBottomTabs ====&lt;br /&gt;
&lt;br /&gt;
utilities.addMonobookBottomTabs([&amp;#039;&amp;#039;no CSS&amp;#039;&amp;#039;])&lt;br /&gt;
&lt;br /&gt;
Copies the tab bar to the bottom of the page. If you use [#addMonobookTab addMonobookTab], this should come &amp;#039;&amp;#039;after&amp;#039;&amp;#039; those (so the new tabs will be copied too). Normally this adds a lot of extra CSS to the page to get it to work – if you&amp;#039;d rather add the CSS yourself to [/wiki/Special:MyPage/monobook.css your custom CSS], then you can pass a true for &amp;#039;&amp;#039;no CSS&amp;#039;&amp;#039; – usually you can just leave it off entirely and it will work without extra effort.&lt;br /&gt;
&lt;br /&gt;
=== Cologne Blue-specific ===&lt;br /&gt;
&lt;br /&gt;
These functions only work in the Cologne Blue skin – if you try to use them elsewhere you&amp;#039;ll get a big obnoxious error message telling you to fix it.&lt;br /&gt;
&lt;br /&gt;
==== cologneBlueNewMessages ====&lt;br /&gt;
&lt;br /&gt;
utilities.cologneBlueNewMessages()&lt;br /&gt;
&lt;br /&gt;
Returns true if you nave new messages. The Cologne Blue &amp;quot;You have new messages&amp;quot; message isn&amp;#039;t as &amp;quot;in your face&amp;quot; as the Monobook and TaviStyle ones are. This allows you to fix that, if you want.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (utilities.cologneBlueNewMessages())&lt;br /&gt;
  alert (&amp;quot;Dude! Check your messages!&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== addCologneBlueQuickbarLink ====&lt;br /&gt;
&lt;br /&gt;
utilities.addCologneBlueQuickbarLink(&amp;#039;&amp;#039;URL&amp;#039;&amp;#039;, &amp;#039;&amp;#039;title&amp;#039;&amp;#039;, &amp;#039;&amp;#039;section&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;at start&amp;#039;&amp;#039;])&lt;br /&gt;
&lt;br /&gt;
Adds a link to the &amp;quot;quickbar&amp;quot; (the links to the left). &amp;#039;&amp;#039;section&amp;#039;&amp;#039; is the title of the section to add the link under. &amp;#039;&amp;#039;at start&amp;#039;&amp;#039; can be set to true to add the link to the top of the section, or false (or left off entirely) to add it to the bottom. If the section doesn&amp;#039;t exist, it&amp;#039;ll be added to the bottom.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;utilities.addMonobookNavboxLink(utilities.localurl(&amp;quot;Toons&amp;quot;), &amp;quot;Toons&amp;quot;, &amp;quot;Browse&amp;quot;)&lt;br /&gt;
utilities.addMonobookNavboxLink(&amp;quot;http://www.somesite.com/&amp;quot;, &amp;quot;Some Site&amp;quot;, &amp;quot;External Links&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== addCologneBlueTopbarLink ====&lt;br /&gt;
&lt;br /&gt;
utilities.addCologneBlueTopbarLink(&amp;#039;&amp;#039;URL&amp;#039;&amp;#039;, &amp;#039;&amp;#039;title&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;at start&amp;#039;&amp;#039;])&lt;br /&gt;
&lt;br /&gt;
Adds a link to the first top bar (the one with the Main Page, Log Out, etc links).&lt;br /&gt;
&lt;br /&gt;
==== addCologneBlueSubtopbarLink ====&lt;br /&gt;
&lt;br /&gt;
utilities.addCologneBlueSubtopbarLink(&amp;#039;&amp;#039;URL&amp;#039;&amp;#039;, &amp;#039;&amp;#039;title&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;at start&amp;#039;&amp;#039;])&lt;br /&gt;
&lt;br /&gt;
Adds a link to the second top bar (the one with the Printable Version, etc links).&lt;br /&gt;
&lt;br /&gt;
=== TaviStyle-specific ===&lt;br /&gt;
&lt;br /&gt;
These functions only work in the TaviStyle skin – if you try to use them elsewhere you&amp;#039;ll get a big obnoxious error message telling you to fix it.&lt;br /&gt;
&lt;br /&gt;
==== addTavistyleTopbarLink ====&lt;br /&gt;
&lt;br /&gt;
utilities.addTavistyleTopbarLink(&amp;#039;&amp;#039;URL&amp;#039;&amp;#039;, &amp;#039;&amp;#039;title&amp;#039;&amp;#039;, &amp;#039;&amp;#039;row&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;at start&amp;#039;&amp;#039;])&lt;br /&gt;
&lt;br /&gt;
Add a link to the red links at the top of the page. Setting &amp;#039;&amp;#039;row&amp;#039;&amp;#039; to 1 will add it to the top row (Home, Forum, etc), 2 will add it to the second row (RecentChanges, etc). 3 will add a new row. &amp;#039;&amp;#039;at start&amp;#039;&amp;#039; can be set to true to add the link to the start of the row, or false (or left off entirely) to add it to the end.&lt;br /&gt;
&lt;br /&gt;
==== addTavistyleBottombarLink ====&lt;br /&gt;
&lt;br /&gt;
utilities.addTavistyleBottombarLink(&amp;#039;&amp;#039;URL&amp;#039;&amp;#039;, &amp;#039;&amp;#039;title&amp;#039;&amp;#039;, &amp;#039;&amp;#039;row&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;at start&amp;#039;&amp;#039;])&lt;br /&gt;
&lt;br /&gt;
Add a link to the red links at the top of the page. Setting &amp;#039;&amp;#039;row&amp;#039;&amp;#039; to 1 will add it to the top row (Edit, talk, etc), 2 will add it to the second row (Your user page, your talk, etc). 3 will add a new row. &amp;#039;&amp;#039;at start&amp;#039;&amp;#039; can be set to true to add the link to the start of the row, or false (or left off entirely) to add it to the end.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== For Monobook ===&lt;br /&gt;
&lt;br /&gt;
Add a couple of new links to the Quickbar:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;utilities.addMonobookQuickbarLink(utilities.localurl(&amp;quot;Main Page&amp;quot;), &amp;quot;Back Home&amp;quot;, &amp;quot;userpage&amp;quot;) // add it before the &amp;quot;userpage&amp;quot; link&lt;br /&gt;
utilities.addMonobookQuickbarLink(&amp;quot;http://www.somesite.com/&amp;quot;, &amp;quot;Outta Here&amp;quot;) // add it at the end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add a &amp;quot;Validate this page&amp;quot; tab:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;utilities.addMonobookTab(&amp;quot;http://validator.w3.org/check?uri=&amp;quot; + escape(utilities.getArticleURL()), &amp;quot;Validate&amp;quot;, true)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add another row of tabs to the bottom of the screen:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;utilities.addMonobookBottomTabs()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== For Cologne Blue ===&lt;br /&gt;
&lt;br /&gt;
Add a &amp;quot;You&amp;#039;ve got new messages&amp;quot; banner:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (utilities.cologneBlueNewMessages())&lt;br /&gt;
{&lt;br /&gt;
  var div = document.createElement(&amp;quot;div&amp;quot;)&lt;br /&gt;
  div.setAttribute(&amp;quot;style&amp;quot;, &amp;quot;background: #FFCE7B; border: 1px solid #FFA500; color: black; font-weight: bold; margin: 2em 0 1em; padding: 0.5em 1em&amp;quot;);&lt;br /&gt;
  div.innerHTML = &amp;#039;You have &amp;lt;a href=&amp;quot;&amp;#039; + utilities.localurl(&amp;quot;Username&amp;quot;, 3) + &amp;#039;&amp;quot;&amp;gt;new messages&amp;lt;/a&amp;gt;.&amp;#039;;    &lt;br /&gt;
  var article = document.getElementById(&amp;#039;article&amp;#039;);&lt;br /&gt;
  article.insertBefore(div, article.firstChild);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add a couple of new links to the Quickbar:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;utilities.addMonobookQuickbarLink(utilities.localurl(&amp;quot;Toons&amp;quot;), &amp;quot;Toons&amp;quot;, &amp;quot;Browse&amp;quot;) // add a Toons link to the &amp;quot;Browse&amp;quot; section&lt;br /&gt;
utilities.addMonobookQuickbarLink(&amp;quot;http://www.homestarrunner.com/&amp;quot;, &amp;quot;Official Site&amp;quot;, &amp;quot;External links&amp;quot;) // add a new &amp;quot;External links&amp;quot; section with this in it.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add &amp;quot;article&amp;quot; and &amp;quot;talk page&amp;quot; links to the top bar, like Monobook&amp;#039;s tabs&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;var namespace = utilities.getArticleNamespace();&lt;br /&gt;
var title = utilities.getArticleTitle();&lt;br /&gt;
if (utilities.talknamespace[namespace])&lt;br /&gt;
{&lt;br /&gt;
  var talkNS = utilities.talknamespace[namespace];&lt;br /&gt;
  var talklink = utilities.addCologneBlueSubtopbarLink(utilities.localurl(title, talkNS), utilities.namespacedescription[talkNS], true);&lt;br /&gt;
  if (utilities.talknamespace[namespace] == namespace)&lt;br /&gt;
    talklink.style.fontWeight = &amp;quot;bold&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
var pageNS = utilities.articlenamespace[namespace]&lt;br /&gt;
var pagelink = utilities.addCologneBlueSubtopbarLink(utilities.localurl(title, pageNS), utilities.namespacedescription[pageNS], true);&lt;br /&gt;
  if (utilities.articlenamespace[namespace] == namespace)&lt;br /&gt;
    pagelink.style.fontWeight = &amp;quot;bold&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== For TaviStyle ===&lt;br /&gt;
&lt;br /&gt;
Add some new links to the top bar:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;utilities.addTavistyleTopbarLink(&amp;quot;http://fanstuff.hrwiki.org/&amp;quot;, &amp;quot;Fanstuff&amp;quot;, 1) // add the fanstuff to the top row&lt;br /&gt;
utilities.addTavistyleTopbarLink(utilities.localurl(&amp;quot;Toons&amp;quot;), &amp;quot;Toons&amp;quot;, 3) // add a third row, with an link to Toons&lt;br /&gt;
utilities.addTavistyleTopbarLink(&amp;quot;http://www.somesite.com/&amp;quot;, &amp;quot;Outta here&amp;quot;, 3) // add an external link to the third row&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Category:Help]]&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;HRWikiMirrorBot</name></author>
	</entry>
</feed>