Year of the Dragon: Through May 28th, claim free Expansion Pack (excluding Vecna Unleashed) or a Greater Elixir of Discovery! Speak to Xatheral in the Hall of Heroes. edit
Game mechanics • Newbie guide • In development • DDO Store • Social Media
Challenges • Classes • Collectables • Crafting • Enhancements • Epic Destinies • Favor • Feats
Glossary • Items • Maps • Monsters • Places • Quests • Races • Reincarnation • Skills • Spells
Please create an account or log in to build a reputation and unlock more editing privileges, and then visit DDO wiki's IRC Chat/Discord if you need any help!
MediaWiki:Gadget-CleanTableDPL.js
Jump to navigation
Jump to search
Note: After saving, you may have to bypass your browser's cache to see the changes, you can click here or try one of the methods below..
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl+F5 or Ctrl+r (⌘ Command+r on a Mac)
- Google Chrome: Press Ctrl+⇧ Shift+R (⌘ Command+⇧ Shift+R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl+F5
- Konqueror: Click Reload or press F5
- Opera: Clear the cache in Tools ‣ Preferences
//<nowiki>
//( ( mw, $ ) => {
if ( $( 'table.loot-table' ).length >= 1 ) {
var domFloatDiv = document.createElement( 'div' );
domFloatDiv.style = 'display: inline; float: left;';
var domHideLink = document.createElement( 'a' );
domHideLink.title = 'Show "Last Edited" column';
domHideLink.innerText = '→';
domHideLink.onclick = function() {
if ( $( 'th.last-edited' ).is( ':hidden' ) ) {
domHideLink.title = 'Hide "Last Edited" column';
domHideLink.innerText = '←';
}
else {
domHideLink.title = 'Show "Last Edited" column';
domHideLink.innerText = '→';
}
$( '.last-edited' ).toggleClass( 'superuser-show sysop-show developer-show' ).toggle();
};
domFloatDiv.append( domHideLink );
$( 'table.loot-table > thead > tr > th:eq(1)' ).prepend( domFloatDiv );
$( '.last-edited' ).toggleClass( 'superuser-show sysop-show developer-show' ).toggle();
}
//} )( mediaWiki, jQuery );
//</nowiki>[[Category:Gadgets]]