Community Central
Register
Community Central

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.
//<pre><nowiki>

// *****************************************************************
// Load various external scripts 
// *****************************************************************
function appendScript(url) {
  var scriptElem = document.createElement('script');
  scriptElem.setAttribute('src',url);
  scriptElem.setAttribute('type','text/javascript');
  document.getElementsByTagName('head')[0].appendChild(scriptElem);
}
appendScript('http://www.wikia.com/index.php?title=User:Splarka/contribtools.js&action=raw&ctype=text/javascript&dontcountme=s')
appendScript('http://www.wikia.com/index.php?title=User:Splarka/stripsource.js&action=raw&ctype=text/javascript&dontcountme=s')
appendScript('http://www.wikia.com/index.php?title=User:Splarka/fastdelete.js&action=raw&ctype=text/javascript&dontcountme=s')
appendScript('http://www.wikia.com/index.php?title=User:Splarka/interwikitools.js&action=raw&ctype=text/javascript&dontcountme=s')
appendScript('http://en.wikipedia.org/w/index.php?title=User:Zocky/SearchBox.js&action=raw&ctype=text/javascript&dontcountme=s')

// *****************************************************************
// Custom automatic delete buttons 
// *****************************************************************
// Adds customizable one-click deletion buttons to any deletable page.
// Requires w:User:Splarka/fastdelete.js in appendScript();
var fdButtons = [];
fdButtons[fdButtons.length] = {
  'summary': 'spam',
  'hotkey': '8',
  'label': 'spam!'};
fdButtons[fdButtons.length] = {
  'summary': 'vandalism',
  'label': 'vandalism!'};

// *****************************************************************
// Custom edit buttons 
// *****************************************************************
if (mwCustomEditButtons) {
  mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://images.wikia.com/central/images/3/3c/Button_pre.png",
    "speedTip": "<pre> tag",
    "tagOpen": "<pre>\n",
    "tagClose": "\n</pre>",
    "sampleText": ""};
  mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://images.wikia.com/central/images/2/23/Button_code.png",
    "speedTip": "<code> tag",
    "tagOpen": "<code>",
    "tagClose": "</code>",
    "sampleText": ""};
   mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://images.wikia.com/central/images/7/7b/Button_pre_nowiki.png",
    "speedTip": "<pre><no" + "wiki> tags",
    "tagOpen": "<pre><no" + "wiki>\n",
    "tagClose": "\n</no" + "wiki></pre>",
    "sampleText": ""};
   mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://images.wikia.com/central/images/7/73/Button_code_nowiki.png",
    "speedTip": "<code><no" + "wiki> tags",
    "tagOpen": "<code><no" + "wiki>",
    "tagClose": "</no" + "wiki></code>",
    "sampleText": ""};
   mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://images.wikia.com/central/images/c/ce/Button_ampersand_lt-gt_semicolon.png",
    "speedTip": "&lt;tag here&gt;",
    "tagOpen": "&lt;",
    "tagClose": "&gt;",
    "sampleText": ""};
}

//</nowiki></pre>