X-Git-Url: https://git.ao2.it/GM_direct_download_links.git/blobdiff_plain/4912dcb94c0ab805a92c012c8da9f86246c7eeba..37830ce8da03490964e35e2d2461b3d24ad8f781:/direct_download_links.user.js diff --git a/direct_download_links.user.js b/direct_download_links.user.js index 0a9aac5..9b98b37 100644 --- a/direct_download_links.user.js +++ b/direct_download_links.user.js @@ -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) { - 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) { - 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];