hrkpg2017

Loopvid userscripts for downloading images

Oct 14th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. Loopvid userscripts for downloading images
  2.  
  3.  
  4. Hidden links to originals
  5. -------------------------
  6.  
  7. Many Korean websites serve lower resolution pics on their pages, while making
  8. the original pics available at separate urls. This is the case for virtually
  9. all tistories, and also for many news sites. The following userscript can be
  10. used to convert those lower res links into links to the original images, which
  11. can then be downloaded with downthemall.
  12. https://gitlab.com/loopvid/scripts/blob/master/userscripts/add_hidden_links_to_originals.user.js
  13. (raw link for adding it to greasemonkey:
  14. https://gitlab.com/loopvid/scripts/raw/master/userscripts/add_hidden_links_to_originals.user.js )
  15.  
  16. Guide to selecting the original links for download:
  17. https://i.imgur.com/sQHBmms.png (download star)
  18.  
  19. uget guide for tistory:
  20. https://i.imgur.com/QIdkyOE.png
  21.  
  22. Currently, firefox quantum won't let extensions use filenames defined in the
  23. Content-Disposition header, which is what tistory uses, so Download Star won't
  24. know how to name files properly.
  25. https://i.imgur.com/ZGXcayZ.png
  26. See: https://github.com/marklieberman/downloadstar/wiki/Naming-Mask-Expression-Guide
  27.  
  28. If a tistory is not included already in the script, you can add it as a user
  29. included page, e.g. http://newtistory.com/*
  30. Guide to adding a user included page:
  31. https://i.imgur.com/fA3DFVd.png (greasemonkey)
  32. https://i.imgur.com/fySm4Tm.png (tampermonkey)
  33. You can also use http://* to run on all http pages or * to run on all pages.
  34.  
  35.  
  36. Redirect downscaled images to originals
  37. ---------------------------------------
  38.  
  39. For most of the sites supported by the hidden links script described above,
  40. it's possible to be redirected from a lower resolution image into its original
  41. url. The follow script does exactly that, which allows you to open those
  42. downscaled pics in a new tab and have the original pic load up instead.
  43.  
  44. https://gitlab.com/loopvid/scripts/blob/master/userscripts/redirect_image_to_original.user.js
  45. (raw link for adding it to greasemonkey:
  46. https://gitlab.com/loopvid/scripts/raw/master/userscripts/redirect_image_to_original.user.js )
  47.  
  48.  
  49. Rename URL-quoted filenames into hangul
  50. ---------------------------------------
  51.  
  52. Tistory will often serve filenames that look something like this:
  53. 121513_%EC%95%84%EC%9D%B4%EC%9C%A0%EC%BD%98%EC%84%9C%ED%8A%B8_22_by%EB%B2%84%EC%B9%BC%EB%A6%AC.jpg
  54. This is just utf-8 hangul that has been quoted for inclusion in the http
  55. headers. The following script renames those files unquoting the hangul.
  56. https://gitlab.com/loopvid/scripts/blob/master/python/tk/rename_url_quoted_gui.py
  57.  
  58. If you're running windows, you'll need to install python before you can run
  59. this script.
  60. https://www.python.org/downloads/
  61.  
  62. Make sure to install the latest version of Python 3 (and not 2.7). After that,
  63. double clicking the script and telling windows to open it with python should
  64. run it.
  65.  
  66. A command-line version of the script is also available, if you prefer that.
  67. https://gitlab.com/loopvid/scripts/blob/master/python/rename_url_quoted.py
  68.  
  69.  
  70. Saving instagram images and videos by right-clicking
  71. ----------------------------------------------------
  72.  
  73. The following script exposes instagram images and videos so you can right click
  74. and use "save as..." normally.
  75. https://gitlab.com/loopvid/scripts/blob/master/userscripts/instagram_replace_images_and_videos.user.js
  76. (raw link for adding it to greasemonkey:
  77. https://gitlab.com/loopvid/scripts/raw/master/userscripts/instagram_replace_images_and_videos.user.js )
  78.  
  79. If you prefer to expose only the images and leave the videos as-is, you can use
  80. this version:
  81. https://gitlab.com/loopvid/scripts/blob/master/userscripts/instagram_replace_images_only.user.js
  82. (raw link:
  83. https://gitlab.com/loopvid/scripts/raw/master/userscripts/instagram_replace_images_only.user.js )
  84.  
  85.  
  86. Other userscripts that you might find useful can be found at
  87. https://gitlab.com/loopvid/scripts/tree/master/userscripts
Add Comment
Please, Sign In to add comment