projects
/
GM_direct_download_links.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release version 0.4
[GM_direct_download_links.git]
/
direct_download_links.user.js
diff --git
a/direct_download_links.user.js
b/direct_download_links.user.js
index
bd8e32a
..
81a6fb8
100644
(file)
--- a/
direct_download_links.user.js
+++ b/
direct_download_links.user.js
@@
-1,7
+1,7
@@
// direct_download_links - Add direct download links
// direct_download_links - Add direct download links
-// version 0.
3
-// 201
1-12-23
-// Copyright (C) 2011 Antonio Ospite <ospite@studenti.unina.it>
+// version 0.
4
+// 201
2-02-12
+// Copyright (C) 2011
,2012
Antonio Ospite <ospite@studenti.unina.it>
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
@@
-146,6
+146,7
@@
function getElementByXPath(query, root) {
* @return: null on error, true on success
*/
function direct_download_link_add(pageURL, site) {
* @return: null on error, true on success
*/
function direct_download_link_add(pageURL, site) {
+ site.pageURL = pageURL
var element = getElementByXPath(site.urlContainerXPath);
if (!element) {
DDL_log('DirectDL (' + site.pageURL + '): Cannot find the element ' + site.urlContainerXPath + ' containing the URL.');
var element = getElementByXPath(site.urlContainerXPath);
if (!element) {
DDL_log('DirectDL (' + site.pageURL + '): Cannot find the element ' + site.urlContainerXPath + ' containing the URL.');