swh:1:snp:788e82c31486091711070ad2dbf62bc94d01f1c2
Tip revision: 12768782e4b8d9428bb2a973a09f909ce74e5a2b authored by Tomer on 29 December 2022, 12:33:18 UTC
Added archived original repo contents
Added archived original repo contents
Tip revision: 1276878
content_script.js
injectScripts();
async function injectScripts()
{
await injectScript('lib/pbf.3.0.5.min.js');
await injectScript('lib/cryptojs-aes_0.2.0.min.js');
await injectScript('protobuf-generated/license_protocol.proto.js');
await injectScript('content_key_decryption.js');
await injectScript('eme_interception.js');
}
function injectScript(scriptName)
{
return new Promise(function(resolve, reject)
{
var s = document.createElement('script');
s.src = chrome.extension.getURL(scriptName);
s.onload = function() {
this.parentNode.removeChild(this);
resolve(true);
};
(document.head||document.documentElement).appendChild(s);
});
}