User:Cacycle/wikEd dev.js: Difference between revisions

Content deleted Content added
0.9.91m (August 21, 2010) Midori test alert
0.9.91o (functional)
Line 2:
 
// version info
window.wikEdProgramVersion = window.wikEdProgramVersion || '0.9.91m91o';
window.wikEdProgramDate = window.wikEdProgramDate || 'August 2123, 2010';
 
/*
Line 2,059:
wikEdBrowserNotSupported = true;
}
 
// check the browser generation
var generation = navigator.appVersion.match(/\d+(\.\d+)/);
if ( (generation == null) || (generation[0] < 5.0) ) {
wikEdBrowserNotSupported = true;
}
 
alert('userAgent: ' + navigator.userAgent + '\nappName: ' + navigator.appName + '\nappVersion: ' + navigator.appVersion);//////
 
// check browser versions
Line 12,567 ⟶ 12,559:
linkTitle = linkTitle.replace(/^:+ *()/, '');
linkTitle = linkTitle.replace(/ +/g, '_');
 
// character accentuation for Esperanto, see [[Help:Special_characters#Esperanto]]
if (wikEdWikiGlobals['wgContentLanguage'] == 'eo') {
linkTitle = linkTitle.replace(/([cghjsu])(x+)/gi,
function (p, p1, p2) {
var accentChar = p1;
var xString = p2;
var xLength = xString.length;
var xCount = Math.floor(xLength / 2);
if ( (xLength / 2 - xCount) > 0) {
var pos = 'CGHJSUcghjsu'.indexOf(accentChar);
accentChar = 'ĈĜĤĴŜŬĉĝĥĵŝŭ'.substr(pos, 1);
xString = xString.replace(/^x|(x)x/gi, '$1');
}
else {
xString = xString.replace(/(x)x/gi, '$1');
}
return(accentChar + xString);
}
);
}
 
// [[/subpage]] refers to a subpage of the current page
Line 12,967 ⟶ 12,980:
wikEdUseWikEd = false;
wikEdDisabled = true;
WikEdSetLogo();
}
else {