Skip to content
This repository was archived by the owner on Dec 13, 2022. It is now read-only.

Commit cd29a80

Browse files
authoredMar 26, 2019
Fix #20
1 parent 0476783 commit cd29a80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎tanszekiportal/downloadAll.user.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name Tanszéki portál összes letöltése
33
// @namespace http://tampermonkey.net/
4-
// @version 0.6
4+
// @version 0.7
55
// @description Tanszéki portálról minden feltöltött fájl letöltése
66
// @author Nagy Ákos, Kis-Nagy Dániel
77
// @match https://www.aut.bme.hu/Course/*/*/*/*
@@ -54,14 +54,14 @@ function onDownloadComplete(blobData){
5454
if (zip.generateAsync) {
5555
zip.generateAsync({type:"blob"}).then(function(content) {
5656
var link=document.createElement('a');
57-
link.download = $("div#body > div > h1").get(0).innerText+'.zip';
57+
link.download = $("div#body > h1").get(0).innerText+'.zip';
5858
link.href = window.URL.createObjectURL(content);
5959
link.click();
6060
});
6161
} else {
6262
var blob = zip.generate({type:"blob"});
6363
var link=document.createElement('a');
64-
link.download = $("div#body > div > h1").get(0).innerText+'.zip';
64+
link.download = $("div#body > h1").get(0).innerText+'.zip';
6565
link.href = window.URL.createObjectURL(blob);
6666
link.click();
6767
}
@@ -96,4 +96,4 @@ $(document).ready(function(){
9696
$('#downloadGomb').css("background-position", "4px 4px");
9797
$('#downloadGomb').bind('click', function (){downloadFile(files[count].url,onDownloadComplete);});
9898
}
99-
});
99+
});

0 commit comments

Comments
 (0)
This repository has been archived.