From fd87c36441800466df8673c83b6cc1de0e49804e Mon Sep 17 00:00:00 2001 From: vckybhr Date: Mon, 25 Jul 2016 18:55:43 +0530 Subject: [PATCH 1/3] Create documentation of rapidshare.js --- rapidshare/documentation of rapidshare.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rapidshare/documentation of rapidshare.js diff --git a/rapidshare/documentation of rapidshare.js b/rapidshare/documentation of rapidshare.js new file mode 100644 index 0000000..60deb36 --- /dev/null +++ b/rapidshare/documentation of rapidshare.js @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2009 + * Yevgeny Androv, yevgenyandrov@gmail.com. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * *) Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * *) Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + */ From f2ff1b157362fe2d7d0521eeb1800bb4b3d9149a Mon Sep 17 00:00:00 2001 From: vckybhr Date: Mon, 25 Jul 2016 19:46:51 +0530 Subject: [PATCH 2/3] Update click.js --- rapidshare/click.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/rapidshare/click.js b/rapidshare/click.js index 2048f8c..62a37b8 100644 --- a/rapidshare/click.js +++ b/rapidshare/click.js @@ -16,22 +16,22 @@ else } function findDlf() { - var forms = document.forms; - for (var i = 0; i < forms.length; i++) - if (forms[i].getAttribute("name") == "dlf") - return forms[i]; - return null; -} + var forms = document.forms; // forms is equal to forms present in document + for (var i = 0; i < forms.length; i++) // for loop from 0 to the length of array forms + if (forms[i].getAttribute("name") == "dlf") // check if name attribute of forms has dlf or not + return forms[i]; // return the forms[i] which has 'dlf' in name attribute of forms + return null; +} // Try this several times function download(count) { - return function() { - var form = findDlf(); + return function() { + var form = findDlf(); // Our "c=0" hack reveals the download button, but the rapidshare server seems to keep a count too. // We still have to sit out the countdown to be able to download it. - if (form) form.submit(); - else { - if (count > 4) return; + if (form) form.submit(); // if form then submit it + else { // else if count >4 return download(count+1) after 1 second. i.e. execute + if (count > 4) return; // the function again with count= count+1; setTimeout(download(count+1), 1000); } } From 5962159b96fc5dc296a7e792fc7644e1898c4247 Mon Sep 17 00:00:00 2001 From: vckybhr Date: Mon, 25 Jul 2016 19:51:13 +0530 Subject: [PATCH 3/3] Delete documentation of rapidshare.js --- rapidshare/documentation of rapidshare.js | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 rapidshare/documentation of rapidshare.js diff --git a/rapidshare/documentation of rapidshare.js b/rapidshare/documentation of rapidshare.js deleted file mode 100644 index 60deb36..0000000 --- a/rapidshare/documentation of rapidshare.js +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Copyright (c) 2009 - * Yevgeny Androv, yevgenyandrov@gmail.com. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * *) Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * *) Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - */