Nitrokey/dongleauth

Different filtering methods

Opened this issue · 3 comments

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

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.

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() })

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.