Twitter Media Downloader
v1.9.0 · updated 2026-07-19 · by HatScripts · 205,600 installs
Adds a download button to every image and video in the timeline, saving the original full-resolution file.
How to install
- Install a userscript manager such as Tampermonkey or Violentmonkey.
- Click "Install script", or paste the copied install URL into the manager.
- Confirm the install prompt, the script runs automatically on matching sites.
Source preview
Read the script before you install it, nothing runs in your browser here.
1// ==UserScript==2// @name Twitter Media Downloader3// @namespace https://hatscripts.com/4// @version 1.9.05// @description Adds a download button to every image and video in the timeline, saving the original full-resolution file.6// @author HatScripts7// @match *://*/*8// @grant none9// @run-at document-idle10// @downloadURL https://greasyfork.org/scripts/twitter-media-downloader/code/script.user.js11// @supportURL https://github.com/HatScripts/twitter-media-downloader12// ==/UserScript==1314'use strict';1516const SETTINGS = {17 enabled: true,18 debug: false,19};2021function log(...args) {22 if (SETTINGS.debug) console.log('[twitter-media-only]', ...args);23}2425function enhance(root = document) {26 if (!SETTINGS.enabled) return;27 const targets = root.querySelectorAll('[data-twitter-media-only-done="true"]');28 log('already processed', targets.length);29 // Apply the tweak to every matching node on the page.30 for (const node of root.querySelectorAll('main, article, [role="main"]')) {31 if (node.dataset['twittermediaonly']) continue;32 node.dataset['twittermediaonly'] = '1';33 node.classList.add('twitter-media-only-enhanced');34 }35}3637const observer = new MutationObserver(() => enhance());38observer.observe(document.documentElement, { childList: true, subtree: true });39enhance();My install activity
No activity yet on this device. Copying the install URL or opening the source will show up here.
Changelog
v1.9.0
2026-07-19- Download original-resolution video variants
v1.8.0
2026-04-19- Add batch download for threads
v1.7.0
2025-11-19- Initial release
Compare versions
−Initial release
+Download original-resolution video variants
2025-11-19 → 2026-07-19
My data
Favorites and install history live only on this device. Export them as JSON, or import a previous backup.
Related scripts
YouTube Auto Liker
Automatically likes videos from channels you are subscribed to, with a configurable delay and a toggle button in the player.
Direct Link Unwrapper
Strips redirect and tracking wrappers from links on Google, Facebook, Twitter and Steam so hovering shows the real destination.
Copy As Markdown
Adds a keyboard shortcut that copies the current page title and URL as a formatted Markdown link.