Jump to content

User:Gary Queen/layout.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Gary Queen (talk | contribs) at 17:44, 13 August 2010 (t). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/*
	hook
*/
addOnloadHook(function()
{
	afterJumpToNav = jumpToNav.nextSibling.nextSibling.nextSibling.nextSibling;
	paragraphs = content.getElementsByTagName('p');
	pBody = $('p-personal').getElementsByClassName('pBody')[0];
	pendingChanges = $('mw-fr-revisiontag');
	pPersonal = $('p-personal')
	relLinks = content.getElementsByClassName('rellink');
	section0 = $('section-0');
	siteSub = $('siteSub');
	toc = $('toc');
	tPrint = $('t-print');
	userMessages = content.getElementsByClassName('usermessage');
	wikiPreview = $('wikiPreview');
	wikitables = content.getElementsByClassName('wikitable');
});

/*
	useful functions
*/
function $(element)
{
	return document.getElementById(element);
}