36

GitHub - dieparteidiepartei/afd-blocker-plugin: AfD Blocker Browser Plugin

 5 years ago
source link: https://github.com/dieparteidiepartei/afd-blocker-plugin
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

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!

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK