User:Js/urldecoder.js: Difference between revisions

Content deleted Content added
update, per EP on talk page
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 () {
// [[mw:Toolbar_customization]] is not helpful, plus a little delay onload is probably a good thing
if ( mw.user.options.get('usebetatoolbar') ) {
//setTimeout( $.fn.wikiEditor ? newToolbarBtn : oldToolbarBtn, 500 )
mw.loader.using( 'ext.wikiEditor.toolbar', newToolbarBtn );
 
} else {
$.fn.wikiEditor ? newToolbarBtn() : oldToolbarBtn()
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