Giter VIP home page Giter VIP logo

Comments (4)

fushatech avatar fushatech commented on August 24, 2024 1

Tahir Spec: Whitelist Feature

Problem: When a user turns Tahir off for a website, they sometimes forget Tahir is off when loading a new tab and then accidentally view impermissible images.

Solution: Allow users to white-list safe domains, so they never need to manually turn Tahir off. Instead, white-listed domains will be excluded from Tahir filtering.

Implementation

  1. Allow user to add or delete whitelist website domains in the Tahir popup modal. This should be saved in the 'settings' localstorage that is already in use.

  2. When Tahir is on, it first checks whether the current tab URL matches any domain in the whitelist. If it matches, no filtering is provided. If it is not, default filtering is provided.

  3. When checking the websitelist, Tahir should check if the current tab domain or subdomain matches any domain in the whitelist. Do not check the exact URL. For example, if a user has put "https://mail.google.com/mail/u/0/#inbox" in their whitelist, then all webpages with the domain mail.google.com should match and be part of the whitelist.

  4. Maintain the same function naming scheme, indentation, and comment system that is present in the rest of the Tahir app when writing this feature. All of this should be written in plain javascript, without the use of libraries like jQuery, etc.

from tahir.

NolanChan avatar NolanChan commented on August 24, 2024

Hi, I'd love it if Tahir had a whitelist! Is there any progress being made on this?

from tahir.

fushatech avatar fushatech commented on August 24, 2024

@NolanChan Basic whitelist management is working on the chrome version of Tahir, can be downloaded from the github (https://github.com/fushatech/tahir/tree/master/chrome). We pushed the update to the Chrome store and are awaiting review.

from tahir.

fnaeem78 avatar fnaeem78 commented on August 24, 2024

My suggestion is to move the whitelist out of localstorage, optionally, if the user signs in with a google or microsoft account, to get permissions for uploading the to the drive implementations of the providers (dbox/ms/googl). I use multiple browsers with Tahir, ffox, brave, chrome. have to whitelist the same domain across browsers. It be nice to get the whitelist synced across browsers.

from tahir.

Related Issues (15)

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.