File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 7
7
- Most of them dont take arguments, they work on what is currently visible on the screen
8
8
- I still need to add implementation for chrome extension, works by injecting js for now
9
9
- Main method is ** ` gmail.observe.on('lots_of_actions_here', yourFunction()) ` **
10
- - Click on a summary method link to view more detailed docss
10
+ - Click on a summary method link to view more detailed docs
11
11
12
12
13
13
## Setup
14
14
15
- Inject jQuery to Gmail (open console and paste this) and initialize ` gmail.js `
16
15
17
- #### Quick Usage Installation
16
+ #### Quick Usage - Chrome Console
17
+
18
+ ![ ] ( https://f.cloud.github.com/assets/461702/1628984/83ddb250-5728-11e3-9dbc-70a13c2becb0.JPG )
18
19
19
20
``` js
21
+ // {inject jquery.js} by copy pasting this in your console
20
22
var jq = document .createElement (' script' );
21
23
jq .src = " https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" ;
22
24
document .getElementsByTagName (' body' )[0 ].appendChild (jq);
23
25
24
26
// {inject gmail.js} by copy pasting gmail.js contents or via url like jquery above
27
+ // var Gmail = {.....} // paste gmail.js code here
25
28
29
+ // start using!
26
30
var gmail = Gmail ();
27
- console . log ( gmail .get .user_email () );
31
+ gmail .get .user_email ();
28
32
```
29
33
30
34
You can’t perform that action at this time.
0 commit comments