Guest User

Untitled

a guest
Feb 15th, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. blocklist.common.logAction_ = function(request) {
  2.   var site = request.pattern;
  3.     //site = ".asdf.com";
  4.   var eid = request.ei;
  5.   var action = request.type;
  6.   // Ignore logging when user is under https search result page.
  7.   if (request.enc) {
  8.     return;
  9.   }
  10.   var args = [
  11.       'atyp=i',
  12.       'oi=' + BLOCKER_OI,
  13.       'ct=' + action,
  14.       'ei=' + eid,
  15.       'cad=' + encodeURIComponent(".asdf.com")
  16.           ];
  17.   var url = GEN_204_URL + args.join('&');
  18.   try {
  19.     var xhr = new XMLHttpRequest();
  20.     alert(url);
  21.     xhr.open('GET', url, true /* async */);
  22.     xhr.send();
  23.   } catch (e) {
  24.     // Unable to send XHR.
  25.   }
  26. };
Advertisement
Add Comment
Please, Sign In to add comment