Browse Source

use decodeURIComponent for easy read

pull/1/head
10sr 12 years ago
parent
commit
2fb8db1c88
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      _keysnail.js

+ 2
- 6
_keysnail.js View File

@@ -168,15 +168,11 @@ ext.add("list-url", function(){


if (aa[i].text == "" && aa[i].hasChildNodes() && aa[i].childNodes[0].nodeType == Node.ELEMENT_NODE){ if (aa[i].text == "" && aa[i].hasChildNodes() && aa[i].childNodes[0].nodeType == Node.ELEMENT_NODE){
alt = aa[i].childNodes[0].getAttribute("alt"); alt = aa[i].childNodes[0].getAttribute("alt");
if (alt != null){
text = aa[i].childNodes[0].nodeName + ": " + alt;
}else{
text = "";
}
text = " " + aa[i].childNodes[0].nodeName + (alt ? ": " + alt : "");
}else{ }else{
text = aa[i].text; text = aa[i].text;
} }
urls.push([text, aa[i].href]);
urls.push([text, decodeURIComponent(aa[i].href)]);
} }


prompt.selector( prompt.selector(


Loading…
Cancel
Save