Code Monkey home page Code Monkey logo

habrsanitizer's Introduction

StandsWithUkraine

https://img.shields.io/chrome-web-store/rating/gnbmgdpmmddeegooghfhjlchocllcgpc?label=Chrome%20Rating https://img.shields.io/amo/rating/habrosanitizer?label=Mozilla%20Rating

Home for the Chrome and Firefox extension to sanitize Habr.com from graphomaniac authors. No external code, no tracking, 100% open source. Free on Chrome Web Store or FireFox Addons

Settings page

Install extension

  • To install the HabrSanitizer from Chrome Extensions Store - use this link: Habrosanitizer
  • To install the HabrSanitizer from FireFox Addons - use this link: Habrosanitizer

Or, follow next steps to be 100% sure that everything is safe:

That's all!

Setup

To make it work you need to set list of authors/companies/hubs you want to ban:

  • Right click on the extension button and click on the Options option
  • Use options page to save your personal ban list

If you don't see extension icon on the toolbar, you can go to the chrome://extensions/, click "detials" button and then click "Extension options".

Share

To share the config, make a pull request to this repo. It should contain:

  • Your name as the name of the folder
  • Readme.md with short description
  • habrasnitizer.json generated by the extension

Check configs/ folder for the example

Install as a code

To install HabroSanitizer you need to instal Node.JS first.

Then follow next steps:

Build code

  • Build HabroSanitizer with npm run build command

Tests

To run tests use npm test command

Happy reading!

With love by Drag13

habrsanitizer's People

Contributors

drag13 avatar morgan-iv avatar selivan avatar stdbug avatar vademon avatar ximeric avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

habrsanitizer's Issues

[FEAT] Block ALL corporate blogs

Would it be useful to add an option of blocking all corporate blogs so that a user will not be forced to create a long list of spammy corp accounts?

False positive blocking

When the hab is blocked and there is a company that starts with the name of hab, post from this company blocked as well.

Steps to reproduce:

AR: No posts from the company found
ER: Blogs should by blocked with the exact match

Technical info:

article.querySelector(selectors.company)?.href?.toLowerCase()?.includes(`/company/${blogName}`)

"MegaPost" not blocked

If post is mega-post - it will not be blocked

image

See

$('.post .preview-data__head a')[0].href

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.