Skip to content

Instantly share code, notes, and snippets.

@andrewho83
Last active January 27, 2016 07:07
Show Gist options
  • Save andrewho83/7b70a9623ec98be66bc5 to your computer and use it in GitHub Desktop.
Save andrewho83/7b70a9623ec98be66bc5 to your computer and use it in GitHub Desktop.
scammy affiliate marketing
(function() {
var e = {
iu: "https://d5nxst8fruw4z.cloudfront.net/atrk.gif?",
ver: "20130128",
opts: {
atrk_acct: "",
domain: "",
dynamic: false
},
fired: function() {
if (typeof window._atrk_fired === "undefined") {
window._atrk_fired = false
}
return window._atrk_fired
},
params: {
frame_height: function() {
return e.frame("innerHeight", "clientHeight")
},
frame_width: function() {
return e.frame("innerWidth", "clientWidth")
},
iframe: function() {
try {
return window != window.top ? 1 : 0
} catch (e) {
return 0
}
},
title: function() {
return this.ue(document ? document.title : "")
},
time: function() {
var e = new Date;
return e.getTime() + "&time_zone_offset=" + e.getTimezoneOffset()
},
screen_params: function() {
try {
return screen.width + "x" + screen.height + "x" + screen.colorDepth
} catch (e) {}
return ""
},
java_enabled: function() {
if (navigator && typeof navigator.javaEnabled !== "undefined") {
return navigator.javaEnabled() ? "1" : "0"
}
return ""
},
cookie_enabled: function() {
if (navigator && typeof navigator.cookieEnabled !== "undefined") {
return navigator.cookieEnabled ? "1" : "0"
}
return ""
},
ref_url: function() {
return typeof document.referrer === "string" ? e.ue(document.referrer) : ""
},
host_url: function() {
return typeof window.location.href === "string" ? e.ue(window.location.href) : ""
},
random_number: function() {
return Math.round(Math.random() * 21474836747)
},
sess_cookie: function() {
return e.gc("__asc", e.user_cookie_v, "sess_cookie", 30 * 60)
},
user_cookie: function() {
return e.gc("__auc", e.user_cookie_v, "user_cookie", 366 * 24 * 60 * 60)
},
dynamic: function() {
return this.opts.dynamic.toString()
},
domain: function() {
return typeof this.opts.domain === "string" ? this.opts.domain : ""
},
account: function() {
return typeof this.opts.atrk_acct === "string" ? this.opts.atrk_acct : ""
},
jsv: function() {
return this.ver
},
user_lang: function() {
return window.navigator.userLanguage || window.navigator.language
}
},
frame: function(e, t) {
if (typeof window[e] !== "undefined") {
return window[e]
} else if (typeof window.document[t] !== "undefined") {
return window.document[t]
} else {
try {
return window.document.getElementsByTagName("body")[0][t]
} catch (n) {
return "-"
}
}
},
r: function() {
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1)
},
muc: function() {
return this.r() + this.r() + (new Date).getTime().toString(16) + this.r() + this.r()
},
gc: function(e, t, n, r) {
var i = "",
s = 0;
try {
i = this.gbc(e)
} catch (o) {}
if (i == null || i.length == 0) {
i = t;
s = 1
}
this.sbc(e, i, r);
return i + "&" + n + "_flag=" + s
},
ue: function(e) {
try {
return encodeURIComponent(e)
} catch (t) {
return escape(e)
}
},
gbc: function(e) {
var t = document.cookie,
n = e + "=",
r = t.indexOf("; " + n),
i;
if (r == -1) {
r = t.indexOf(n);
if (r != 0) return null
} else {
r += 2
}
i = t.indexOf(";", r);
if (i == -1) {
i = t.length
}
return this.ue(t.substring(r + n.length, i))
},
sbc: function(e, t, n) {
var r = new Date,
i = this.dom(),
s = "/";
r.setTime(r.getTime() + n * 1e3);
document.cookie = e + "=" + escape(t) + (n ? "; expires=" + r.toGMTString() : "") + (i && i.length > 0 ? "; domain=." + i : "") + "; path=/"
},
dom: function() {
if (typeof this.opts.domain === "string") {
return this.opts.domain
} else {
var e = window.location.host;
return e.substr(0, 4) == "www." ? e.substr(4) : e
}
},
gen_url: function() {
try {
var e = this;
return this.iu + this.map(this.params, function(t, n) {
return t + "=" + n.call(e)
}).join("&")
} catch (t) {
return this.iu
}
},
map: function(e, t) {
var n = [];
for (var r in e) {
if (e.hasOwnProperty(r)) {
n.push(t.call(this, r, e[r]))
}
}
return n
},
cloudfront: {
url: "http://cloudfront-labs.amazonaws.com/x.png",
fire: function() {
if (location.protocol == "http:") {
(new Image).src = e.cloudfront.url
}
}
},
user_cookie_v: "",
fire: function(e) {
this.user_cookie_v = this.muc();
this.map(e, function(e, t) {
this.opts[e] = t
});
if (this.fired()) {
return
}
window._atrk_fired = true;
var t = new Image(1, 1);
t.alt = "alexametrics";
t.src = this.gen_url();
this.cloudfront.fire()
}
};
window.atrk = function() {
e.fire(_atrk_opts)
};
if (typeof _atrk_opts !== "undefined" && typeof _atrk_opts.dynamic !== "undefined" && _atrk_opts.dynamic) {
atrk()
}
})()
function openChat()
{
$('#CX_btn_0').slideUp('fast',function()
{
$('#CX_popup_0').slideDown();
$('#CX_popup_body_0').perfectScrollbar();
scroll()
}
)
}
function closeChat()
{
$('#CX_popup_0').slideUp('fast',function()
{
$('#CX_btn_0').slideDown()
}
)
}
function updateChat()
{
$.ajax(
{
type:"POST",url:"chat_functions.undefined",data:
{
action:"getmessage"
}
}
).always(function(msg)
{
if(msg!="")
{
$(".chat_content").append(msg);
scroll()
}
}
)
}
function startChat()
{
$.ajax(
{
type:"POST",url:"chat_functions.undefined",data:
{
action:"getmessages"
}
}
).always(function(msg)
{
$(".chat_content").html(msg);
scroll()
}
)
}
function sendMessage(message)
{
$.ajax(
{
type:"POST",url:"chat_functions.undefined",data:
{
action:"sendmessage",message:message
}
}
).always(function(msg)
{
console.log(msg);
$(".chat_content").append(msg);
scroll()
}
)
}
function initChat()
{
startChat();
setInterval(function()
{
updateChat()
}
,update_timer*1000);
openChat()
}
function scroll()
{
$("#CX_popup_body_0").scrollTop($("#CX_popup_body_0").prop('scrollHeight'));
$("#CX_popup_body_0").perfectScrollbar('update')
}
$(document).ready(function()
{
initChat();
$('#CX_btn_0').on('click',function()
{
openChat()
}
);
$('#CX_popup_header_0').on('click',function()
{
closeChat()
}
);
$("#omdc").keypress(function(event)
{
if(event.which==13&&event.shiftKey!=true)
{
event.preventDefault();
sendMessage($("#omdc").val());
$("#omdc").val("")
}
}
)
}
);
// JavaScript Document
$(document).ready(function() {
$('#livechat').addClass('show');
$('#livechatopen').css({
display: 'none'
});
$('#livechatclose').css({
display: 'block'
});
$('#livechat').animate({
bottom: '0px'
}, 250);
/**********************/
/*** BOT USER NAMES ***/
/**********************/
botusernames = ["Anonymous", "Tommy", "TheRogueKnight", "Summoner", "Lion Killer", "John Junior", "Storm", "John", "ArcherQueen", "Miner", "Sam", "Fisherman", "Larry"];
botusernames2 = ["Greg", "Pekka M.", "David", "Barbarian Sam", "Prince", "WarWinner", "GamerGirl", "FreeClan", "The Best one", "Pleague", "ClanDestroyer", "Rockie", "BraveBoy"];
/**********************/
/*** RESPONSE TIMES ***/
/**********************/
maximumresponsetime = 1;
minimumresponsetime = 1;
/***********************/
/*** PRECONVERSATION ***/
/***********************/
setTimeout(botconvo, 500);
/*************************************/
/*** PRECONVERSATION RESPOSNE TIME ***/
/*************************************/
pre_conv_startup_time = 5;
pre_conv_responsetime = 15;
/********************************/
/*** PRECONVERSATION MESSAGES ***/
/********************************/
botmessages = ["My friend told me about this site, anyone used it, it really works like he said?", "Yes, it works, only this works, i got 50000 gems a minute ago.. Thanks guys", "Cool, I am trying at the momment, but the verification process is a little bit hard for me, cause I am only 10 years old..", "Well, the verification took me few minutes, it's simple.. I jus got 20000 gems", "Cool", "And the best part is that is completely free", "Whats the max I can get?? Anyone knows?...", "It is unlimited dude, i use it all the time, and I have upgraded almost everything.. I am waiting a TH 11 to be added soon by Supercell so I can upgrade my Town Hall", "Perfect, I am sharing this on Facebook :)", "At first I also thought wtf, but i actually got 50000 gems, it is working guys!!!", "One of my classmates used it today, but he is a computer freak:) he did this in 2 minutes.. ?", "Its simple, just enter your username and the required amounts, than choose one of the offers to finish the verification process, it is so easy to complete :) It took me 30 seconds lol ;)", "Finally!! i did it o yeaaaa i got 100000 gems!!!! Thank you all!", "No problem buddy, enjoy your gems and spend em wisely.. :)", " Yea :) and si this the secret of the top players that were raiding me in the past 10 months?", " :) lol, yeah, but nobody is admitting it, they are all using this", "Awesome now i can upgrade to TH 10 so fast, with my 999999gems...hehe", "Yes", "Enough talking, lets play people!!!", " Good bye from me also, clash on friends"];
/************************/
/*** RANDOM SHOUTOUTS ***/
/************************/
maxshouttime = 25;
minshouttime = 10;
numbergenerated = ["90000", "50000", "99999", "100000", "30000", "72000", "3000", "22000", "20000", "80000", "10000"];
listofresources = ["gems"];
/**************************/
/**** LIVE CHAT OPACITY ***/
/**************************/
$('#livechat').hover(function() {
$('#livechat').animate({
opacity: 1
}, 0)
}, function() {
$('#livechat').animate({
opacity: 0.9
}, 0)
});
/*****************/
/*** RESPONSES ***/
/*****************/
welcomemessage = ["Welcome to the chat.. :)", "Welcome to the chat.. :D", "Here, new one! :p", "You must be new here.. LOL guys we have a noob :)"];
greetingsresponse = ["Hello", "hello :D", "Hello :)", "hello.. :)", "Hello.. :D", "Greetings", "greetings.. :D", "greetings.. :)", "greetings :D", "Greetings :)"];
whatsupresponse = ["whats up", "whats up XD", "whats up :P", "whats up ?"];
howareyouresponse = ["how are you", "how are you :D", "how are you.. :)", "how are you.. :D", "how are you :)", "how are you.. XD", "everything is fine XD", "Yes, great", "yeah, great :)", "yeh, great :D", "Alright, great.. :)", "yeah, great.. :D", "Yeah, thanks", "Yeah, thanks :)", "Yeah, thanks :D", "Yeah, thanks.. :)", "Yeah, thanks.. :D"];
absentresponse = ["Yeah :)", "Yeah :D", "Yeah", "We are here :)", "we are here :D", "we are here :)", "? ?", "we are online", "we are online :)", "we are online :D"];
workingqresponse = ["Works for me :)", "works for me... :D", "works awesome", "it works awesome for me", "I just got what i wanted !", "It works perfectly", "It works, beyond awesomeness", "works like a charm", "i got what i wanted immediately"];
reallyresponse = ["Yes", "Yes :)", "Yeah :D", "Yeah.. :)", "Yeah.. :D"];
surveyresponse = ["Yes, it works all the time for me", "Nvm, it's really simple to complete", "Definetly worth it", "you get what you want, for free ! :D", "you get what you want right after verification, thanks :)"];
complimentresponse = ["Nothing", "Nothing :)", "Nothing :D", "Nothing.. :)", "Nothing.. :D", "No problems :)", "No problem :D", "No problem.. :)", "No problem.. :D", "No problem"];
byeresponse = ["goodbye", "see you guys :)", "going afk, see you guys :)", "enjoy it, cheers for now.. :)", "Bye guys.. :D"];
/**********************************/
/*** DO NOT EDIT ANYTHING BELOW ***/
/**********************************/
listofresourcesl = listofresources.length - 1;
numbergeneratedl = numbergenerated.length - 1;
welcomemessagel = welcomemessage.length - 1;
botusernamesl = botusernames.length - 1;
botusername = botusernames[Math.floor((Math.random() * botusernamesl))];
greetings = ["bonjour à vous", "bonjour", "bonsoir", "bjr", "bjr à vous"];
greetingsresponsel = greetingsresponse.length - 1;
whatsup = ["quoi de neuf"];
whatsupresponsel = whatsupresponse.length - 1;
howareyou = ["vous allez bien", "comment allez-vous"];
howareyouresponsel = howareyouresponse.length - 1;
absent = ["Il y a quelqu'un", "vous allez bien", "Vous êtes là", "Vous etes la", "Vous êtes la"];
absentresponsel = absentresponse.length - 1;
workingq = ["Ca marche", "Ca fonctionne"];
workingqresponsel = workingqresponse.length - 1;
working = ["marche", "fonctionne"];
really = ["vraiment"];
reallyresponsel = reallyresponse.length - 1;
survey = ["enquête", "enquete", "offre"];
surveyresponsel = surveyresponse.length - 1;
compliment = ["merci", "merci beaucoup"];
complimentresponsel = complimentresponse.length - 1;
bye = ["au revoir"];
byeresponsel = byeresponse.length - 1;
ok = ["okay", "ok"];
count = -1;
time = (pre_conv_startup_time * 1000) - (pre_conv_responsetime * 2000);
setInterval(function() {
$('<li>').text('A user generated ' + numbergenerated[Math.floor(Math.random() * numbergeneratedl)] + ' ' + listofresources[Math.floor(Math.random() * listofresourcesl)]).appendTo($('#messages')).addClass('botsent').addClass('italics');
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
}, (Math.floor(Math.random() * maxshouttime) + minshouttime) * 1000);
function botconvo() {
for (i = 0; i < (botmessages.length / 2); i++) {
time = time + (pre_conv_responsetime * 2000);
setTimeout(function() {
count++;
$('<li>').text(botmessages[count]).appendTo($('#messages')).addClass('botsent');
$('<span>').addClass('username').text(botusername2 + ': ').prependTo($('.botsent'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
}, time);
setTimeout(function() {
count++;
$('<li>').text('@' + botusername2 + ' ' + botmessages[count]).appendTo($('#messages')).addClass('botsent');
$('<span>').addClass('username').text(botusernames[Math.floor((Math.random() * botusernamesl))] + ': ').prependTo($('.botsent'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
}, time + (pre_conv_responsetime * 1000))
}
}
;botusernamesl = botusernames.length - 1;
botusername = botusernames[Math.floor((Math.random() * botusernamesl))];
botusernames2l = botusernames.length - 1;
botusername2 = botusernames2[Math.floor((Math.random() * botusernames2l))];
$('#livechat').click(function() {
$('#livechatheader').removeClass('chatred').addClass('chatgreen')
});
$('#chatbox').click(function() {
if ($('#pickausername').hasClass('”hidden”') == true) {
$('#pickausername').css({
display: 'block'
});
$('#pickausername').animate({
opacity: 1
}, 500)
}
});
$('#livechatheader').click(function() {
if ($('#livechat').hasClass('show') == false) {
$('#livechat').addClass('show');
$('#livechatopen').css({
display: 'none'
});
$('#livechatclose').css({
display: 'block'
});
$('#livechat').animate({
bottom: '-350px'
}, 300, function() {
$('#livechat').animate({
bottom: '0px'
}, 250)
})
} else {
$('#livechat').removeClass('show');
$('#livechatopen').css({
display: 'block'
});
$('#livechatclose').css({
display: 'none'
});
$('#livechat').animate({
bottom: '-350px'
}, 250, function() {
$('#livechat').animate({
bottom: '-300px'
}, 300)
})
}
});
$('#startchatting').click(function() {
if ($('#chatusername').val() != '') {
chatusername = $('#chatusername').val();
$('#pickausername').removeClass('”hidden”')
} else {
chatusername = 'Anonymous';
$('#pickausername').removeClass('”hidden”')
}
;$('#pickausername').animate({
opacity: 0
}, 500, function() {
$('#pickausername').css({
display: 'none'
});
$('#connectingtochat').css({
display: 'none'
});
$('#connectingtochat').animate({
opacity: 1
}, 500, function() {
setTimeout(function() {
$('#connectingtochat').animate({
opacity: 0
}, 500, function() {
$('#connectingtochat').css({
display: 'none'
});
$('#chat').addClass('show');
$('#chat').css({
display: 'block'
});
$('#chat').animate({
opacity: 1
}, 500);
$('<li>').text(chatusername + ', Welcome to the chat').css({
color: 'red'
}).appendTo($('#messages'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('<li>').text(welcomemessage[Math.floor((Math.random() * welcomemessagel))]).appendTo($('#messages')).addClass('botsent');
$('<span>').addClass('username').text(botusernames[Math.floor((Math.random() * botusernamesl))] + ': ').prependTo($('.botsent'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
})
}, 3500)
})
})
});
$("#chatbox").keydown(function(e) {
if (e.keyCode == 13 && !e.shiftKey) {
e.preventDefault()
}
});
$('#chatbox').keyup(function(e) {
$('#livechatheader').removeClass('chatred').addClass('chatgreen');
var code = (e.keyCode ? e.keyCode : e.which);
if (code == 13 && $('#chatbox').is(':focus') && $('#chatbox').val() != '') {
var rs = (Math.floor((Math.random() * maximumresponsetime) + minimumresponsetime)) * 1000;
message = $('#chatbox').val();
setTimeout(function() {
$('<li>').text(message).appendTo($('#messages')).addClass('lastsent');
$('<span>').addClass('username').addClass('green').text(chatusername + ': ').prependTo($('.lastsent'));
$('#chatbox').val('');
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.lastsent').removeClass('lastsent')
}, 200);
if (new RegExp(workingq.join("|")).test(message.toLowerCase())) {
setTimeout(function() {
$('<li>').text('@' + chatusername + ' ' + workingqresponse[Math.floor((Math.random() * workingqresponsel))]).appendTo($('#messages')).addClass('botsent');
$('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
}, rs)
} else if (new RegExp(working.join("|")).test(message.toLowerCase())) {
setTimeout(function() {
$('<li>').text('@' + chatusername + ' ' + workingqresponse[Math.floor((Math.random() * workingqresponsel))]).appendTo($('#messages')).addClass('botsent');
$('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
}, rs)
} else if (new RegExp(greetings.join("|")).test(message.toLowerCase())) {
setTimeout(function() {
$('<li>').text('@' + chatusername + ' ' + greetingsresponse[Math.floor((Math.random() * greetingsresponsel))]).appendTo($('#messages')).addClass('botsent');
$('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
}, rs)
} else if (new RegExp(whatsup.join("|")).test(message.toLowerCase())) {
setTimeout(function() {
$('<li>').text('@' + chatusername + ' ' + whatsupresponse[Math.floor((Math.random() * whatsupresponsel))]).appendTo($('#messages')).addClass('botsent');
$('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
}, rs)
} else if (new RegExp(howareyou.join("|")).test(message.toLowerCase())) {
setTimeout(function() {
$('<li>').text('@' + chatusername + ' ' + howareyouresponse[Math.floor((Math.random() * howareyouresponsel))]).appendTo($('#messages')).addClass('botsent');
$('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
}, rs)
} else if (new RegExp(absent.join("|")).test(message.toLowerCase())) {
setTimeout(function() {
$('<li>').text('@' + chatusername + ' ' + absentresponse[Math.floor((Math.random() * absentresponsel))]).appendTo($('#messages')).addClass('botsent');
$('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
}, rs)
} else if (new RegExp(really.join("|")).test(message.toLowerCase())) {
setTimeout(function() {
$('<li>').text('@' + chatusername + ' ' + reallyresponse[Math.floor((Math.random() * reallyresponsel))]).appendTo($('#messages')).addClass('botsent');
$('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
}, rs)
} else if (new RegExp(survey.join("|")).test(message.toLowerCase())) {
setTimeout(function() {
$('<li>').text('@' + chatusername + ' ' + surveyresponse[Math.floor((Math.random() * surveyresponsel))]).appendTo($('#messages')).addClass('botsent');
$('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
}, rs)
} else if (new RegExp(compliment.join("|")).test(message.toLowerCase())) {
setTimeout(function() {
$('<li>').text('@' + chatusername + ' ' + complimentresponse[Math.floor((Math.random() * complimentresponsel))]).appendTo($('#messages')).addClass('botsent');
$('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
}, rs)
} else if (new RegExp(bye.join("|")).test(message.toLowerCase())) {
setTimeout(function() {
$('<li>').text('@' + chatusername + ' ' + byeresponse[Math.floor((Math.random() * byeresponsel))]).appendTo($('#messages')).addClass('botsent');
$('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
}, rs)
} else if (new RegExp(ok.join("|")).test(message.toLowerCase())) {
setTimeout(function() {
$('<li>').text('@' + chatusername + ' ' + reallyresponse[Math.floor((Math.random() * reallyresponsel))]).appendTo($('#messages')).addClass('botsent');
$('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
}, rs)
} else if (message.toLowerCase().indexOf(botusername.toLowerCase()) != -1) {
setTimeout(function() {
$('<li>').text('Yeah?').appendTo($('#messages')).addClass('botsent');
$('<span>').addClass('username').text(botusername + ': ').prependTo($('.botsent'));
$('#messages').scrollTop($('#messages').prop('scrollHeight'));
$('.botsent').removeClass('botsent');
$('#livechatheader').removeClass('chatgreen').addClass('chatred');
document.getElementById('audio').play()
}, rs)
} else {}
}
})
});
_atrk_opts = {
atrk_acct: "BeECm1akGFL1cv",
domain: "clashroyalehack.net",
dynamic: true
};
(function() {
var as = document.createElement('script');
as.type = 'text/javascript';
as.async = true;
as.src = "https://d31qbv1cthcecs.cloudfront.net/atrk.js";
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(as, s);
})();
@andrewho83
Copy link
Author

Source code taken from ClashRoyale.net that uses a cloudfront pixel to send a callback to home base. Judging by the CSS class names, the company is most likely CX Digital. This is how affiliate marketing produces high amounts of income by scamming users into thinking they're able to get free gems in the game by completing offers. Offers are advertisers, and CX drives traffic to them, using the pixel to track.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment