-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.js
18 lines (18 loc) · 835 Bytes
/
popup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('frame_url').focus();
chrome.tabs.getSelected(null, function(tab) {
document.getElementById('frame_url').value = tab.url;
var loadURL = document.getElementById('load_url');
loadURL.addEventListener('click', function() {
document.getElementById('frame_id').src = document.getElementById('frame_url').value;
}, false);
var loadURLinc = document.getElementById('incognito');
loadURLinc.addEventListener('click', function() {
chrome.windows.create({
"url": document.getElementById('frame_url').value,
"incognito": true,
"state": "maximized" //"fullscreen"
});
}, false);
});
}, false);