Git Product home page Git Product logo

sampleadblocker's Introduction

SampleAdBlocker

Development

Be sure you have installed make utility

Setup

To setup project run: make setup

Build

To build run: make build

Lint

To lint run: make lint

What I have learned building simple content blocker with dynamic rules list and web extension for macOS

  • To log url with NSLog better use .path method instead of .absoluteString or .absoluteURL, otherwise log won't print the whole path if it meet the space in the pathname

  • In order to launch debugger for content blocker do not forget to check the Debugging Tool checkbox image

  • Do not forget to add correct app group,otherwise content blocker won't be able to load rules (/Users/<username>/Library/Group Containers/group.SampleAdBlocker/customBlockerList.json) image

  • To debug content blocker you can attach to the process name or pid image with the name of the content blocker image

  • Log messages from content blocker you can see in the Console.app if you call NSLog("debug message") in the content blocker code image

  • Check that you have allowed unsigned extensions, if your extension is not signed image

sampleadblocker's People

Contributors

maximtop avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

thbonk

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.