Greasy Fork 支持简体中文。

Twitter/X Media Batch Downloader

Batch download all images and videos from a Twitter/X account, including withheld accounts, in original quality.

< 腳本Twitter/X Media Batch Downloader的回應

評論:正評 - 腳本一切正常

§
發表於:2025-01-18

Great script! it's almost perfect! It could definitely replace WFDownloader. I was wondering if you could support Tampermonkey on mobile browsers, like on Android/Linux Thanks a lot!!!

afkarxyz作者
§
發表於:2025-01-18

Thank you, glad to hear that! I haven’t tested it on Tampermonkey for Android yet. I’ll take a look using the Kiwi browser and learn more about it first.

§
發表於:2025-01-19

Thank you so much! I really appreciate all the work you’ve put in! I use the Kiwi Browser on my phone and Android Pad. Sometimes I also use Lemur Browser. Both of them use the same Chrome engine, and their interfaces are pretty similar. Honestly, Lemur feels like it copied Kiwi, but it works really well, and in some ways, it’s even better than Kiwi. If you could make your scripts work with these two browsers, that would be awesome! I’d be grateful! Thanks again for all your hard work!!

afkarxyz作者
§
發表於:2025-01-20

I tried using it on Kiwi Browser, but the userscript didn’t work. After I switched to AdGuard and Google Chrome, it worked perfectly. Feel free to check the installation guide here; I’ve created step-by-step instructions if you’ve never used AdGuard Mobile before: Running Twitter/X Media Batch Downloader on mobile with AdGuard

§
發表於:2025-01-20

Hello, author. I’ve already downloaded the mobile version of AdGuard as you suggested, and added the script by entering the URL, but now I don’t know how to use it.

Isn’t AdGuard just an ad-blocking software? It doesn’t seem to have a built-in browser feature, except for the privacy browser. I opened the privacy browser, but the speed is extremely slow, and it also requires me to log in to my Twitter account. My Twitter account is logged into the Lemur Browser on my phone, because I have the scripts I frequently use there. However, I still tried logging into my Twitter account on AdGuard’s privacy browser, but the webpage failed 3 times when entering my email, and it failed 2 more times when entering the verification code. I no longer want to try.

I also saw in your comment that you mentioned the Chrome browser for Android, so I downloaded it, but Chrome is still the same as before and doesn’t support scripts or extensions. So how should I use it?

Here’s the screenshot:

https://imgur.com/a/a61xtlF

afkarxyz作者
§
發表於:2025-01-20
  • You don’t need to use AdGuard’s built-in browser. Once installed, all browsers on your phone—such as Chrome, Lemur, or Kiwi—will automatically integrate userscripts from AdGuard.
  • You no longer need to use Tampermonkey. I personally have dozens of userscripts installed on AdGuard and only use regular Google Chrome.
§
發表於:2025-01-20

I tried it, but it didn't work. I enabled the script on AdGuard, then exited the app, kept it running in the background, and clicked on my Twitter account in Lemur and Kiwi browsers. When I clicked on an artist's account, I couldn't see the download button. I also went to their account's media page, but I still couldn't see the download button.

I also tried enabling AdGuard, but that resulted in a VPN icon appearing, and under this VPN, I couldn’t connect to any webpage.

I’ve also checked the settings in AdGuard for Lemur and Kiwi browsers, and both were enabled.

Could you please provide a more detailed tutorial with specific steps?

(By the way, I should mention that both my phone and tablet are running Android 13, without root access. Also, when I enabled your script on AdGuard, I disabled the script that was originally in Tampermonkey to avoid script conflicts, but it still didn’t work.)

afkarxyz作者
§
發表於:2025-01-20

Try using desktop mode on your browser first, then refresh. If it appears, switch back to mobile mode again.

§
發表於:2025-01-20

I’ve always been using the desktop version of Twitter on my phone because some scripts I need only appear and work in the desktop version. However, it doesn’t work. I just tried switching back to mobile mode, and of course, it still doesn't work.

Are you sure that this is how it should be done?

Or is it possible that the version of AdGuard I downloaded is incorrect? I downloaded a cracked premium version from the internet, as the free version does not support adding user scripts.

Here’s the download link:

①https://apkmody.com/apps/adguard
②https://getmodsapk.com/adguard-premium-apk/

afkarxyz作者
§
發表於:2025-01-20
  • I also use AdGuard Premium, and I always download it from this website: https://apkmody.com/apps/adguard.
  • Try using regular Chrome instead of Kiwi or Lemur browsers, and make sure to clear Chrome’s data first to remove any cached files.
  • My phone isn’t rooted either, and there are no issues. The script works, and the download icon appears.
§
發表於:2025-01-20

No, I already tried using Chrome earlier, and even uninstalled and reinstalled it, then logged into my Twitter account again, but it still doesn't work.

Now I have thought of two possible reasons.

The first one is that it's likely I entered the wrong URL. The URL I entered was from the link that appeared when I clicked to update the script page a few hours ago. The link is this:

https://update.greasyfork.org/scripts/523157/TwitterX%20Media%20Batch%20Downloader.user.js

However, I saw that you updated the script twice in the last few hours, and I have also updated it, but the URL I entered in AdGuard still hasn't changed. Could you please tell me the URL you're using in AdGuard? It would be helpful if you could share the link with me, as I think it's possible that I entered the wrong URL.

The second possibility is that I didn't enable AdGuard. Is it necessary to enable AdGuard? I mentioned earlier that when AdGuard is enabled, it automatically turns on the VPN, and a VPN notification icon pops up in the notification bar. Then, I can’t access any other webpages. But you didn’t tell me whether I need to enable AdGuard.

afkarxyz作者
§
發表於:2025-01-20
  • There should be no issue with the URL. If your AdGuard is active, then when you open GreasyFork and install a script, it should automatically show a pop-up asking to open with AdGuard.
  • Yes, you must always have AdGuard enabled. The VPN icon will appear, but it's not a typical VPN for changing your IP. The likely issue here is that the VPN icon isn’t active and AdGuard hasn’t been properly enabled.
§
發表於:2025-01-20

-"when you open GreasyFork and install a script, it should automatically show a pop-up asking to open with AdGuard."

I tried it on my original Lemur and Kiwi browsers, but there were no pop-ups or prompts to use AdGuard. Do I need to install a script in Chrome? But mobile Chrome doesn't support extensions.

-"The likely issue here is that the VPN icon isn’t active and AdGuard hasn’t been properly enabled."

If possible, please tell me the correct usage and detailed steps. I've never downloaded AdGuard before, and I’ve only used AdBlock as an extension in the browsers on both my phone and computer. I've never bothered to download software specifically for blocking ads because I didn’t think it was necessary.

afkarxyz作者
§
發表於:2025-01-20

You're right, AdGuard is very powerful. Not only can it block ads within apps, but it can also install userscripts. If you already have AdGuard, you don't need to use Tampermonkey anymore, but you will still need uBlock Origin. With AdGuard, all browsers that don't support Tampermonkey, like Chrome, can also run userscripts.

Its usage is very simple, just follow the tutorial I provided. The key is to make sure you don't close it—let it run in the background and ensure the VPN logo appears in the top status bar.

§
發表於:2025-01-20

I tried again, but it still doesn't work. As I mentioned before, whenever AdGuard is enabled, I can't connect to any webpages, and I can't use any applications that require the internet.

This is a screenshot of the page. Are there any options I need to enable or disable?

§
發表於:2025-01-20

After I cleared all the cache in AdGuard and reopened it, everything was reset to default settings, and adding URLs still doesn't work.

I think the issue might be due to the internet firewall in my country (yes, China). That's why it's not working.

Would you be willing to develop and adapt for the Kiwi and Lemur browsers? If possible, I would be happy to sponsor you!

afkarxyz作者
§
發表於:2025-01-20

I have created a video tutorial on how to install userscripts in AdGuard Mobile. Please check it out! How to install userscripts in AdGuard Mobile

§
發表於:2025-01-21

It’s not working. I tried using Chrome, but the two interfaces that pop up in your video tutorial didn’t appear. I’ve already taken a screenshot of the situation, which is here:

https://imgur.com/a/iICHhOi

Enabling the desktop version didn’t help either. Kiwi and Lemur don’t work either.

However, I’m curious—why does it require those two interfaces to pop up in order to work? The URL I copied is correct, so shouldn’t it just work? When I install or update the script, a source pops up on the interface, which is the URL. You mentioned before that the URL I entered is correct, so there shouldn’t be any problem with it.

By the way, I noticed that the phone UI you used is from Xiaomi. I also use Xiaomi (just like you). Are you Chinese? People from free world countries rarely use this brand of phone.

§
發表於:2025-01-21

I feel like there's no way anymore, but I still hope you can develop and adapt for the Kiwi and Lemur browsers.

Because after I installed your script on both the Kiwi and Lemur browsers, the download option appears, and it shows the option to download media/images/videos. However, it is unable to proceed with the download. A “Failed to fetch media data. Please try again later.” error notification pops up.

For more details, I have already taken screenshots:

https://imgur.com/a/rQa8Zrf

afkarxyz作者
§
發表於:2025-01-21

Yes, I have been a Xiaomi user for 10 years, and I am not Chinese.
It's good if the download has appeared successfully. Now, you need to enter the auth_token. Please check the userscript description; I have updated the instructions on how to obtain it.

§
發表於:2025-01-21

I have already seen this before, and my PC can correctly obtain the auth_token. But what is the use of this? I still can't use your script on mobile devices.

By the way, have you looked at the two Imgur image links I sent earlier?

Here are the links:

①https://imgur.com/a/iICHhOi
②https://imgur.com/a/rQa8Zrf

afkarxyz作者
§
發表於:2025-01-21

The auth_token is required to download all media completely without scraping, so there’s no need to scroll through pages anymore. The downside of scraping is that not all URLs can be retrieved, and it only captures image URLs. However, with the API and auth_token, you can get both images and videos. Please use a dummy Twitter account and avoid using your main account for security reasons.

One of the images you sent didn’t open; you copied the Imgur URL incorrectly.

§
發表於:2025-01-21

I roughly understand the general meaning. It's just that I don't understand this sentence: 'Please use a dummy Twitter account and avoid using your main account for security reasons.' Does this mean a virtual Twitter account? (You don't mean logging into Twitter in an incognito tab, right? That's what I don't understand.) All my follows and commonly used features are on my main account. I have over five hundred followers, and I also have some scripts I commonly use on my main account. I don’t know what a 'dummy Twitter account' means.

Also, the Imgur URL I copied and pasted is fine. I just checked it again. Could it be that you copied it incorrectly?

afkarxyz作者
§
發表於:2025-01-21

The use of auth_token doesn’t have to be with your main account. You can use a dummy account or an unimportant account to download; this is just a precaution. I personally use my main account.

Instead of uploading to Imgur, just post the screenshot directly here.

§
發表於:2025-01-21

OK, I understand.

Also, uploading the image directly here has a 400KB limit, which makes it hard to send (unless I deliberately lower the resolution of the image).

You shouldn't have trouble opening an Imgur link, right? (It shouldn't be a problem, since you can open one, another one should work too.)

§
發表於:2025-01-21

This is the version uploaded directly (I manually lowered the resolution). Please take a look.

§
發表於:2025-01-21

And:

afkarxyz作者
§
發表於:2025-01-21

That's correct, you just need to enter your auth_token.

afkarxyz作者
§
發表於:2025-01-21

I’m working on improving error handling to make it more proper. Stay tuned for version 1.8!

§
發表於:2025-01-21

Okay, so I still can't use your script on mobile devices.

Could you develop and adapt it for the Kiwi and Lemur browsers on mobile? If you have payment channels available in China, I am willing to sponsor you. (I previously saw you using a Xiaomi phone and thought you were Chinese, LOL:D. I am Chinese myself, from Guangzhou, China.)

afkarxyz作者
§
發表於:2025-01-21
  • Hi, I've updated it to version 1.8. Please give it a try!
  • If the icon appears and is clickable, it's working! Now, just enter your auth_token, and you're done.
§
發表於:2025-01-21

This is freaking amazing! Thank you so much for your hard work and effort!

Do you know what? When I saw your message just now, I was already outside and couldn’t use my PC. (I had only checked my Auth Token on the PC earlier, but I didn’t record it.) However, I was bored, so I searched for software or extensions on my phone that could let me check the Auth Token. I wasn’t really expecting much, but I actually found something! It's called "EditThisCookie," and it’s available in the official Chrome extension store. I was able to easily find my Twitter Auth Token, and after entering the token, the script worked perfectly! I can now download all media—images and videos—and the file naming convention is the same as on the PC! There were no issues at all! Moreover, after downloading, I extracted the files into a folder, and I can browse them normally. The videos play perfectly, and there are no “post-sale issues.”

Now, I can use your script normally on my mobile device! I’m using the Kiwi and Lemur browsers, not Chrome.

This way, I don’t even need AdGuard anymore.

Thanks again!

§
發表於:2025-01-21

Here is the screenshot:

§
發表於:2025-01-21

More:

§
發表於:2025-01-21

And:

afkarxyz作者
§
發表於:2025-01-21

Great to hear that the script is working successfully! Glad to know! 😊

§
發表於:2025-01-21

Thank you! I'm glad too!!😊😚😘

發表回覆

登入以回復