Giter VIP home page Giter VIP logo

9gag-anonblocker's Introduction

About

This is a browser extension that allows you to hide posts made by anonymous users on 9GAG.

Motivation for this is that it's not possible to block anonymous users and thus your stream gets cluttered with low-quality content.

As a solution this extension allows you to just hide all posts made by anonymous users. For this the extension adds a new button to the header navigation:

When you click on it all posts made by anonymous users get collapsed in your stream and the button's icon changes:

Enjoy your anonymous-free 9GAG stream!

Known Bugs & Limitations

Unfortunately completely hiding or removing the anonymous posts will screw up scrolling using the keyboard shortcuts J and K. Therefore the blocked posts are "hidden" by restricting their height to 40px. This means those posts are still part of the stream but only their header is visible.

But this also means that scrolling using the keyboard shortcuts J and K will stop at these collapsed posts, too. This may give the impression that scrolling to the next post didn't work correctly.

If anyone knows a better solution for this issue, please see below on how to contribute.

Installation

You can download and install the offical release of this extension called "9GAG AnonBlocker" from

Manual Installation

If you want to install this extension manually from source follow these instructions.

This extension should be compatible with all browsers supporting WebExtensions manifest v3 (currently Chrome/Chromium and Safari) and browsers supporting WebExtensions manifest v2 (Firefox, Opera, Edge).

  1. Download this extension by going to the latest release and selecting the appropriate ZIP file:

    • 9gag-anonblocker.zip: for browsers supporting manifest v3
    • 9gag-anonblocker_manifest_v2.zip: for browsers only supporting manifest v2
  2. Unpack the downloaded archive in a new directory

  3. Load the unpacked extension in your browser:

    • Chrome/Chromium: go to chrome://extensions/, enable Developer Mode by switching the toggle, click Load unpacked to select the directory with the unpacked extension

    • Firefox: go to about:debugging > This Firefox, click Load Temporary Add-on and select the directory with the unpacked extension

    • Opera: go to opera:extensions, enable Developer Mode by switching the toggle, click Load unpacked to select the directory with the unpacked extension

    • other browsers: please look up your browser's documentation

Development & Contribution

Contributions to this extension are very welcome. Just raise an issue or open a pull request!

For local development just clone this repository and load it as an unpacked extension as described above:

git clone https://github.com/acran/9gag-anonblocker.git

When developing for a browser supporting only the WebExtensions manifest v2, e.g., Firefox, you must first replace manifest.json with manifest_v2.json.

9gag-anonblocker's People

Contributors

acran avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.