TL;DR:
- Make a new bookmark
- Copy the contents of the snippet below into location field for a new bookmark.
- Call bookmark whatever you want, I went with
AoE2 DE Mod DL.
- Make sure you are signed into the website (https://ageofempires.com/mods), if you aren't, the API will just reject your request.
- It's completely free and doesn't care if you own the game on that account.
- Navigate to mod of your choice and click the bookmark.
- Wait for a bit, the API tends to be slow...
- You should get a download popup for mod's archive.
- Extract archive into something like
C:\Users\YOUR USERNAME\Games\Age of Empires 2 DE\SOME NUMBERS\mods\local- For example I want x256 techs mod (mod id: 832), I would extract contents of the newly downloaded
aoe_832.zipinto folderC:\Users\alyti\Games\Age of Empires 2 DE\1212112121212121212\mods\local\aoe_832.
- For example I want x256 techs mod (mod id: 832), I would extract contents of the newly downloaded
My code work perfect
javascript:(function(){fetch("https://api.ageofempires.com/api/v1/mods/Download",{"credentials":"include","headers":{"Content-Type":"application/json"},"body":JSON.stringify({id: prompt("Enter Mod ID:"), boolValue: true}),"method":"POST","mode":"cors"}).then(r=>r.json()).then(r=>{if(r.value && r.value.downloadUrl){location.href=r.value.downloadUrl;}else{alert("Failed to get download URL.");}}).catch(e=>{console.log(e);alert("An error occurred. Check console for details.");});})();
and put your pages id and work ;)