Last active
July 3, 2018 06:07
Revisions
-
dhl revised this gist
Jul 3, 2018 . No changes.There are no files selected for viewing
-
dhl revised this gist
Jul 3, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,8 +3,8 @@ 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' } -
dhl revised this gist
Jun 4, 2018 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,8 +5,14 @@ Quick and dirty hack. USE AT YOUR OWN RISK. function clickVerifyInDialog() { $('.mx_Dialog_primary').click() } function verifyFirstKey() { $('.mx_MemberDeviceInfo_verify').click() } function hasKeyToVerify() { return $('.mx_MemberDeviceInfo_verify') } function verificationIsDisplayed() { return $('#mx_BaseDialog_title').innerHTML == 'Verify device' } while (hasKeyToVerify()) { verifyFirstKey() if (verificationIsDisplayed()) { clickVerifyInDialog() } } -
dhl created this gist
Jun 4, 2018 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ /* Quick and dirty hack. USE AT YOUR OWN RISK. */ function clickVerifyInDialog() { $('.mx_Dialog_primary').click() } function verifyFirstKey() { $('.mx_MemberDeviceInfo_verify').click() } function hasKeyToVerify() { return $('.mx_MemberDeviceInfo_verify') } while (hasKeyToVerify()) { verifyFirstKey() clickVerifyInDialog() }