Advertisement
m0gliE

GhostSpamProject.js

Dec 25th, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.89 KB | None | 0 0
  1. "use strict";
  2.  
  3. require(["jquery"], function($) {
  4.     $(function() {
  5.         $("form").submit(function(event) {
  6.             $.ajax({
  7.                 type: "GET",
  8.                 url: "http://www.google-analytics.com/collect",
  9.                 data: {
  10.                     "v": 1,
  11.                     "tid": $("input[name=tid]").val(),
  12.                     "cid": Math.floor(Math.random() * 10000000),
  13.                     "t": "pageview",
  14.                     "dh": $("input[name=dh]").val(),
  15.                     "dp": $("input[name=dp]").val(),
  16.                     "dt": $("input[name=dt]").val(),
  17.                 }
  18.             }).done(function(data) {
  19.                 alert('Event successfully submitted');
  20.             }).fail(function(xhr, textStatus, errorThrown) {
  21.                 alert('Failed to submit event');
  22.             });
  23.             event.preventDefault();
  24.         });
  25.     });
  26. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement