This will download all played maps of a user. Make sure, that you are on a user-page, as this script will not work elsewhere.
This Script works, by opening the beatmaps (either with osu direct, or via download) in a new browser window. The Browser will detect this, and "Block Pop-ups". Please make sure to disable the Popup Blocker.
If you are unsure, if the Popup-blocker is active, or not, execute this script. If the Popup-blocker is active, this should spawn one, or no new tabs. If the Popup-blocker is not active, it spawns three tabs.
window.open("https://google.com")
window.open("https://google.com")
window.open("https://google.com")
I have chosen this way, because then I do now need to worry about loading times, and if the code will continue to execute, after the first redirect.
I can't say, whether this will work in the future, because this script is dependent on the osu-userpage layout (,and osu-direct functionality). If any of those change, this script will require a rework.
Below is the code, that you need to paste in the Browser Console.