grepolis-bot/content.js

10 lines
385 B
JavaScript
Raw Normal View History

2017-11-05 04:18:36 +01:00
let headElement = document.getElementsByTagName('head')[0];
let idInjection = document.createElement('script');
idInjection.innerHTML = 'let extensionId = "' + chrome.runtime.id + '";';
headElement.appendChild(idInjection);
let scriptInjection = document.createElement('script');
scriptInjection.src = chrome.runtime.getURL('injection.js');
headElement.appendChild(scriptInjection);