Reddit - Load 'Continue this thread' inline

Changes 'Continue this thread' links to insert the linked comments into the current page

Versión del día 16/03/2016. Echa un vistazo a la versión más reciente.

Autor
spiralx
Calificaciones
0 0 0
Versión
1.3.0
Creado
08/10/2014
Actualizado
16/03/2016
Tamaño
8.93 KB
Licencia
Desconocida
Funciona en

Reddit "Deep Thread" Expander

When browsing comment pages on Reddit, this script changes the behaviour of "Continue this thread" links so that when clicked, instead of loading any further child comments in a new page, the comments are loaded in the background and inserted directly into the current page, replacing the clicked link. Any "Continue this thread" links within loaded content (including content loading via a "Load more comments" link) are also located and changed to load inline.

History

1.3.0
  • Update to jQuery 2.2.0
  • Removed GM_addStyle and GM_getResourceURL calls and use @grant: none;
  • Changed the expand link to stretch across the width of the comments
  • Hid original .deepthread:after image better
1.2.0
  • Replaced the current + icon, boosted font size
  • Changed to begin at document-end
1.1.0
  • Removed processSummaries utility method
  • Added $(...).spinner() to create spinner animation
1.0.0
  • Updated name and description
  • Added Reddit icon for script
  • Use data URLs for images - faster, no broken links
  • Tested in Firefox/Greasemonkey and Chrome/Tampermonkey
  • Rewritten using ES6 features e.g. template strings
  • Simplified code
  • Added JSHint settings
  • Fixed potential jQuery name pollution
  • Use CSS rules for styling rather than setting via jQuery
0.2.0
  • Updated spinner icon
  • Fixed sub-reddit CSS overriding the size of the expand icon
0.1.0
  • Fixed recursive link conversion when clicking on "Load more comments"
0.0.3
  • Added recursive link conversion
  • Removed sidebar hiding for now
0.0.2
  • First public version.

TODO

  • Fix visibility issue with very deep nesting.
  • Auto-load deep threads on page load?
  • User preferences for above.