Warning
This fork attempts to patch the extension after X/Twitter changed all URLs site-wide from twitter.com
to x.com
on 16th May, 2024. Functionality relying on the free API was broken when X/Twitter shut that down in 2023, and this remains the case.
An automatic find-and-replace, substituting all references of twitter.com
for x.com
. When the primary domain name was changed to X.com, the API was also moved to api.x.com
which broke the extension entirely.
Functionality which relied on the public API that was previously broken continues to be broken. The extension dumps various errors to the console as a result of trying to access endpoints that were since shut down.
I did this largely for myself as despite being partially broken there was enough working here that I found useful. It is the only extension I've found that provides a one-click way to get a video's URL for sharing purposes, which I personally find easier to share than downloading.
The readme below is outdated! The original author removed the extension from the Chrome/Firefox extension sites so the links are dead.
- License: The MIT license
- Copyright (c) 2016 風柳(furyu)
- 対象ブラウザ: Google Chrome、Firefox
Web 版公式 Twitter のメディア(画像/動画)を、原寸サイズでダウンロードするためのスクリプト。
※個別ツイートのメディアダウンロードについては、TweetDeck でも対応。
Google Chrome で、
より拡張機能を追加する。
Firefox Quantum で、
よりアドオンを追加する。
Firefox+GreasemonkeyTampermonkey、Google Chrome+Tampermonkey の環境で、
Twitter Media Downloader for old x.com (twMediaDownloader.user.js)
をクリックし、指示に従ってインストール。
※ Firefox では Quantum(57) + Greasemonkey 4 より動作しなくなった(代わりに Tampermonkey を使用すること)。
Web 版公式 Twitter 上で、ユーザータイムラインや検索タイムラインを開くと、「メディア↓」のようなリンクが挿入される。
これをクリックするとダイアログが表示されるので、[開始]ボタンをクリックすると、原寸画像/動画の ZIP 化が開始される。
※ ZIP 化の進捗は、下部にログ出力される。
ZIP 化が完了するか、もしくは[停止]を押すと、対象となる画像/動画ファイルをまとめた ZIP ファイルがダウンロードされる。
※ ログの内容も ZIP の中に保存される。
必要に応じて、保存対象となるツイートの Tweet ID 範囲、および、ツイートの制限数を指定可能。
※デフォルト(範囲空白)の状態では、Tweet ID 範囲は全てで、ツイートの制限数にのみ制限される。
また、各メディア付ツイートにもダウンロード用のリンクが追加され、個別にダウンロードすることも可能。
※ Chrome 拡張機能の場合、この機能は ON/OFF できる。
-
jQuery, jquery/jquery: jQuery JavaScript Library
License | jQuery Foundation
The MIT License -
JSZip
Copyright (c) 2009-2014 Stuart Knightley, David Duponchel, Franz Buchinger, António Afonso
The MIT License -
MikeMcl/decimal.js: An arbitrary-precision Decimal type for JavaScript
Copyright (c) 2016, 2017 Michael Mclaughlin
The MIT Licence -
lambtron/chrome-extension-twitter-oauth-example: Chrome Extension Twitter Oauth Example
Copyright (c) 2017 Andy Jiang
The MIT Licence -
sha1.js
Copyright Paul Johnston 2000 - 2009 The BSD License -
oauth.js(^1)
Copyright 2008 Netflix, Inc. The Apache License, Version 2.0
(^1) archived: oauth.js -
jsTwitterOAuth/twitter-api.js
Copyright (c) 2018 風柳 (furyu)
MIT License