Skip to content

Filter cost cumulates on endless scrolling sites (facebook) and end up being disabled until reload #3335

@stephen304

Description

@stephen304

Filter issues MUST NOT be reported here. Read first: https://github.com/gorhill/uBlock/blob/master/CONTRIBUTING.md

Describe the issue

Adding a custom filter to filter facebook posts in my feed doesn't "stick", it stops working after reloading the page or also if you keep scrolling - you will see more sponsored posts that can be blocked by the exact same filter but were not blocked presumably because they loaded after uBlock checked.

One or more specific URLs where the issue occurs

https://www.facebook.com/

Screenshot in which the issue can be seen

2017-12-10-090517_514x657_scrot

Steps for anyone to reproduce the issue

  1. Go to facebook and find a sponsored post ("Sponsored" under the poster's name)
  2. Right click and hit block
  3. Paste in this filter ##body div[role="feed"] div[id^="hyperfeed_story_id_"]:if(div[id^="feed_subtitle_"] a:matches-css-after(content: "Sponsored"))
  4. It should highlight just the sponsored story
  5. Hit create
  6. Reload page
  7. Find another sponsored post
  8. Paste in the same filter
  9. Hit create
  10. Check custom filters - the same filter added twice and sponsored posts only filter right after clicking create, and stop working after the page reloads.

Your settings

100% Default settings

  • OS/version: Arch Linux
  • Browser/version: FF 57.02
  • uBlock Origin version: 1.14.20
Your filter lists

100% Default filters

Your custom filters (if any)
! 12/10/2017, 8:46:01 AM https://www.facebook.com/
facebook.com##body div[role="feed"] div[id^="hyperfeed_story_id_"]:if(div[id^="feed_subtitle_"] a:matches-css-after(content: "Sponsored"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions