User:Tim Rawlinson/vector.js

var first = $('#mw-content-text a[class~=image]').first; if (first) {	if (first.parent.hasClass('thumbimage')) first.parent.parent.addClass('hero'); else if (first.parent.hasClass('thumbinner')) first.parent.parent.addClass('hero'); else first.addClass("hero"); $('#content').addClass("hasHero"); first.html(first.html); }

var elements = document.querySelectorAll('div.thumb + div.thumb'); elements.forEach(function(element) {	element.classList.add("multi");	element.previousElementSibling.classList.add("multi"); });

$('.mw-body h2 > span.mw-headline').each(function {	var p = $(this).position;	p.position='absolute';	$(this).css(p);	$(this).addClass('repositioned'); });

$('#mw-navigation > h2').on('click', function(e){   $('body').toggleClass('state-menuExpanded');    e.preventDefault; });