FANDOM


This is my version of what you want.

loading...


Hello World
Wello Horld
Hello World
Wello Horld
//Global collapse
//Author: Princess Platinum
 
$('#collapse-button').html('<a class="wikia-single-button" onclick="collapse()">Collapse All</a>');
 
function collapse() {
    $('.wikitable').addClass('mw-collapsed');
    $('#collapse-button').html('<a class="wikia-single-button" onclick="expand()">Expand All</a>');
}
 
function expand() {
    $('.wikitable').removeClass('mw-collapsed');
    $('#collapse-button').html('<a class="wikia-single-button" onclick="collapse()">Collapse All</a>');
}