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

Question: How to change download path? #25

Open
biggestsonicfan opened this issue Jun 30, 2023 · 3 comments
Open

Question: How to change download path? #25

biggestsonicfan opened this issue Jun 30, 2023 · 3 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@biggestsonicfan
Copy link

I understand mobile isn't supported, but I am using Kiwibrowser with Violentmonkey on Android. Android chromium based browsers can either download to "Downloads" folder on the device or SD card (which phones still have an SD card these days?!). I was wondering if I could specify a path to download Twitter images so I can sync that folder with my home computer while I'm away. The default Download folder gets a bit cluttered and messy.

@AlttiRi
Copy link
Owner

AlttiRi commented Jun 30, 2023

Violentmonkey does not support Download API, so it will not possible to save files in a subfolder in Downloads folder.

https://violentmonkey.github.io/api/gm/#gm_download

Folders/subpaths aren't supported yet.


As far I know, mobile.twitter.com site is identical to twitter.com. So, technically, the script will work fine on the mobile version too.

I did not add

// @match       https://mobile.twitter.com/*

line because https://mobile.twitter.com and https://twitter.com are different origins, so they will have the different LocalStorages — the separated download history.

However, technically, I can add an options to save the files not into LocalStorage, but into the extension's storage, so the history will be shared between both origins.
https://violentmonkey.github.io/api/gm/#gm_setvalue

@AlttiRi AlttiRi added the enhancement New feature or request label Jun 30, 2023
@AlttiRi
Copy link
Owner

AlttiRi commented Jun 30, 2023

BTW, is there https://mobile.twitter.com -> https://twitter.com redirect on mobile browsers?
(Is it possible to open https://twitter.com, or it will always redirect to the mobile version?)

@AlttiRi
Copy link
Owner

AlttiRi commented Jun 30, 2023

The default Download folder gets a bit cluttered and messy.

Check this app: https://play.google.com/store/apps/details?id=net.noople.autotransfer.lite

Although, the free version have only one available rule, but it would be enough to solve your issue.

Set up the file moving of files that start with [twitter] from the Download folder to a folder you need.

@AlttiRi AlttiRi added the question Further information is requested label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants