• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.

Simple script to download resource and dependencies from browser

ijsk

New member
Joined
Feb 28, 2023
Messages
1
Reactions
0
Hi guys!

I have made a simple js script that automates your downloading of resource with lots of dependencies from your web browser, and want to share it here. Saves time when you need to download it straight from the site. It opens download dialog window for all dependencies and the resource itself.

How to use:
go to resource. Open "Dependencies" page. Open developer console in your browser (F12 if you are using Firefox). Paste this script and run it:

elms = $(".button--cta"); for (let i = 0; i < elms.length; ++i) { window.open($(elms[ i ]).attr('href'), '_blank').focus(); }

Since it opens links in a separate windows, it may request a pop up permission on a first run.

Don't know how long it will work since it is based on a particular class of a download button on a dependencies page, though. But for now it do the job, glad if somebody will find it handy :)
 
If you download all the dependencies you're going to have tons of repeated downloaded packages, not counting even the ones you already have in AddonPackages.
If you just download the main resource and move them to the AddonPackages, all you need to do inside VaM is press a button to "Download all dependencies" and you'll have everything you need, without the copies.

Thank you for the effort in making and sharing it, but you're potentially going to create problems you don't need to have when a 1 click solution already exists.
 
Back
Top Bottom