Comments (4)
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
-
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.
-
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.
-
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.
-
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.
Hi, I'd love it if Tahir had a whitelist! Is there any progress being made on this?
from tahir.
@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.
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)
- Request for Firefox Extension HOT 5
- Feature Request: Ability to reveal individual image. HOT 2
- Feature Request: Alt-K should reblur HOT 2
- Feature Request: Unblur on Hover Only
- Browser Request: Safari
- Bug: Alt-K does not work on subchild elements over hover
- Feature Request: Blur images found in CSS
- Feature Request: Internationalizations (Translations)
- Feature Request: Blur impermissible images only HOT 15
- Request to adopt dhikr-extension HOT 2
- Feature request: One click to Toggle
- Feature Request: Color instead of Blur
- Bug: Shortcuts should be dynamic
- Firefox extension publish
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tahir.