Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Adblock ublock kill infinite scrolling
! Title: Finite Scroll (kills infinite scrolling)
! Last modified: 2017-10-24
! Homepage: https://gist.github.com/endolith/72ac5e69e037be02b118adbedcdeac59
! This URL: https://gist.githubusercontent.com/endolith/72ac5e69e037be02b118adbedcdeac59/raw/finite_scroll.txt
! TODO: Add these scripts: https://infinite-scroll.com/
! Forbes infinite scroll (and all other AJAX)
! https://www.reddit.com/r/web_design/comments/4i6bpd/never_ending_scroll_down_on_some_websites_is_it_a/d2w3qj2
||forbes.com$xmlhttprequest
forbes.com###article-container-1
forbes.com###article-container-2
forbes.com###article-container-3
forbes.com###article-container-4
! Works, but slows down browser as it loads each hidden article. Better to block the loading code itself.
reuters.com##.Article_container_1ixvf:nth-of-type(n+2)
abcnews.go.com##.article:nth-of-type(n+2)
thedailybeast.com##.ArticleSidebarWrapper:nth-of-type(n+2)
##.ajax.post.ajax-post
leaf.tv##.component-preloader
leaf.tv###infinite-articles__item--1
leaf.tv###infinite-articles__item--2
leaf.tv###infinite-articles__item--3
leaf.tv###infinite-articles__item--4
inverse.com##.article-stream
mashable.com##.page-container:nth-of-type(n+2)
electronicdesign.com##.processed.jscroll-added
latimes.com##.trb_ar_summary_wrapper
! latimes.com##.trb_ar_summary_wrapper:nth-of-type(n+1)
latimes.com##.trb_ar:nth-of-type(n+2)
slate.com###story-1
slate.com###story-2
slate.com###story-3
slate.com###story-4
blastingnews.com###content-page-p2
blastingnews.com###content-page-p3
blastingnews.com###content-page-p4
blastingnews.com###content-page-p5
@gasull

This comment has been minimized.

Copy link

@gasull gasull commented Jun 15, 2018

There seems to be a simpler way:

||vice.com$xmlhttprequest

@endolith

This comment has been minimized.

Copy link
Owner Author

@endolith endolith commented Jun 19, 2018

@gasull That disables all AJAX, though.

@Gittyperson

This comment has been minimized.

Copy link

@Gittyperson Gittyperson commented Aug 17, 2019

Thanks for this. Looks like Disqus is also involved but have no idea on creating the right rule. Example

@Gittyperson

This comment has been minimized.

Copy link

@Gittyperson Gittyperson commented Aug 17, 2019

Few more offenders: scrolling1 - scrolling2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.