Reddit expand media and comments

Shows pictures and some videos right after the link, loads and expands comment threads.

These are versions of this script where the code was updated. Show all versions.

  • v0.3.1 - don't expand in the sidebar on old reddit
  • v0.3.0 - detect old reddit via unsafeWindow.reddit
  • v0.2.9 - add gyazo.com; fix gifv rule
  • v0.2.8 - fix gifv rule
  • v0.2.7 - add pbs.twimg.com
  • v0.2.6 - stop offscreen images in next frame to prevent flickering
  • v0.2.5 - add images.app.goo.gl
  • v0.2.4 - allow #hash in imgur album urls + minor code refactoring
  • v0.2.3 - tentative bugfix for canceling a bunch of pics
  • v0.2.2 - consider margins when canceling
  • v0.2.1 - use 'loadedmetadata' event on videos
  • v0.2.0 - cancel loading an image when it got out of sight
  • v0.1.9 - reuse albumObserver
  • v0.1.8 - fix xhr mode
  • v0.1.7 - preload inner images in an album only when scrolling within
  • v0.1.6 - preload earlier in onScroll observer
  • v0.1.5 - load media lazily on scroll, put albums in a wrapper
  • v0.1.4 - fixes for the old reddit + ratelimit
  • v0.1.3 - expand comments sooner - two screen heights in advance
  • v0.1.2 - add prntscr.com and prnt.sc; imgur /gallery/ urls; image urls with ?params
  • v0.1.1 - don't expand inside editor
  • v0.1.0 - ibb.com
  • v0.0.9
  • v0.0.8
  • v0.0.7
  • v0.0.6
  • v0.0.5
  • v0.0.3
  • v0.0.1