Coder Social home page Coder Social logo

Comments (5)

antonok-edm avatar antonok-edm commented on August 11, 2024

@ductridev can you explain more about what this might look like? You want to replace images on pages with... some other image? What images would you be using as replacements?

FWIW, this technically sorta used to be possible using background-image: url CSS style injection filters, but it's a potential privacy leak and so it's definitely not possible in the major adblockers these days.

from adblock-rust.

ductridev avatar ductridev commented on August 11, 2024

@antonok-edm by default, the ad block will inject the hidden stylesheet to hide the ad elements, but I don't want it, I'm building an electron app and it will break some pages when my customers try to access it from my electron apps, so I want to replace the hidden stylesheet with any images which can be configured by my customers.

from adblock-rust.

ductridev avatar ductridev commented on August 11, 2024

I hope we can have a function to set the stylesheet injection instead of adding it to filters because we will need to keep the filter up to date at EasyList of AdBlockPlus or some EasyList which is hosted on the Internet.

from adblock-rust.

antonok-edm avatar antonok-edm commented on August 11, 2024

@ductridev generally adblock-rust doesn't return any stylesheets, just sets of selectors that should be hidden (see https://docs.rs/adblock/latest/adblock/engine/struct.Engine.html#cosmetic-filtering for more details). If you're embedding this into an electron app, you're free to do anything you want with those selectors, including using replacement images.

from adblock-rust.

ductridev avatar ductridev commented on August 11, 2024

@antonok-edm thank you, I will try this right away. I will reopen if there is another problems.

from adblock-rust.

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.