You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Magister-Auto-Login/js/background.js

19 lines
451 B

chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) {
if (changeInfo.status == 'complete' && tab.active) {
chrome.tabs.executeScript(tab.ib, {
file: 'js/login.js'
});
}
});
chrome.runtime.onInstalled.addListener(function () {
// open options.html
window.open('/options/index.html', '_blank');
chrome.storage.sync.set({
"enabled": true
});
chrome.browserAction.setBadgeText({
text: 'ON'
});
});