Board Thread:Support Requests - Getting Technical/@comment-1949364-20131227063716/@comment-4519283-20131227161437

Here's the entire script. It won't change unless the page refreshes, so you can't make a link inside the same page to a tab (that's a bug in Javascript). If you wanted to force a refresh you could by appending ?(something random) to the end of the script, if you wanted that I could write you a script.

To do it, link to #Tab(whatever tab number, starting with 0). For example, http://gravityfalls.wikia.com/wiki/List_of_allusions?oldid=191020#Tab0 or http://gravityfalls.wikia.com/wiki/List_of_allusions?oldid=191020#Tab1.

Put this script at the end of MediaWiki:Common.js (it could take a while to load): function switchtotab(n) {	if(!document.getElementsByClassName('tabbernav')[0].childNodes[n].classList.contains('tabberactive')) {		document.getElementsByClassName('tabbernav')[0].childNodes[n].classList.add('tabberactive'); }	for(var i=0;i<document.getElementsByClassName('tabbernav')[0].childNodes.length;) {		if(i===n) {			break; }		if(document.getElementsByClassName('tabbernav')[0].childNodes[i].classList.contains('tabberactive')) {			document.getElementsByClassName('tabbernav')[0].childNodes[i].classList.remove('tabberactive'); }		i++; }	if(document.getElementsByClassName('tabberlive')[0].childNodes[n+1].classList.contains('tabbertabhide')) {		document.getElementsByClassName('tabberlive')[0].childNodes[n+1].classList.remove('tabbertabhide'); }	for(var i=1;i<document.getElementsByClassName('tabberlive')[0].childNodes.length;i++) {		if(i===n+1) {			break; }		if(!document.getElementsByClassName('tabberlive')[0].childNodes[i].classList.contains('tabbertabhide')) {			document.getElementsByClassName('tabberlive')[0].childNodes[i].classList.add('tabbertabhide'); }	} } window.onload=function {	if(new RegExp("#Tab[0-9]").test(location.hash)) {		switchtotab(location.hash.charAt(location.hash.length - 1)*1); } }