Ce dépôt a été archivé le 2022-05-31 . Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
2020-10-17 21:25:57 +02:00
injectScripts ( ) ;
async function injectScripts ( )
{
2020-11-16 21:21:02 +01:00
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' ) ;
2020-10-17 21:25:57 +02:00
await injectScript ( 'content_key_decryption.js' ) ;
await injectScript ( 'eme_interception.js' ) ;
}
function injectScript ( scriptName )
{
2020-11-16 21:21:02 +01:00
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 ) ;
} ) ;
}