User:Ague/common.js

/* DDO Wiki UI Improvement - User Talk Archival Script Code by Ague 31 January 2014

In order to view my User Talk archives, this code snippet must be added to your user common.js file found under your user preferences. But beware, I am still going to be making small little tweaks here and there on it for the next couple weeks, so look for "FINAL" in the title above first. Unless, someone addes it to the MW common.js in which case anyone with javascript enabled will be able to view it. *cough* *Tech13* *cough*

$('p').click(function {   var id = $(this).attr('id') + "_div";    if ($('#' + id).hasClass('show')) {        $('#' + id).slideUp(1000).removeClass('show');               } else {        $('div.ArchiveContentBox > div').slideUp(700);        $('#' + id).slideDown(1000).addClass('show');    } })