braiam

Untitled

Aug 24th, 2012
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. chrome.extension.sendRequest({action: "pagematchurls", url: window.location.href}, function(response) {
  2.   if (response.isOk) {
  3.     chrome.extension.sendRequest({action: "mirrors"}, function(resp) {
  4.       for (var i = 0; i < resp.length; i++) {
  5.         if (response.mirrorName == resp[i].mirrorName) {
  6.           eval(resp[i].jsCode);
  7.           mirrors[mirrors.length] = eval(resp[i].objectName);
  8.           break;
  9.         }
  10.       }
  11.       removeBanner();
  12.       initPage();
  13.     });
  14.   }
  15. });
Advertisement
Add Comment
Please, Sign In to add comment