Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Quick and dirty hack to verify a long list of devices in Riot's "Unknown Device" dialog.
Quick and dirty hack. USE AT YOUR OWN RISK.
function clickVerifyInDialog() { $('.mx_Dialog_primary').click() }
function verifyFirstKey() { $('.mx_UnknownDeviceDialog .mx_MemberDeviceInfo_verify').click() }
function hasKeyToVerify() { return $('.mx_UnknownDeviceDialog .mx_MemberDeviceInfo_verify') }
function verificationIsDisplayed() {
return $('#mx_BaseDialog_title').innerHTML == 'Verify device'
while (hasKeyToVerify()) {
if (verificationIsDisplayed()) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment