「User:Pentium5dot1/common.js」のはんあいだ差分さぶん

提供ていきょう:Uncyclopedia
ナビゲーションに移動いどう 検索けんさく移動いどう
(meh don't need this)
ほそ (tweaks related to syntax highlighter)
3ぎょう: 3ぎょう:
 
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:SoledadKabocha/enterInSummaryPreviews.js&action=raw&ctype=text/javascript');
 
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:SoledadKabocha/enterInSummaryPreviews.js&action=raw&ctype=text/javascript');
   
if ( typeof wgPageContentModel != 'string' )
 
{
 
if ( (!((wgNamespaceNumber == 2 || wgNamespaceNumber == 8) && /\.(?:css|js)$/.test(wgTitle))) )
 
wgPageContentModel = 'wikitext';
 
else
 
wgPageContentModel = 'xyzzy';
 
}
 
 
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:SoledadKabocha/syntax_highlighter_experimental.js&action=raw&ctype=text/javascript');
 
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:SoledadKabocha/syntax_highlighter_experimental.js&action=raw&ctype=text/javascript');
 
syntaxHighlighterConfig = {
 
syntaxHighlighterConfig = {
45ぎょう: 38ぎょう:
 
}
 
}
 
var ajaxPreviewPos = 'bottom';
 
var ajaxPreviewPos = 'bottom';
if ( wgPageContentModel === 'wikitext' ) mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Js/ajaxPreview.js&action=raw&ctype=text/javascript');
+
if ( wgAction == 'edit' || wgAction == 'submit' ) mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Js/ajaxPreview.js&action=raw&ctype=text/javascript');

2014ねん7がつ15にち (火) 23:12時点じてんにおけるはん

var displayFlashOverride = false; // not sure whether this works anymore
if ( wgAction == 'edit' || wgAction == 'submit' ) {
  mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:SoledadKabocha/enterInSummaryPreviews.js&action=raw&ctype=text/javascript');

  mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:SoledadKabocha/syntax_highlighter_experimental.js&action=raw&ctype=text/javascript');
  syntaxHighlighterConfig = {
    adaptiveTiming: true,
    timeoutMsg: 'syntax highlighter abort $2ms>$1ms'
  }
}

window.mbNoAutoStart = wgAction == 'edit' || wgAction == 'submit';
window.mbLocalContribsName = ['Contributions', 'Contribs', 'Block', 'DeletedContributions', 'EmailUser', 'Emailuser', 'ListFiles'];
window.mbOnDemandLinkText = 'User info';
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;
window.mbEnableWhenEditing = true;
window.mbReportApiErrors = !( wgAction == 'edit' || wgAction == 'submit' );
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:SoledadKabocha/markBlockedPlus-portable.js&action=raw&ctype=text/javascript');

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 ( window.mbNoAutoStart === true ) {
    if ( !document.getElementById( 'ca-showblocks' ) ) {
      if ( typeof window.mbOnDemandLinkText != 'string' ) window.mbOnDemandLinkText = 'XX';
      addPortletLink('p-cactions', 'javascript:markBlocked()', window.mbOnDemandLinkText, 'ca-showblocks');
    }
  }
  else
    markBlocked( previewArea );
}
var ajaxPreviewPos = 'bottom';
if ( wgAction == 'edit' || wgAction == 'submit' ) mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Js/ajaxPreview.js&action=raw&ctype=text/javascript');