>>697ではttpsがだめだな、14行目
var regex = /\b(?![\@\s]+)((https?|nntp|...のhttpsの所"?"追加でvar regex = /\b(?![\@\s]+)((h?ttps?|nntp|...
33と34行目の間に
if(/^ttps?:\/\//.test(href)){ href="h"+href; text="h"+text;}
追加でどうだろう。text="h"+text;はお好みで削除してくれ