var get = document.getElementById('get'); get.addEventListener('click', function () { chrome.tabs.insertCSS({file:'statics/css/insert.css'}); })
var update = document.getElementById('update'); update.addEventListener('click', function () { chrome.tabs.executeScript({file: 'statics/js/insert.js'}, function () { }); });
var create = document.getElementById('create'); create.addEventListener('click', function () { chrome.tabs.create({ index: 3, url: 'template/newpage.html', selected: false }, function (tab) { console.log(tab); }) });