Giter Site home page Giter Site logo

Comments (6)

aug-dev avatar aug-dev commented on July 23, 2024 1

I'll look into this once I finish working on another feature.

from ublacklist.

aug-dev avatar aug-dev commented on July 23, 2024 1

Adding a rule to support this was surprisingly simple... but there is a problem.

If we click the button to load more images, they slip through the rule and show up anyways:

img-blocking-demo.webm

Something similar happens when the "Images" section doesn't show up in the first page (before auto-loading new content.)

This seems to be an issue with the extension currently, where the ability to detect dynamic content can be hit or miss sometimes (e.g. #446).

This is not a trivial problem to solve (at least I think), but I can tell that is something we are aware of.

from ublacklist.

aug-dev avatar aug-dev commented on July 23, 2024 1

Here's the PR solving this issue #467

:)

from ublacklist.

iorate avatar iorate commented on July 23, 2024

We can use pagerHandlers to extract search results from dynamically added elements.

pagerHandlers: [
// People Also Ask
{
target: '.IZE3Td, [jsname="Cpkphb"]',
innerTargets: ".g",
},
// Recipe, Regular (COVID-19), Web Result (COVID-19), ...
{
target: ".yl > div",
innerTargets:
".YwonT, [data-snf], [data-sokoban-feature], [data-content-feature], .IsZvec, .kno-fb-ctx, .ZE0LJd, .S1FAPd, .g, .F9rcV, .hMJ0yc",
},
// AutoPagerize and Continuous scrolling (US)
{
target: '.autopagerize_page_info ~ div, [id^="arc-srp"] > div',
// Regular, Video, and YouTube and TikTok channel
innerTargets:
"[data-snf], [data-sokoban-feature], [data-content-feature], .IsZvec, .g, .iHxmLe, .d3zsgb, .rULfzc",
},
],
}),

from ublacklist.

aug-dev avatar aug-dev commented on July 23, 2024

Oh wow!

Not going to lie, I hadn't yet deciphered what pageHandlers were used for. 😅

This is cool! I was trying to fix this issue right now, later this day I'll look into it.

from ublacklist.

github-actions avatar github-actions commented on July 23, 2024

🎉 This issue has been resolved in version 8.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

from ublacklist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.