i would like to suggest some improvements: replace line 45 - 47 with: let par = document.querySelector( '.listenEngagement__footer .sc-button-toolbar .sc-button-group' ) if (!par) par = document.querySelector( '.sound__footer .sc-button-toolbar .sc-button-group') this fixes the download button for some tracks with different buttons in the bar below.
next one is fairly subjective but line 82: result.user.username +' - '+ result.title + '.mp3', will save username of posting account to track title, useful for artists that only post song titles
lastly line 107: setTimeout(btn.attach(),100) fixes button not appearing a lot. at least for me on firefox it made the button appear much more consistently
very good script either way thank you for your work :3
i would like to suggest some improvements:
replace line 45 - 47 with:
let par = document.querySelector(
'.listenEngagement__footer .sc-button-toolbar .sc-button-group'
)
if (!par)
par = document.querySelector(
'.sound__footer .sc-button-toolbar .sc-button-group')
this fixes the download button for some tracks with different buttons in the bar below.
next one is fairly subjective but line 82: result.user.username +' - '+ result.title + '.mp3',
will save username of posting account to track title, useful for artists that only post song titles
lastly line 107: setTimeout(btn.attach(),100)
fixes button not appearing a lot. at least for me on firefox it made the button appear much more consistently
very good script either way thank you for your work :3