From 1b53269ee66fbdba093c562eec82f976d3c0f632 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sat, 10 Dec 2011 00:13:47 +0100 Subject: [PATCH] Add some comments Signed-off-by: Antonio Ospite --- direct_download_links.user.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 && -- 2.1.4