From: Antonio Ospite Date: Fri, 9 Dec 2011 23:13:47 +0000 (+0100) Subject: Add some comments X-Git-Tag: 0.3~10 X-Git-Url: https://git.ao2.it/GM_direct_download_links.git/commitdiff_plain/1b53269ee66fbdba093c562eec82f976d3c0f632?ds=sidebyside Add some comments Signed-off-by: Antonio Ospite --- diff --git a/direct_download_links.user.js b/direct_download_links.user.js index b149698..eac46c9 100644 --- a/direct_download_links.user.js +++ b/direct_download_links.user.js @@ -36,7 +36,8 @@ /* * TODO: * - find a way to use the same string as in the @include lines to match the - * current window.location + * current window.location. Look for something like GM_testUrl() which builds + * the regexp starting from a glob line. * - use xpath instead of regexp like in http://a32.me/2009/11/greasemonkey/ * - use jquery, like shown in http://a32.me/2009/11/greasemonkey/ */ @@ -123,7 +124,8 @@ function direct_download_link_add(pageURL, site) { return null; } - + // This is used for sites adding the URL to the DOM after DOMContentLoaded, + // for example by some javascript library (like Silverlight.js on rai.tv). if (site.onEvent) { element.addEventListener(site.onEvent.evt, function(e) { if (site.onEvent.targetElement &&