Skip to content
AfD Blocker Browser Plugin
Branch: master
Clone or download
Latest commit e5fd198 May 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
.gitignore Initial May 10, 2019
.nvmrc change to node version 10 May 14, 2019
.travis.yml change to node version 10 May 14, 2019
CONTRIBUTING.MD Add a simple CONTRIBUTING.MD for clarifications on how to contribute May 13, 2019
LICENSE text changes May 11, 2019
README.md adding build status May 14, 2019
package-lock.json fixed new pack May 14, 2019
package.json fixed new pack May 14, 2019

README.md

Build Status

AfD Blocker

AfD Content Blocker von Die PARTEI

An alle, die das Internet zu einem besseren Ort machen möchten. An alle, die genervt sind davon, das rechte Kleinparteien von den Medien so wichtig gemacht werden. Nehmt euch unseren "AfD-Blocker“ vor und macht ihn noch größer, noch kompatibler, noch besser. Damit diese bräunliche und klimaschutzfeindliche Gestern-Partei einfach noch öfter Sendepause im Netz hat. Es danken die Grundgesetz-Fans von Die PARTEI!

Download

Install

Install Node.js and run:

$ npm install

Development

npm run dev chrome
npm run dev firefox
npm run dev opera
npm run dev edge

Getting started

The basic functionality is implemented in app/scripts/blocker_general.js

Each site has its own blocker within app/scripts. Try to copy one and build an additional blocker for another news website.

The blocker has to be activated in app/manifest.json:

  "content_scripts": [
    {
      "matches": [
        "*://www.sueddeutsche.de/*"
      ],
      "js": [
        "scripts/blocker_sueddeutsche.js"
      ],
      "css": [
        "css/overlay.css"
      ]
    },
    ...
  ]

Build

npm run build chrome
npm run build firefox
npm run build opera
npm run build edge

Environment

The build tool also defines a variable named process.env.NODE_ENV in your scripts.

Webextension toolbox docs

You can’t perform that action at this time.