Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autofill track name when downloading. #33

Closed
Briareos17 opened this issue May 14, 2020 · 4 comments
Closed

autofill track name when downloading. #33

Briareos17 opened this issue May 14, 2020 · 4 comments

Comments

@Briareos17
Copy link

Every time I want to download track, I need to copyppaste artist and track name from player to download windo, is there any way to make this process automated?

@lethak
Copy link
Owner

lethak commented May 15, 2020

Hi,

Technically it would be possible if I were using the "@grant GM_download" userscript directive

I specifically don't want to use any grant directive for now since i'd like the script to be as neutral as possible.

Another possibility remains with

<a download="bar.txt" href="foo.txt">lorem ipsum</a>​​​​​​​​​​​​​​​​​​​​​​​​​​​

I'll give it a try for a next version, but its not compatible with most older browsers.

@lethak
Copy link
Owner

lethak commented May 28, 2020

Regarding the HTML A HREF/DOWNLOAD tag, apparently "Chrome 65+ and Firefox only support same-origin download links." sooo, since they uses an alternative domain as CDN (content.audioaddict.com), this wont work.

I'll think on adding the grant directive.

@Briareos17
Copy link
Author

This would be awesome!

lethak added a commit that referenced this issue Jun 22, 2020
All platforms:
* Meta: Added the [@grant GM_download](https://www.tampermonkey.net/documentation.php#GM_download) directive (issue #33). This will likely
require an agreement click from the user when tampermonkey updates the script to this version.
* Misc: Vivaldi browser session restoring should not prevent the script to enable its features as intended (issue #34)
* Player (download track button): defaults saved filename to: `Track ID`_ `artist name`_`track title`.mp4 (issue #33)
* Player (volume ease up): Slowly adjust volume up when playing for the first time in the session (issue #9)
@lethak lethak closed this as completed Jun 22, 2020
@Briareos17
Copy link
Author

You are awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants