adblocker | Efficient embeddable adblocker library | Privacy library

 by   cliqz-oss TypeScript Version: v1.23.0 License: MPL-2.0

kandi X-RAY | adblocker Summary

kandi X-RAY | adblocker Summary

adblocker is a TypeScript library typically used in Security, Privacy applications. adblocker has no bugs, it has no vulnerabilities, it has a Weak Copyleft License and it has low support. You can download it from GitHub.

Cliqz' adblocker is a JavaScript library for blocking ads, trackers, and annoyances with a strong focus on efficiency. It was designed with compatibility in mind and integrates seamlessly with the following environments:.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              adblocker has a low active ecosystem.
              It has 387 star(s) with 56 fork(s). There are 14 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 6 open issues and 138 have been closed. On average issues are closed in 83 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of adblocker is v1.23.0

            kandi-Quality Quality

              adblocker has 0 bugs and 0 code smells.

            kandi-Security Security

              adblocker has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              adblocker code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              adblocker is licensed under the MPL-2.0 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              adblocker releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 163 lines of code, 8 functions and 116 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of adblocker
            Get all kandi verified functions for this library.

            adblocker Key Features

            No Key Features are available at this moment for adblocker.

            adblocker Examples and Code Snippets

            No Code Snippets are available at this moment for adblocker.

            Community Discussions

            QUESTION

            Facebook Like Button has width 0 in Angular App
            Asked 2022-Jan-05 at 12:00
            TL;DR

            I inserted the exact code that the Meta Developers Page for a Facebook Like Button generated into this CodePen but the Button does not show (width & height are both 0px)

            The Goal

            In our Angular 12 Application, we want to include three things under a video:

            • Facebook Like Button
            • Facebook Share Button
            • Pinterest Pin Button

            I created components for each of them and they trigger writing a script Tag to the DOM to fetch the JS Libraries (we use NGXS for asynchronous actions).

            facebook-share-button.component.ts ...

            ANSWER

            Answered 2022-Jan-05 at 12:00

            The Codepen you shared work for me on Google Chrome BUT only on Chrome.

            On Safari and Firefox I get Content Security Policy issues.

            Content-Security-Policy

            The issue is due to Content Security Policy (a.k.a CSP):

            Instead of blindly trusting everything that a server delivers, CSP defines the Content-Security-Policy HTTP header, which allows you to create an allowlist of sources of trusted content, and instructs the browser to only execute or render resources from those sources. Even if an attacker can find a hole through which to inject script, the script won't match the allowlist, and therefore won't be executed.

            So you need to allow the facebook paths (used to serves scripts) on your website.

            The Facebook required list is long and grows over the years, from this page you should add something like:

            Source https://stackoverflow.com/questions/70567856

            QUESTION

            JS CSS and HTML Pop Up Modal Display Error
            Asked 2021-Nov-09 at 02:11

            I am trying to make a model that shows up on the screen when a condition is met (An Ad-Blocker in my case). The model mostly works.

            The two things I cannot figure out or fix are...

            1. When the box firsts shows up on the page, all the boxes are lined up below it (Run the code or see the image below to see what I mean), however, the issue is fixed after a tab is selected.
            2. If there is additional text or content on the page, the box is pushed below all of it. Despite having the z-index setup, it does not show in front of all other content as I want (I think it has something to do with the way the JS calls the function, see image for details).

            *** Please note that the below code requires an adblocker to be turned on to work ***

            ...

            ANSWER

            Answered 2021-Nov-09 at 02:11

            When the modal is first opened, all your .tabContent divs are displayed.

            After you click any tab, you hide all of them (display: none) and unhide the selected one (display: block). A quick fix would be to select the first one after you just opened the modal:

            Source https://stackoverflow.com/questions/69412951

            QUESTION

            Detect ONLY uBlock Origin adblocker (Vue)
            Asked 2021-Oct-15 at 05:37

            I'm using MoonPay for crypto purchasing in my Vue app, but uBlock Origin is blocking its IP address detection which blocks it from loading.

            It doesn't seem to be an issue on other adblockers, so I'd like to display a message to the user if the user has uBlock Origin installed, however the issue doesn't seem to occur with other adblockers.

            Is there a way to detect any one single adblocker, or a package which can return a string of the adblocker currently active?

            ...

            ANSWER

            Answered 2021-Oct-15 at 05:37

            as @ShadowRanger suggested, I've solve this by catching the Axios error from the blocked third-party resource fetch and displaying a modal to the user to alert them to the problem.

            Source https://stackoverflow.com/questions/69579804

            QUESTION

            heroku deploy not working when local build works fine - NodeJS Timeout
            Asked 2021-Oct-13 at 13:08

            Title says it really - i can build locally but it fails to deploy. Has an issue with Timeout - not sure how to force this to work?

            Here's my package.json, and the logs afterwards.

            I tried adding Timeout by running a yarn install but then it triggered some other dependency issues with node-gyp

            Many thanks for any tips!

            Package.json

            ...

            ANSWER

            Answered 2021-Oct-13 at 13:08

            The problem seems to be missing types, here are two possible fix:

            1. Install @types/node as a devDependencies. This package contains types for NodeJS, including the Timeout type.

            2. Edit your tsconfig.json to set skipLibCheck to true:

            Source https://stackoverflow.com/questions/69555933

            QUESTION

            PayPal IPN message not sending invoice, even though it was definitely included in button code
            Asked 2021-Sep-30 at 02:37

            I have a paypal checkout button on my website along with funding icons. This is part of the code for it:

            ...

            ANSWER

            Answered 2021-Sep-30 at 02:37

            In the example IPN given:

            Source https://stackoverflow.com/questions/69378366

            QUESTION

            getting error with Selenium using google colab
            Asked 2021-Sep-01 at 13:21

            I'm trying to do webscraping using selenium in Google colab and getting error

            webpage says I have to enable Javascript and disable adblocker if any. I tried to enable javascript by putting

            ...

            ANSWER

            Answered 2021-Sep-01 at 13:21

            Problem was due to chrome being headless. Due to that I was not able to verify that I "Not a Robot". Alternative approach can be used to solve this problem. for eg. running code in laptop instead of collab.

            Source https://stackoverflow.com/questions/68774061

            QUESTION

            How to stop page from auto refreshing with JavaScript?
            Asked 2021-Aug-24 at 20:05

            I am quite new to web dev and currently, I work on a JS course. I have a problem with the automatic page refreshing that happens in Chrome and Safari also.

            I have read that this refreshing can be caused by input submission in HTML but this problem occurs even when I do not use any type of button. In the code below, I tried to make a counter of the best score of all games when I guess the numbers, but I cannot record this score because my browser randomly refreshes my localhost and therefore all data is lost. As I said this problem occurs even when I do not use any type of submitting in my code (page randomly refreshes itself).

            I have tried to disable adblocker in my browsers, but this did not help. Also, I tried to use window.stop() at the start and end of the code, but this did not seem desirable because safari always showed that it is still loading the page. Also, I have read that this can be caused by some sort of RAM optimization in the browser and therefore I tried to execute the code with only one tab open but this did not help either. I use Live Server extension with VS Code and therefore I do not run live server with node.js through terminal.

            Because this problem occurs in multiple browsers I figured that it can be solved by some additional code in JS for example. Do you have any idea how could I solve this problem? I have run out of ideas at this point.

            My Code:

            ...

            ANSWER

            Answered 2021-Aug-24 at 19:01

            I use Live Server extension with VS Code…

            This extension is designed to refresh your browser every time your file is changed (in some cases using the file buffer in VSCode). Disable the extension if you don't want this behavior.

            Source https://stackoverflow.com/questions/68912739

            QUESTION

            Displaying placeholder content when an element is removed by an extension or adblocker
            Asked 2021-Jul-10 at 21:02

            I trying to integrate some user feedback tools into out application, and part of this required embedding an iframe into the application. I am using Privacy Badger, and it blocks all the content of the iframe and changes the display property to none all the time. That's all well and good, i'm not trying to force this past peoples privacy extensions, however I do want to be able to detect if it has been removed, and just display some placeholder text like "This was removed by an adblocker. Feel free to email us if you have feedback" so that the app doesn't feel broken.

            My Current Attempt: Code Sandbox

            This however doesn't display the fallback as I would like it to.

            I have tried various renditions of this method, all without luck.

            Essentially what I want is this: Detect if the iframe element has it's display property set to none, and render a fallback in it's place if that is true.

            ...

            ANSWER

            Answered 2021-Jul-10 at 21:02

            The problem is that you are immediately checking if the style is none, but your test doesn't change it until 5 sec later, so you'd have to wait some time before checking the style.

            Source https://stackoverflow.com/questions/68325748

            QUESTION

            Django. "python manage.py runserver :" getting "resource () is online but isn't responding to connection attempts." on chrome
            Asked 2021-Jun-23 at 04:05

            I can start django's development server using

            ...

            ANSWER

            Answered 2021-Jun-22 at 10:23

            QUESTION

            UnhandledPromiseRejectionWarning: Error: Request is already handled
            Asked 2021-Jun-05 at 16:26

            So i have this nodejs that was originaly used as api to crawl data using puppeteer from a website based on a schedule, now to check if there is a schedule i used a function that link to a model query and check if there are any schedule at the moment. It seems to work and i get the data, but when i was crawling the second article and the next there is always this error UnhandledPromiseRejectionWarning: Error: Request is already handled! and followed by UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). and it seems to take a lot of resource from the cpu and memory. So my question is, is there any blocking in my code or anything that could have done better.

            this is my server.js

            ...

            ANSWER

            Answered 2021-Jun-05 at 16:26

            I figured it out, i just used puppeteer cluster.

            Source https://stackoverflow.com/questions/67815215

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install adblocker

            Cliqz' adblocker is the easiest and most efficient way to block ads and trackers in your project. Only a few lines of code are required to integrate smoothly with Puppeteer, Electron, a Chrome- and Firefox-compatible browser extension, or any environment supporting JavaScript (e.g. Node.js or React Native).
            Install: npm install --save @cliqz/adblocker-webextension
            Add the following in your background script:

            Support

            This project makes use of lerna and yarn workspaces under the hood. Quickly get started with:.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/cliqz-oss/adblocker.git

          • CLI

            gh repo clone cliqz-oss/adblocker

          • sshUrl

            git@github.com:cliqz-oss/adblocker.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Privacy Libraries

            Try Top Libraries by cliqz-oss

            local-sheriff

            by cliqz-ossJavaScript

            keyvi

            by cliqz-ossC++

            re-consent

            by cliqz-ossJavaScript

            browser-core

            by cliqz-ossJavaScript

            dat-webext

            by cliqz-ossTypeScript