MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

// Imports mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js&action=raw&ctype=text/javascript');

/* Menu */ var menuHTML = ''+ ' '+ ' Navigation ▾ '+ ' '+ ' '+ '   Manga'+ '       ▾ '+ '        ▾ '+ '     '+ '     '+ '     '+ '       Chapter List'+ '           ▸ '+ '            ▸ '+ '         '+ '         '+ '         '+ '			<li>English Volumes</a></li>'+ '			<li>French Volumes</a></li>'+ '			<li>JoJonium</a></li>'+ '			<li>Bunko Edition</a></li>'+ '			<li>Author\'s Note</a></li>'+ '         </ul>'+ '       </li>'+ '       <li>Parts'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm3">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm3">'+ '         <ul class="sub-menu smallmenu">'+ '			<li>Phantom Blood</a></li>'+ '			<li>Battle Tendency</a></li>'+ '			<li>Stardust Crusaders</a></li>'+ '			<li>Diamond is Unbreakable</a></li>'+ '			<li>Vento Aureo</a></li>'+ '			<li>Stone Ocean</a></li>'+ '			<li>Steel Ball Run</a></li>'+ '			<li>JoJolion</a></li>'+ '         </ul>'+ '       </li>'+ '       <li>One-Shots'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm4">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm4">'+ '         <ul class="sub-menu smallmenu">'+ '				<li>Thus Spoke Kishibe Rohan</a></li>'+ '				<li><a href="/Under Execution Under Jailbreak">Under Execution Under Jailbreak</a></li>'+ '				<li><a href="/Dead Man\'s Questions">Dead Man\'s Questions</a></li>'+ '				<li><a href="/Dolce and His Master">Dolce and His Master</a></li>'+ '				<li><a href="/Rohan at the Louvre">Rohan at the Louvre</a></li>'+ '				<li><a href="/Rohan Kishibe Goes to Gucci">Rohan Kishibe Goes to Gucci</a></li>'+ '				<li><a href="/Jolyne, Fly High with GUCCI">Jolyne, Fly High with GUCCI</a></li>'+ '         </ul>'+ '       </li>'+ '       <li><a href="/Category:Artbook">Artbooks'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm5">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm5">'+ '         <ul class="sub-menu smallmenu">'+ '				<li><a href="/JoJo 6251">JoJo 6251</a></li>'+ '				<li><a href="/JOJO A-GO!GO!">JOJO A-GO!GO!</a></li>'+ '				<li><a href="/JOJOVELLER">JOJOVELLER</a></li>'+ '				<li><a href="/JOJOmenon">JOJOmenon</a></li>'+ '				<li><a href="/HIROHIKO ARAKI WORKS">HIROHIKO ARAKI WORKS</a></li>'+ '         </ul>'+ '       </li>'+ '       <li><a href="/Shueisha">Shueisha'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm6">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm6">'+ '         <ul class="sub-menu smallmenu">'+ '				<li><a href="/Hirohiko Araki">Hirohiko Araki</a></li>'+ '				<li><a href="/Lucky Land Communications">Lucky Land Communications</a></li>'+ '				<li><a href="/Weekly Shonen Jump">Weekly Shonen Jump</a></li>'+ '				<li><a href="/Ultra Jump">Ultra Jump</a></li>'+ '				<li><a href="/VIZ Media">VIZ Media</a></li>'+ '         </ul>'+ '       </li>'+ '	<li><a href="/Category:Story Arcs">Story Arcs</a></li>'+ '	</li>'+ '	</ul>'+ '   <li><a href="#">Media'+ '       ▾ '+ '        <label title="Toggle Drop-down" class="drop-icon" for="sm7">▾ '+ '     </a>'+ '     <input type="checkbox" id="sm7">'+ '     <ul class="sub-menu">'+ '       <li><a href="/Category:JoJo Anime">Anime'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm8">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm8">'+ '         <ul class="sub-menu smallmenu">'+ '			<li><a href="/List of JoJo\'s Bizarre Adventure episodes">Episode List</a></li>'+ '			<li><a href="/JoJo\'s Bizarre Adventure: The Animation">Phantom Blood & Battle Tendency (S1)</a></li>'+ '			<li><a href="/JoJo\'s Bizarre Adventure: Stardust Crusaders">Stardust Crusaders (S2)</a></li>'+ '			<li><a href="/JoJo\'s Bizarre Adventure: Diamond is Unbreakable">Diamond is Unbreakable (S3)</a></li>'+ '			<li><a href="/JoJo\'s Bizarre Adventure: Golden Wind">Golden Wind (S4)</a></li>'+ '			<li><a href="/JoJo\'s Bizarre Adventure (OVA)">Stardust Crusaders (OVA)</a></li>'+ '			<li><a href="/Blu-Ray/DVD Releases">Blu-Ray/DVD Releases</a></li>'+ '         </ul>'+ '       </li>'+ '       <li><a href="/List by Console">Video Games'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm9">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm9">'+ '         <ul class="sub-menu smallmenu">'+ '				<li><a href="/JoJo\'s Bizarre Adventure (SFC Game)">JoJo\'s Bizarre Adventure (SFC)</a></li>'+ '				<li><a href="/JoJo\'s Bizarre Adventure: Heritage for the Future">Heritage for the Future (Arcade/DC/PS1)</a></li>'+ '				<li><a href="/GioGio\'s Bizarre Adventure">GioGio\'s Bizarre Adventure (PS2)</a></li>'+ '				<li><a href="/JoJo\'s Bizarre Adventure: Phantom Blood (PS2 Game)">Phantom Blood (PS2)</a></li>'+ '				<li><a href="/JoJo\'s Bizarre Adventure: All Star Battle">All Star Battle (PS3)</a></li>'+ '				<li><a href="/JoJo\'s Bizarre Adventure: Eyes of Heaven">Eyes of Heaven (PS3/PS4)</a></li>'+ '				<li><a href="/JoJo\'s Bizarre Adventure: Last Survivor">Last Survivor (Arcade)</a></li>'+ '         </ul>'+ '       </li>'+ '       <li><a href="/Category:Application">Applications'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm10">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm10">'+ '         <ul class="sub-menu smallmenu">'+ '				<li><a href="/JoJo\'s Bizarre Adventure: The Official App">Official App</a></li>'+ '				<li><a href="/JoJo\'s Bizarre Adventure: Stardust Shooters">Stardust Shooters</a></li>'+ '				<li><a href="/JoJo\'s Bizarre Adventure: Diamond Records">Diamond Records</a></li>'+ '				<li><a href="/JoJo\'s Pitter-Patter Pop!">JoJo\'s Pitter-Patter Pop!</a></li>'+ '         </ul>'+ '       </li>'+ '       <li><a href="/Category:Light_Novels">Novels'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm11">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm11">'+ '         <ul class="sub-menu smallmenu">'+ '				<li><a href="/JoJo\'s Bizarre Adventure (novel)">The Genesis of Universe</a></li>'+ '				<li><a href="/GioGio\'s Bizarre Adventure 2: Golden Heart, Golden Ring">Golden Heart, Golden Ring</a></li>'+ '				<li><a href="/The Book: JoJo\'s Bizarre Adventure 4th Another Day"> 4th Another Day</a></li>'+ '				<li><a href="/Purple Haze Feedback">Purple Haze Feedback</a></li>'+ '				<li><a href="/JoJo\'s Bizarre Adventure Over Heaven">Over Heaven</a></li>'+ '				<li><a href="/Jorge Joestar">Jorge Joestar</a></li>'+ '         </ul>'+ '       </li>'+ '		<li><a href="/Music">Music</a></li>'+ '		<li><a href="/Merchandise">Merchandise</a></li>'+ '		<li><a href="/References">References'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm12">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm12">'+ '         <ul class="sub-menu smallmenu">'+ '				<li><a href="/Interview Archive">Interview Archive</a></li>'+ '				<li><a href="/Art Timeline">Art Timeline</a></li>'+ '				<li><a href="/Release Timeline">Release Timeline</a></li>'+ '				<li><a href="/List of cultural references and inspirations from JoJo\'s Bizarre Adventure">Cultural Impact</a></li>'+ '				<li><a href="/List of cultural references in JoJo\'s Bizarre Adventure">Influences on JoJo</a></li>'+ '         </ul>'+ '		 </li>'+ '	</ul>'+ '	</li>'+ '   <li><a href="/Category:Characters">Characters'+ '       ▾ '+ '        <label title="Toggle Drop-down" class="drop-icon" for="sm13">▾ '+ '		</a>'+ '     <input type="checkbox" id="sm13">'+ '     <ul class="sub-menu">'+ '       <li><a href="/JoJo">Protagonists'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm14">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm14">'+ '         <ul class="sub-menu smallmenu">'+ '				<li><a href="/Jonathan Joestar">Jonathan Joestar</a></li>'+ '				<li><a href="/Joseph Joestar">Joseph Joestar</a></li>'+ '				<li><a href="/Jotaro Kujo">Jotaro Kujo</a></li>'+ '				<li><a href="/Josuke Higashikata">Josuke Higashikata</a></li>'+ '				<li><a href="/Giorno Giovanna">Giorno Giovanna</a></li>'+ '				<li><a href="/Jolyne Cujoh">Jolyne Cujoh</a></li>'+ '				<li><a href="/Johnny Joestar">Johnny Joestar</a></li>'+ '				<li><a href="/Josuke Higashikata (JoJolion)">Josuke Higashikata (JJL)</a></li>'+ '         </ul>'+ '       </li>'+ '       <li><a href="/Category:Antagonists">Antagonists'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm15">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm15">'+ '         <ul class="sub-menu smallmenu">'+ '				<li><a href="/Dio Brando">Dio Brando</a></li>'+ '				<li><a href="/Kars">Kars</a></li>'+ '				<li><a href="/Yoshikage Kira">Yoshikage Kira</a></li>'+ '				<li><a href="/Diavolo">Diavolo</a></li>'+ '				<li><a href="/Enrico Pucci">Enrico Pucci</a></li>'+ '				<li><a href="/Funny Valentine">Funny Valentine</a></li>'+ '				<li><a href="/Rokakaka Organization">Rokakaka Organization</a></li>'+ '         </ul>'+ '       </li>'+ '       <li><a href="/Joestar Group">Main Allies'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm16">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm16">'+ '         <ul class="sub-menu smallmenu">'+ '				<li><a href="#">Parts 1-3'+ '					 ▸ '+ '					<label title="Toggle Drop-down" class="drop-icon" for="sm17">▸ '+ '					</a>'+ '					<input type="checkbox" id="sm17">'+ '					<ul class="sub-menu smallmenu">'+ '						<li><a href="/Will Anthonio Zeppeli">Will A. Zeppeli</a></li>'+ '						<li><a href="/Robert E. O. Speedwagon">Robert E. O. Speedwagon</a></li>'+ '						<li><a href="/Caesar Anthonio Zeppeli">Caesar A. Zeppeli</a></li>'+ '						<li><a href="/Lisa Lisa">Lisa Lisa</a></li>'+ '						<li><a href="/Rudol von Stroheim">Rudol von Stroheim</a></li>'+ '						<li><a href="/Noriaki Kakyoin">Noriaki Kakyoin</a></li>'+ '						<li><a href="/Jean Pierre Polnareff">Jean Pierre Polnareff</a></li>'+ '						<li><a href="/Muhammad Avdol">Muhammad Avdol</a></li>'+ '						<li><a href="/Iggy">Iggy</a></li>'+ '					</ul>'+ '				</li>'+ '				<li><a href="#">Parts 4-6'+ '					 ▸ '+ '					<label title="Toggle Drop-down" class="drop-icon" for="sm18">▸ '+ '					</a>'+ '					<input type="checkbox" id="sm18">'+ '					<ul class="sub-menu smallmenu">'+ '						<li><a href="/Koichi Hirose">Koichi Hirose</a></li>'+ '						<li><a href="/Okuyasu Nijimura">Okuyasu Nijimura</a></li>'+ '						<li><a href="/Rohan Kishibe">Rohan Kishibe</a></li>'+ '						<li><a href="/Bruno Bucciarati">Bruno Bucciarati</a></li>'+ '						<li><a href="/Guido Mista">Guido Mista</a></li>'+ '						<li><a href="/Narancia Ghirga">Narancia Ghirga</a></li>'+ '						<li><a href="/Leone Abbacchio">Leone Abbacchio</a></li>'+ '						<li><a href="/Pannacotta Fugo">Pannacotta Fugo</a></li>'+ '						<li><a href="/Trish Una">Trish Una</a></li>'+ '						<li><a href="/Emporio Alniño">Emporio Alniño</a></li>'+ '						<li><a href="/Ermes Costello">Ermes Costello</a></li>'+ '						<li><a href="/Foo Fighters">Foo Fighters</a></li>'+ '						<li><a href="/Weather Report">Weather Report</a></li>'+ '						<li><a href="/Narciso Anasui">Narciso Anasui</a></li>'+ '					</ul>'+ '				</li>'+ '				<li><a href="#">Parts 7-8'+ '					 ▸ '+ '					<label title="Toggle Drop-down" class="drop-icon" for="sm19">▸ '+ '					</a>'+ '					<input type="checkbox" id="sm19">'+ '					<ul class="sub-menu smallmenu">'+ '						<li><a href="/Gyro Zeppeli">Gyro Zeppeli</a></li>'+ '						<li><a href="/Lucy Steel">Lucy Steel</a></li>'+ '						<li><a href="/Hot Pants">Hot Pants</a></li>'+ '						<li><a href="/Mountain Tim">Mountain Tim</a></li>'+ '						<li><a href="/Yasuho Hirose">Yasuho Hirose</a></li>'+ '						<li><a href="/Rai Mamezuku">Rai Mamezuku</a></li>'+ '					</ul>'+ '				</li>'+ '         </ul>'+ '       </li>'+ '       <li><a href="/Groups">Groups'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm20">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm20">'+ '         <ul class="sub-menu smallmenu">'+ '				<li><a href="/Joestar Group">Joestar Group</a></li>'+ '				<li><a href="/Speedwagon Foundation">Speedwagon Foundation</a></li>'+ '				<li><a href="/Pillar Men">Pillar Men</a></li>'+ '				<li><a href="/Agents of DIO">Agents of DIO</a></li>'+ '				<li><a href="/Passione">Passione'+ '					 ▸ '+ '					<label title="Toggle Drop-down" class="drop-icon" for="sm21">▸ '+ '					</a>'+ '					<input type="checkbox" id="sm21">'+ '					<ul class="sub-menu smallmenu">'+ '						<li><a href="/Bucciarati\'s Gang">Bucciarati\'s Gang</a></li>'+ '						<li><a href="/La Squadra di Esecuzione">La Squadra di Esecuzione</a></li>'+ '						<li><a href="/Diavolo\'s Guard Squad">Diavolo\'s Guard Squad</a></li>'+ '					</ul>'+ '				</li>'+ '				<li><a href="/Valentine\'s Subordinates">Valentine\'s Subordinates</a></li>'+ '				<li><a href="/Rokakaka Organization">Rokakaka Organization</a></li>'+ '				<li><a href="/Families">Families</a></li>'+ '         </ul>'+ '       </li>'+ '       <li><a href="/Other Characters">Other'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm22">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm22">'+ '         <ul class="sub-menu smallmenu">'+ '				<li><a href="/Minor Characters">Minor Characters</a></li>'+ '				<li><a href="/Unnamed Characters">Unnamed Characters</a></li>'+ '				<li><a href="/List of Horses in Steel Ball Run">Steel Ball Run Horses</a></li>'+ '         </ul>'+ '       </li>'+ '	</ul>'+ '	</li>'+ '   <li><a href="#">World'+ '       ▾ '+ '        <label title="Toggle Drop-down" class="drop-icon" for="sm23">▾ '+ '     </a>'+ '     <input type="checkbox" id="sm23">'+ '     <ul class="sub-menu">'+ '				<li><a href="/Stand">Stands'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm24">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm24">'+ '         <ul class="sub-menu smallmenu">'+ '				<li><a href="/List of Stands">List of Stands</a></li>'+ '				<li><a href="/Stand Types">Stand Types</a></li>'+ '				<li><a href="/List of Unnamed Stands">Unnamed Stands</a></li>'+ '         </ul>'+ '       </li>'+ '			<li><a href="/Category:Items">Items'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm25">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm25">'+ '         <ul class="sub-menu smallmenu">'+ '				<li><a href="/Stone Mask">Stone Mask</a></li>'+ '				<li><a href="/Red Stone of Aja">Red Stone of Aja</a></li>'+ '				<li><a href="/Bow and Arrow">Bow and Arrow</a></li>'+ '				<li><a href="/Steel Ball">Steel Ball</a></li>'+ '				<li><a href="/Saint\'s Corpse">Saint\'s Corpse</a></li>'+ '				<li><a href="/Rokakaka">Rokakaka</a></li>'+ '				<li><a href="/Minor Items">Minor Items</a></li>'+ '         </ul>'+ '       </li>'+ '		<li><a href="/Category:Locations">Locations'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm26">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm26">'+ '         <ul class="sub-menu smallmenu">'+ '				<li><a href="/Joestar Mansion">Joestar Mansion</a></li>'+ '				<li><a href="/Windknight\'s Lot">Windknight\'s Lot</a></li>'+ '				<li><a href="/Air Supplena Island">Air Supplena Island</a></li>'+ '				<li><a href="/DIO\'s Mansion">DIO\'s Mansion</a></li>'+ '				<li><a href="/Morioh">Morioh</a></li>'+ '				<li><a href="/Green Dolphin Street Prison">Green Dolphin Street Prison</a></li>'+ '				<li><a href="/Morioh (JoJolion)">Morioh (JoJolion)</a></li>'+ '         </ul>'+ '       </li>'+ '		<li><a href="/Category:Concepts">Phenomena'+ '           ▸ '+ '            <label title="Toggle Drop-down" class="drop-icon" for="sm27">▸ '+ '         </a>'+ '         <input type="checkbox" id="sm27">'+ '         <ul class="sub-menu smallmenu">'+ '				<li><a href="/Ripple">Ripple</a></li>'+ '				<li><a href="/Spin">Spin</a></li>'+ '				<li><a href="/Joestar Birthmark">Joestar Birthmark</a></li>'+ '				<li><a href="/Vampire">Vampire</a></li>'+ '				<li><a href="/Zombie">Zombie</a></li>'+ '				<li><a href="/Ghost">Ghost</a></li>'+ '				<li><a href="/Pillar Men">Pillar Men</a></li>'+ '				<li><a href="/Rock Human">Rock Human</a></li>'+ '         </ul>'+ '       </li>'+ '		<li><a href="/List of JoJo\'s Bizarre Adventure Deaths">List of Deaths</a></li>'+ '		<li><a href="/Timeline">Timeline</a></li>'+ '	</ul>'+ '	</li>'+ '   <li><a href="#">Explore'+ '       ▾ '+ '        <label title="Toggle Drop-down" class="drop-icon" for="sm28">▾ '+ '     </a>'+ '	   <input type="checkbox" id="sm28">'+ '		<ul class="sub-menu">'+ '		<li><a href="/Main_Page">Main Page</a></li>'+ '		<li><a href="/Special:RecentChanges">Wiki Activity</a></li>'+ '		<li><a href="/Special:NewFiles">Images</a></li>'+ '		<li><a href="/Special:Random">Random Page</a></li>'+ '		<li><a href="/Category:JoJo Wiki Policy">Policies</a></li>'+ '		<li><a href="/JoJo Wiki:Useful Templates">Templates</a></li>'+ '               <li><a href="/JoJo Wiki:List of articles that need support">Maintenance</a></li>'+ '		</ul>'+ '	</li>'+ '</ul>'+ ' '+ ' ';

$(function {  $('#mw-topnavigation').html(menuHTML); });

$(document).ready( function { var topnav = $('#mw-topnavigation');  $('#p-personal').after( topnav.html );  topnav.remove; });

// BEGINNING: JavaScript for placing the fair use rationale template inside the summary box on Special:Upload. Code by "wikipedia:User:Pinky49", created and coded specifically for Duty & Valour. /*function FairUseRationale { if((wgPageName == 'Special:Upload' || wgPageName == 'Special:MultipleUpload') && document.getElementById('wpDestFile').value == '') { document.getElementById('wpUploadDescription').value = '==Source==\n\n==Licensing==\n'; } } jQuery(document).ready(FairUseRationale);*/

// Spoilers - Adds Spoiler Alert to pages with category tag SpoilerAlert = { categories: "Spoiler", }

/****************************************/ /* sliders using jquery by User:Tierrie */ /****************************************/ mw.loader.using( ['jquery.cookie']); /****************************************/ /* sliders using jquery by User:Tierrie */ /****************************************/ //wsl.loadScript("http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"); //wsl.loadScript("http://dragonage.wikia.com/index.php?title=MediaWiki:Jquery-ui.min.js&action=raw&ctype=text/javascript"); mw.loader.using( ['jquery.ui.tabs'], function { $( "[class^=portal_vtab]" ).tabs.addClass( "ui-tabs-vertical ui-helper-clearfix" );  $( "[class^=portal_vtab] li" ).removeClass( "ui-corner-top" ).addClass( "ui-corner-left" );  var $tabs = $("#portal_slider").tabs({ fx: {opacity:'toggle', duration:100} } );  $("[class*=portal_sliderlink]").click(function { // bind click event to link $tabs.tabs('select', this.className.match(/portal_sliderlink-(\d+)/)[1]); console.log("Sliding to " + this.className.match(/portal_sliderlink-(\d+)/)[1]); return false; }); $('#portal_next').click(function { $tabs.tabs('select', ($tabs.tabs('option', 'selected') == ($tabs.tabs('length'))-1) ? 0 : $tabs.tabs('option', 'selected') + 1 ); // switch to next tab return false; }); $('#portal_prev').click(function { // bind click event to link $tabs.tabs('select', ($tabs.tabs('option', 'selected') == 0) ? ($tabs.tabs('length')-1) : $tabs.tabs('option', 'selected') - 1 ); // switch to previous tab return false; }); });

// extension req //v2.0, 2017, user:fngplg. //set active tab: https://jojo.fandom.com/page#activeTab (function ($){   var nstarget = window.location.hash.replace('#', );    if (nstarget === ) return;    //convert wiki-utf 2 ansi    nstarget = nstarget.replace(/\./g, '%');    nstarget = decodeURIComponent(nstarget).replace(/_/g, ' ');    //console.log('trgt:'+nstarget);    $(function{ setTimeout(function {           var $nt2a = $('.tabberlive>.tabbernav>Li>a[title="' + nstarget + '"]');            $nt2a.click;            $nt2a.get(0).scrollIntoView({inline: "nearest"});        }, 100);//settimeout });//doc.rdy   })(jQuery);

/* Sidebar $(document).ready( function { var tree = $('#wikitext-sidebar');  $('#p-Content_Navigation').after( tree.html );  tree.remove; });

$(document).ready( function {   $('#tree').bind('fancytreeinit', function(event, data) { data.tree.makeTitleVisible; }); }); */