Difference between revisions of "User:Eighty5cacao/common.js"

From Pin Eight
Jump to: navigation, search
(I hope this works)
(remove reference tooltips, to save just a bit of bandwidth; it isn't very useful on a wiki like this one where most of the interesting content is in userspace, anyway)
Line 17: Line 17:
 
   if ( wgNamespaceNumber >= 0 && !document.getElementById('toc') ) importScript('User:Eighty5cacao/copySectionLink.js');
 
   if ( wgNamespaceNumber >= 0 && !document.getElementById('toc') ) importScript('User:Eighty5cacao/copySectionLink.js');
 
}
 
}
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-ReferenceTooltips.js&action=raw&ctype=text/javascript');
 
  
 
window.mbLocalContribsName = ['Contributions', 'Contribs', 'Block', 'DeletedContributions', 'EmailUser', 'Emailuser', 'ListFiles'];
 
window.mbLocalContribsName = ['Contributions', 'Contribs', 'Block', 'DeletedContributions', 'EmailUser', 'Emailuser', 'ListFiles'];

Revision as of 22:19, 10 September 2013

importScript( 'User:Eighty5cacao/secure.js' );

if ( wgAction == 'edit' || wgAction == 'submit' ) {
  importScript('User:Eighty5cacao/enterInSummaryPreviews.js');
  importScript('User:Eighty5cacao/cancelRedirectNo.js');

  if ( typeof wgPageContentModel != 'string' )
  {
      if ( (!((wgNamespaceNumber == 2 || wgNamespaceNumber == 8) && /\.(?:css|js)$/.test(wgTitle))) )
        wgPageContentModel = 'wikitext';
      else
        wgPageContentModel = 'xyzzy';
  }
  mw.loader.load('https://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js&action=raw&ctype=application/javascript');
  syntaxHighlighterConfig = { timeout: 250 }
} else {
  if ( wgNamespaceNumber >= 0 && !document.getElementById('toc') ) importScript('User:Eighty5cacao/copySectionLink.js');
}

window.mbLocalContribsName = ['Contributions', 'Contribs', 'Block', 'DeletedContributions', 'EmailUser', 'Emailuser', 'ListFiles'];
window.mbLoadingOpacity = 0.25;
window.mbTempStyle = 'opacity:0.63; font-style:normal; text-decoration:line-through';
window.mbIndefStyle = 'font-style:italic; text-decoration:line-through; text-shadow:#F50800 0px 0px 2px';
window.mbShowRegDateRel = true;
window.mbShowYears = true;
importScript('User:Eighty5cacao/markBlockedPlus.js');

function doNothing( ) { }
if ( typeof createCollapseButtons           != 'function' ) { createCollapseButtons           = doNothing }
if ( typeof createNavigationBarToggleButton != 'function' ) { createNavigationBarToggleButton = doNothing }
if ( typeof collapsibleDivs                 != 'function' ) { collapsibleDivs                 = doNothing }
if ( typeof collapsibleTables               != 'function' ) { collapsibleTables               = doNothing }
window.ajaxPreviewExec = function( previewArea ) { 
  if ( typeof alwayssecurelinks == 'function' ) alwayssecurelinks( );
}
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Js/ajaxPreview.js&action=raw&ctype=text/javascript');
var ajaxPreviewPos = 'bottom';