User:Unknp13/global.js

/** * Link to tab *  By User:AnimatedCartoons */ $(function {    'use strict';    setTimeout(function  { if (location.hash === '' && $('.tabberlive').length !== 1) { return; }       var $nav = $('.tabbernav li'), $div = $('.tabberlive .tabbertab'), url = location.href; url = url.slice(url.indexOf('?tab=') + 5, url.indexOf('#')); $($nav[url]).addClass('tabberactive'); $($div[url]).removeClass('tabbertabhide'); for (var i = 0; i < $nav.length; i++) { if (parseInt(url, 10) !== i) { $($nav[i]).removeClass('tabberactive'); $($div[i]).addClass('tabbertabhide'); }       }        location.hash = location.hash; }, 1000); });