Reddit Infinite Scrolling (jScroll)

adds infinite scrolling to Reddit subreddits, eg, https://www.reddit.com/r/technology/

当前为 2015-08-12 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Reddit Infinite Scrolling (jScroll)
  3. // @description adds infinite scrolling to Reddit subreddits, eg, https://www.reddit.com/r/technology/
  4. // @namespace rikkie
  5. // @include http://www.reddit.com/*
  6. // @include https://www.reddit.com/*
  7. // @exclude http://www.reddit.com/*/comments/*
  8. // @exclude https://www.reddit.com/*/comments/*
  9. // @version 1
  10. // @grant none
  11. // @require https://greasyfork.org/scripts/11636-jscroll/code/jScroll.js?version=67302
  12. //
  13. // This userscript uses the jQuery plugin 'jScroll' (http://jscroll.com/)
  14. //
  15. // ==/UserScript==
  16.  
  17. $('#siteTable').jscroll({
  18. nextSelector: 'span.nextprev a:last',
  19. contentSelector: '#siteTable .thing, .nav-buttons',
  20. callback: function() {$('.nav-buttons').remove();}
  21. });
  22.  
  23.