Terraria Wiki

  • Discussions are now available on the Terraria Wiki.
  • Miss the old Hydra Skin? Try out our Hydralize gadget! Visit the preferences page while logged in and turn on the gadget.

READ MORE

Terraria Wiki
Advertisement

View this page in other languages: Deutschfrançaismagyar한국어polskiportuguêsрусскийукраїнська中文


CSS and JavaScript changes must comply with the wiki design rules.


Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
// Load jquery
importScript('User:Equazcion/jquery.js');

//Display IP info on IP contributions pages
importScript('User:Equazcion/ipinfo.js');

//History research tools
importScript('User:Equazcion/LiveDiffLink.js');

//Display hidden block option
setTimeout(function(){
   $('.mw-htmlform-field-HTMLCheckField:has(input#mw-input-wpAutoBlock)').show();
}, 500);

// Remove patrol links and tags
$('.unpatrolled').remove();
$('.patrollink').remove();

// In recent changes:
var $pages = $('.mw-changeslist .special li');
$pages.each(function(index,value){
    var $this = $(this);

    // Add "check" link to user links, which opens contribs, deleted contribs, and block log
    var $userBlock = $this.find('.mw-usertoollinks a:last');
    $userBlock.after(' | <a class="check">check</a>');
    var $check = $this.find('.check');
    var $user = $this.find('.mw-userlink:last').text();
    $check.css('cursor','pointer');
    $check.click(function(){
        window.open('http://terraria.gamepedia.com/Special:Contributions/' + $user);
        window.open('http://terraria.gamepedia.com/Special:DeletedContributions/' + $user);
        window.open('http://terraria.gamepedia.com/index.php?title=Special:Log/block&page=User%3A' + $user);
    });
    
    // Add delete links to new pages
    if ($this.find('.newpage').length > 0) { 
        var $title = $this.find('.mw-title');
        $title.after(' (<a href="http://terraria.gamepedia.com/index.php?title=' + $title.text() + '&action=delete">delete</a>)');
    }
});

// Always choose Vandalism as default delete reason
$('#wpDeleteReasonList').val('Vandalism');

// Remove previous content from delete summary line and place below for optional pasting
$deleteContent = $('#wpDeleteReasonRow #wpReason').val();
$('#deleteconfirm').append('<fieldset><div style="padding-top:10px"><code>' + $deleteContent + '</code></div></fieldset>');
$('#wpDeleteReasonRow #wpReason').val('');

// Remove ads, promos, "social" features 
$('#p-sitePromos').remove();
$('#p-socialProfiles').remove();
$('#p-sharing').remove();
$('.t-netbar-curseInfo').remove();
$('#socialContainer').remove();
$('#feedlinks').remove();
$('.atfmrec').remove();
$('.show-ads').remove();
$('#siteNotice').remove();
$('.curse-stripe').remove();

setTimeout(function(){
    $('.show-ads').remove();
    //$('iframe').remove();
},500);

// Tweak header spacing
$('#left-navigation').css('margin-top','1px');
$('#right-navigation').css('margin-top','1px');
$('#mw-head-base').css('margin-top','-7.4em');
//$('#firstHeading').css('margin-bottom','0');
//$('.mw-specialpage-summary').remove();
//$('#contentSub').css('margin-bottom','.5em');
Advertisement