-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Works with new CAS system #1 * Add auto push feature * Add link to github in the extension window * Update README
- Loading branch information
Showing
10 changed files
with
107 additions
and
40 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,16 @@ [email protected] | |
|
||
## TODO | ||
|
||
- [x] Sync Passcodes with your google account. | ||
- [x] Sync Passcodes with your google account. | ||
|
||
## Changelog | ||
|
||
- 2.1.0 | ||
- Adapt to new CAS system | ||
- Auto push notifications to your DUO account(More secure way but require you to acknowledge it on your phone) | ||
|
||
- 2.0.0 | ||
- Support sync with google account | ||
|
||
- 1.0.0 | ||
- First functional version |
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 characters
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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// console.log('injected! duo'); | ||
|
||
|
||
window.addEventListener("message", function(e){ | ||
var keys = e.data.keys; | ||
if (keys){ | ||
try { | ||
window.requestAnimationFrame(function enter_passcode(){ | ||
if (document.getElementsByName('passcode')[0]){ | ||
document.getElementsByName('passcode')[0].value = keys; | ||
document.getElementById('passcode').click(); | ||
} else { | ||
window.requestAnimationFrame(enter_passcode); | ||
} | ||
}); | ||
} catch (err) { | ||
err; | ||
} | ||
} | ||
if (e.data.push) { | ||
window.requestAnimationFrame(function enter_passcode(){ | ||
if (document.getElementsByName('passcode')[0]){ | ||
var btns = document.getElementsByTagName('button'); | ||
var i = 0; | ||
for (i = 0; i < btns.length; i++) { | ||
if (btns[i].innerText === "Send Me a Push") { | ||
btns[i].click(); | ||
} | ||
} | ||
} else { | ||
window.requestAnimationFrame(enter_passcode); | ||
} | ||
}); | ||
} | ||
}, false); | ||
|
||
window.postMessage({"retrieve": "code"}, "*"); |
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 characters
This file was deleted.
Oops, something went wrong.
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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,4 @@ setTimeout( function(){ | |
} | ||
} | ||
}) | ||
}, 100); | ||
}, 1000); |
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 characters
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 characters
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 characters
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 characters