Advertisement
KiberInfinity

Untitled

May 21st, 2013
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. init:function(){
  2. loader.moz_ldr(function(doc,win){
  3. win.console.log('vkopt loader...');
  4. if (!doc || !isVKDomain(doc.location.href)) return;
  5. win.console.log('vkopt loader start');
  6. if (doc.getElementById('vkopt_inited')) return;
  7. for (var i=0;i<vkopt_scripts.length;i++){
  8. var js = doc.createElement('script');
  9. js.type = 'text/javascript';
  10. js.src = 'resource://vkopt/'+vkopt_scripts[i];
  11. if (i==(vkopt_scripts.length-1))
  12. js.id='vkopt_inited';
  13. doc.getElementsByTagName('head')[0].appendChild(js);
  14. }
  15. });
  16. },
Advertisement
RAW Paste Data Copied
Advertisement