User:TKN/vector.js

From Encyclopedia Dramatica
This is an old revision of this page, as edited by imported>TKN at 22:10, 3 December 2012. It may differ significantly from the current revision.
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After publishing, 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 / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
// Figure out why this ends up between facebook and twitter
window.onload = function() { 
  document.getElementById('siteNoticeLinks').innerHTML += ' &bull; <a href="/Project:SysOp_Tasks">SysOp Tasks</a>';
  if (wgCanonicalSpecialPageName == "Blockip" && !document.getElementById('Already_blocked')) {
    $('#wpEmailBan').attr('checked', true);
    $('#wpAllowUsertalk').attr('checked', false);
    $('#wpBlockExpiry').attr('value', 'infinite')
  }
  if (wgAction != 'purge')
  {
    $('#ca-view').after('<li id="ca-purge"><a href="' + wgServer + '/' + wgPageName + '?action=purge' +'"><span>*</span></a></li>');
  }
  else
  {
    $('#ca-view').after('<li id="ca-purge" class="selected"><a href="' + wgServer + '/' + wgPageName + '?action=purge' +'"><span>*</span></a></li>');
  }
}