Topic: Userscript to automatically convert Twitter image URLs to the full "orig" size

Posted under e621 Tools and Applications

I wanted to share a userscript that several of the e621 staff team worked on to automatically change Twitter image URLs to the correct full "orig" size.

The script is available at the following paste sites:
Pastebin: https://pastebin.com/XcuK0r6P
ControlC: https://controlc.com/5f9b4aaa

To use the script, install a userscript manager of your choice to your browser, such as Tampermonkey or Greasemonkey, and paste the contents of one of the above links into a new blank script. Once you have done so, test on a sample URL (SFW, post #3748588). The script will automatically change the size parameter from "680x680" to "orig" and reload the page for the full-size 1280x1024 image.

If the Twitter image server is renamed, simply change the @match and location.assign() lines to follow the new format.

Happy uploading!

Updated

Neat, this will be really helpful for those who want everything done by Tampermonkey/Greasemonkey or if one extension stops working, again...

Thanks for sharing Song and all the staff for developing it.

Tampermonkey or Greasemonkey

If I had to pick one, which one should I go with? I'm not used to scripting tools but I'm not new to using command line tools if that makes sense.

I have used gallery-dl for my twitter archiving, but I admit it is annoying to have to manually change the size to "orig" everytime when downloading images by myself.

bitWolfy

Former Staff

azero said:
If I had to pick one, which one should I go with? I'm not used to scripting tools but I'm not new to using command line tools if that makes sense.

I have used gallery-dl for my twitter archiving, but I admit it is annoying to have to manually change the size to "orig" everytime when downloading images by myself.

Tampermonkey, every time. Or Violentmonkey. Greasemonkey is pretty old at this point.
That script is simple enough that it should work with it Greasemonkey, but if you ever want to use other scripts, you'll run into issues.

A universal version of this is Image Max URL, it exists both as userscript as well as browser add-on

  • 1