forked from avirlrma/GmAD-Assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_save.js
More file actions
31 lines (24 loc) · 787 Bytes
/
main_save.js
File metadata and controls
31 lines (24 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
var gmail;
function refresh(f) {
if( (/in/.test(document.readyState)) || (typeof Gmail === undefined) ) {
setTimeout('refresh(' + f + ')', 10);
} else {
f();
}
}
var main = function(){
// NOTE: Always use the latest version of gmail.js from
// https://github.com/KartikTalwar/gmail.js
gmail = new Gmail();
//commented as they don't work
//var array = [false,gmail.tracker.ik];
//chrome.runtime.sendMessage("fahpcanpkjmlihnkdobkpeochdpfeapk",array, function(response) {});
console.log('IK value:', gmail.tracker.ik);
var para = document.createElement("P");
var t = document.createTextNode(gmail.tracker.ik);
para.appendChild(t);
para.id = "ikValue";
para.hidden=true;
document.body.prepend(para);
}
refresh(main);