Fix a couple of error messages
authorAntonio Ospite <ospite@studenti.unina.it>
Thu, 8 Dec 2011 18:21:03 +0000 (19:21 +0100)
committerAntonio Ospite <ospite@studenti.unina.it>
Thu, 8 Dec 2011 18:33:25 +0000 (19:33 +0100)
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
direct_download_links.user.js

index 0a9aac5..9b98b37 100644 (file)
@@ -91,13 +91,13 @@ for (i = 0; i < supported_sites.length; i++) {
 function direct_download_link_add(pageURL, fileElem, fileRegexp, linkDest) {
   var element = document.getElementById(fileElem);
   if (!element) {
 function direct_download_link_add(pageURL, fileElem, fileRegexp, linkDest) {
   var element = document.getElementById(fileElem);
   if (!element) {
-    alert('DirectDL (' + pageURL  + '): Cannot find the element containing the file URL.');
+    alert('DirectDL (' + pageURL  + '): Cannot find the element ' + fileElem + ' containing the file URL.');
     return null;
   }
 
   var content = element.textContent;
   if (!content) {
     return null;
   }
 
   var content = element.textContent;
   if (!content) {
-    alert('DirectDL (' + pageURL + '): textContent is null, cannot fild file URL.');
+    alert('DirectDL (' + pageURL + '): textContent is null, cannot find file URL.');
   }
 
   var fileURL = content.match(fileRegexp)[1];
   }
 
   var fileURL = content.match(fileRegexp)[1];