Parcourir la source

use decodeURIComponent for easy read

pull/1/head
10sr il y a 12 ans
Parent
révision
2fb8db1c88
1 fichiers modifiés avec 2 ajouts et 6 suppressions
  1. +2
    -6
      _keysnail.js

+ 2
- 6
_keysnail.js Voir le fichier

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

if (aa[i].text == "" && aa[i].hasChildNodes() && aa[i].childNodes[0].nodeType == Node.ELEMENT_NODE){
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{
text = aa[i].text;
}
urls.push([text, aa[i].href]);
urls.push([text, decodeURIComponent(aa[i].href)]);
}

prompt.selector(


Chargement…
Annuler
Enregistrer