All Projects → Jense5 → electron-ad-blocker

Jense5 / electron-ad-blocker

Licence: MPL-2.0 license
Blocks advertisements in an electron browser window

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to electron-ad-blocker

Windowsspyblocker
WindowsSpyBlocker 🛡️ is an application written in Go and delivered as a single executable to block spying and tracking on Windows systems.
Stars: ✭ 2,913 (+5726%)
Mutual labels:  blocker
Cheat-Sheet---Active-Directory
This cheat sheet contains common enumeration and attack methods for Windows Active Directory with the use of powershell.
Stars: ✭ 154 (+208%)
Mutual labels:  ad
docker-dns-ad-blocker
A lightweight dnsmasq DNS server to block traffic to known ad servers with optional DNSCrypt support. Supports x86_64 and Raspberry Pi (armhf).
Stars: ✭ 78 (+56%)
Mutual labels:  blocker
lrkFM
Awesome, (ad) free, open source file manager for Android
Stars: ✭ 44 (-12%)
Mutual labels:  ad
ublacklist
Blocks specific sites from appearing in Google search results
Stars: ✭ 3,726 (+7352%)
Mutual labels:  blocker
smashblock
📡 🛡️A self-updating extensive blocklist filter for AdGaurd. Be sure to 🌟 this repository for updates!
Stars: ✭ 66 (+32%)
Mutual labels:  blocker
Dns66
DNS-based Host Blocker (and lightweight ad blocker) for Android
Stars: ✭ 1,782 (+3464%)
Mutual labels:  blocker
Altium-Designer-Notes-and-PCB-Design-Guidelines
How to design a standard PCB layout using Altium Designer
Stars: ✭ 46 (-8%)
Mutual labels:  ad
airad
Beego based Restful API service
Stars: ✭ 63 (+26%)
Mutual labels:  ad
BOHA
A Forge/LiteLoader/Vanilla/Bukkit/Sponge/BungeeCord plugin that blocks hacked accounts (McLeaks free accounts)
Stars: ✭ 13 (-74%)
Mutual labels:  blocker
neohosts
自由·负责·克制 去广告 Hosts 项目(Build with a tool written in Ruby)
Stars: ✭ 20 (-60%)
Mutual labels:  ad
Neohosts
自由·负责·克制 去广告 Hosts 项目
Stars: ✭ 1,578 (+3056%)
Mutual labels:  ad
Android-Touch-Helper
开屏跳过-安卓系统的开屏广告自动跳过助手
Stars: ✭ 488 (+876%)
Mutual labels:  ad
gitlab-ldap-group-sync
Manage your gitlab groups with ldap / active directory
Stars: ✭ 21 (-58%)
Mutual labels:  ad
FakeNewsBlocker
Get a notification if a website is known to publish fake news
Stars: ✭ 15 (-70%)
Mutual labels:  blocker
Blokada
The official repo for Blokada for Android and iOS.
Stars: ✭ 2,427 (+4754%)
Mutual labels:  blocker
kijiji-manager
App for viewing, posting, reposting, and deleting your Kijiji ads
Stars: ✭ 42 (-16%)
Mutual labels:  ad
ad-password-self-service
基于Python 3.8 + Django 3.2的密码自助平台,AD用户自助修改密码,结合<钉钉>/<企业微信>扫码验证信息后用户可自行重置密码、解锁自己的账号。
Stars: ✭ 76 (+52%)
Mutual labels:  ad
AdClear-Open-Source-Issue-Tracker
Open Source Issue Tracker for AdClear non-root ad blocker for Android
Stars: ✭ 101 (+102%)
Mutual labels:  blocker
coronablocker
🦠 Chrome extension to block any news about Covid-19 on social networks.
Stars: ✭ 30 (-40%)
Mutual labels:  blocker

Electron ad blocker

Blocks advertisements in an electron browser window.

Build from source

Because this module contains native modules, it should build from source for the correct version of node of your electron distribution (and not the default one on your machine). If you know how to do this, you can skip this. If not, I wrote a short tutorial for you.

Getting Started

$ yarn add electron-ad-blocker
const { BrowserWindow } = require('electron');
const { blockWindowAds, adBlocker } = require('electron-ad-blocker');

const options = {
  verbose: true,
  logger: console,
};

const mainWindow = new BrowserWindow({ width: 800, height: 600 });
blockWindowAds(mainWindow, options);

// You can also blacklist other websites, since adBlocker is the
// client instance of the contains-ads module.
adBlocker.parse('||blacklistwebsite.com')

Possible options

logger (console): A custom logger instance to use.
verbose (false): Whether or not the ad blocker should log when he blocks a request.
onRequest (undefined): Gets called like the original onRequest of a BrowserWindow instance.

blockWindowAds(browserWindow, {
  verbose: true,
  logger: console,
  onRequest: (details, callback, shouldBeBlocked) => {
    // Execute your own onRequest function here...
  },
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].