Content deleted Content added
update, per EP on talk page |
Thumperward (talk | contribs) updating per editprotected request. please let me know if this breaks anything |
||
Line 17:
function addFuncButton22(bId, bFunc, bIcon, bTitle, bKey){
mw.loader.using( 'user.options', function () {
if ( mw.user.options.get('usebetatoolbar') ) {
mw.loader.using( 'ext.wikiEditor.toolbar', newToolbarBtn );
} else {
oldToolbarBtn();
}
} );
function newToolbarBtn(){
Line 81 ⟶ 84:
var httpRegExp = '((?:https?:)?\\/\\/[^\\]\\[\\n\\r<>" ]+)' // any chars except []<>" and \n and spaces
var localPrefix = WMPrefixes( unSecure(wgServer.replace(/^\/\//,'http://') + wgScript) )
var oldText, newText, isBeforeCursor, colonNS
|