Фарқият байни намунаҳои "Корбар:Aidan Kehoe/PicturePopups.js"

Use decodeURIComponent, not unescape, so UTF-8 in the title is handled better.
(Try with the en.wikipedia.org CSS URI again.)
(Use decodeURIComponent, not unescape, so UTF-8 in the title is handled better.)
while (t.tagName!='A') { t=t.parentNode; }
var realurl = t.href;
var pictitle = unescapedecodeURIComponent(realurl.match(/\/wiki\/[^:]+:(.*)$/)[1].replace(/_/g," "));
if (caption!='Enlarge')
176

edits