Greasy Fork is available in English.

Συζητήσεις » Αιτήματα Δημιουργίας

need help with creating a userscript!

§
Δημοσιεύτηκε: 09/01/2023

i want to create a new userscript wich i could not find anything on online..

the script needs to bypass wait timer wich is 15 sec, and autoredirect to the destination of the download button wich appears after the timer reaches 0.

in the photo you can see how it looks..

thanks in advance So Freakin Much 👌😁

§
Δημοσιεύτηκε: 09/01/2023

could possibly be bypass of timer and detecting zip files and get the links from there or something, really no clue atm 😆 hopefully some123 knows🤩

§
Δημοσιεύτηκε: 13/01/2023

Give me the link

§
Δημοσιεύτηκε: 13/01/2023

var url = 'https://website.com/test.zip';
var $downloadBtn = $('#download-button');
$downloadBtn.show();
$downloadBtn.find('a').attr('href', url);

found this in network responses so used it to make userscript wich does make the download button appear even tough time is not yet 0 , but the real download link wont get loaded before timer finish anyways, with my var url in script it just put url i put in script until real time has passed, so now i just need a way to fetch the url var from site before timer so that the download button contains the correct final direct url link to file.

hope you understand me😆

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.