This repository was archived by the owner on Dec 13, 2022. It is now read-only.
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
// ==UserScript==
2
2
// @name Tanszéki portál összes letöltése
3
3
// @namespace http://tampermonkey.net/
4
- // @version 0.6
4
+ // @version 0.7
5
5
// @description Tanszéki portálról minden feltöltött fájl letöltése
6
6
// @author Nagy Ákos, Kis-Nagy Dániel
7
7
// @match https://www.aut.bme.hu/Course/*/*/*/*
@@ -54,14 +54,14 @@ function onDownloadComplete(blobData){
54
54
if ( zip . generateAsync ) {
55
55
zip . generateAsync ( { type :"blob" } ) . then ( function ( content ) {
56
56
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' ;
58
58
link . href = window . URL . createObjectURL ( content ) ;
59
59
link . click ( ) ;
60
60
} ) ;
61
61
} else {
62
62
var blob = zip . generate ( { type :"blob" } ) ;
63
63
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' ;
65
65
link . href = window . URL . createObjectURL ( blob ) ;
66
66
link . click ( ) ;
67
67
}
@@ -96,4 +96,4 @@ $(document).ready(function(){
96
96
$ ( '#downloadGomb' ) . css ( "background-position" , "4px 4px" ) ;
97
97
$ ( '#downloadGomb' ) . bind ( 'click' , function ( ) { downloadFile ( files [ count ] . url , onDownloadComplete ) ; } ) ;
98
98
}
99
- } ) ;
99
+ } ) ;
You can’t perform that action at this time.
0 commit comments