「User:Pentium5dot1/common.js」の版 間 の差分
ナビゲーションに移動
検索 に移動
2014
Pentium5dot1 (トーク | (meh don't need this) |
Pentium5dot1 (トーク | |
||
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 ( |
+ | 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');