Twitter/X Media Downloader

Download videos/pictures with one click | Automatically package them into a ZIP file for batch download

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

ئاپتورى
KanashiiWolf
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
327
باھا نومۇرى
0 0 0
نەشرى
1.3.2
قۇرۇلغان ۋاقتى
2025-12-26
يېڭىلانغان ۋاقتى
2026-05-05
Size
91.2 KB
ئىجازەتنامىسى
MIT
قوللايدىغىنى

Twitter/X Media Downloader

A refined and robust userscript for downloading media from x.com. This script focuses on reliability, clean UI integration, and efficient batch downloading.

🌟 Key Features

  • One-Click Downloads:
    • Videos: Downloads the highest available bitrate MP4.
    • Images: Downloads the original quality image.
  • Intelligent Batching: Automatically packages multiple media files from a single tweet into a .zip archive.
  • Duplicate Prevention: Tracks downloaded tweet IDs. Download buttons turn Green if the media has already been grabbed.
  • History Management:
    • View History: A visual log of downloaded tweets with previews and links.
    • Export: Export your download history to a JSON file for backup.
  • Copy Share Link: Optional button in the tweet header (next to the ··· menu) that copies the tweet URL with a configurable domain — great for sharing via fxtwitter, vxtwitter, fixupx, etc. Enable it in Settings.
  • Theme Aware: Automatically adjusts its UI colors to match Twitter's Light, Dim, or Lights Out modes.
  • Refined UX: Fixes issues present in older scripts, ensuring buttons appear reliably on Tweets, Threads, and Media tabs.

⚙️ Configuration

Access the configuration menu via your Userscript Manager (e.g., Violentmonkey) by clicking on the script icon and selecting "Settings".

Share Link Button

Enable the Share Link Button toggle to add a clipboard button to every tweet's header. When clicked, it copies the tweet URL with your chosen domain:

Domain Purpose
x.com (default) Standard X link
twitter.com Legacy Twitter link
fxtwitter.com Embed-friendly (Discord, etc.)
fixupx.com Embed-friendly alternative
vxtwitter.com Embed-friendly alternative
fixvx.com Embed-friendly alternative
Custom Enter any domain you want

Filename Template System

Customize the naming convention for your downloaded files (and ZIP archives) using the following tags:

Tag Description Example Output
{user-name} The user's display name KanashiiWolf
{user-id} The user's handle (@) kanashiiwolf
{status-id} The unique Tweet ID 1234567890987654321
{date-time} Tweet timestamp (UTC) 20231231-235959
{date-time-local} Tweet timestamp (Local Time) 20231231-185959
{full-text} The text content of the tweet Hello world
{file-type} Media type video, photo, gif
{file-name} Original filename from the URL E8x...jpg

Custom Date Formatting

You can format the date using standard placeholders:

  • {date-time} (Default: YYYYMMDD-hhmmss)
  • Custom: {date-time:DD-MMM-YY hh.mm}31-DEC-23 23.59

Examples

Default Pattern: @{user-id}-{status-id}

Result: @kanashiiwolf-1234567890987654321.mp4

🚀 Usage

  1. Install: Add to Tampermonkey/Violentmonkey.
  2. Browse: Navigate to any Tweet containing media.
  3. Download:
    • Look for the download icon in the tweet's action bar (next to Reply/Retweet/Like).
    • New: You can now also find a download button in the image expansion modal's action bar.
    • Click to download. If the tweet has multiple images, a ZIP can be created automatically if enabled.