Content deleted Content added
Thumperward (talk | contribs) updating per editprotected request. please let me know if this breaks anything |
support https links |
||
Line 236:
//check if we can convert to internal link with WM prefixes
var ma = /^(
if( !ma ) return null
var linkPrefix = WMPrefixes( ma[1] )
Line 290:
function WMPrefixes(url){ // http: //en.wikipedia.org/wiki/... -> [ 'w', 'en']
var dd = /^
if( !dd ) return null
dd = dd[1].split('.') //domains, e.g. ['en','wikipedia']
|