Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- blocklist.common.logAction_ = function(request) {
- var site = request.pattern;
- //site = ".asdf.com";
- var eid = request.ei;
- var action = request.type;
- // Ignore logging when user is under https search result page.
- if (request.enc) {
- return;
- }
- var args = [
- 'atyp=i',
- 'oi=' + BLOCKER_OI,
- 'ct=' + action,
- 'ei=' + eid,
- 'cad=' + encodeURIComponent(".asdf.com")
- ];
- var url = GEN_204_URL + args.join('&');
- try {
- var xhr = new XMLHttpRequest();
- alert(url);
- xhr.open('GET', url, true /* async */);
- xhr.send();
- } catch (e) {
- // Unable to send XHR.
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment