Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different filtering methods #145

Open
NSDodgers opened this issue Sep 10, 2018 · 3 comments
Open

Different filtering methods #145

NSDodgers opened this issue Sep 10, 2018 · 3 comments

Comments

@NSDodgers
Copy link

Instead of filtering websites by category, I wish I could filter by "all sites that support U2F"

@alex-nitrokey
Copy link

alex-nitrokey commented Sep 12, 2018

This is a duplicate of #131 and #11.

I'd like to stay close to upstream (twofactorauth.org). While I see the point in having this option, I don't have the time to support such function. If you propose a PR I gladly look at it and merge it eventually.

@dalai4git
Copy link

That would be indeed very helpful.

Until there is support for it, the following js will show the ones that support U2F for the current version of the desktop site. Perhaps someone will find it useful.

// hide the category buttons
$('div.category').css('display', 'none')
// show the tables (but not the mobile ones)
$('div.website-table').not( "[id$='-mobiletable']" ).css('display', 'block')
// if there is nothing in the 4th column hide it
$('div.website-table tbody tr td:nth-child(4)').each((idx, tag) => { if (tag.innerHTML.trim().length <= 1) $(tag.parentNode).hide(); })
// hide the red rows
$('div.website-table tbody tr td.negative').each((idx, tag) => { $(tag.parentNode).hide(); })
// hide the rows where support is in progress
$('div.website-table tbody tr td.progress').each((idx, tag) => { $(tag.parentNode).hide(); })
// hide the categories with no visible rows
$('div.website-table:visible tbody').each((idx, tag)  => { if (! $(tag).children(':visible').length) $(tag.parentNode.parentNode).hide() })

@Peacekeeper2000
Copy link

I agree , buying a FIDO U2F , I also want to understand which sites support the NK at the moment. So a view on only U2F supporting sites would be very usefull.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants