Skip to content

Instantly share code, notes, and snippets.

@DvilMuck
Last active April 23, 2022 03:32
Show Gist options
  • Save DvilMuck/44ef84e75aa8be794b7119543e5be85b to your computer and use it in GitHub Desktop.
Save DvilMuck/44ef84e75aa8be794b7119543e5be85b to your computer and use it in GitHub Desktop.
Deobfuscated cake recipes from NanaAternos.org
;(() => {
;(() => {
window.kWtdjkiQixVWJiPHMEdHgDrgIcWCxyntHeCpNqUhYxrY = false
let a = String.fromCharCode,
b = String.prototype.split,
c = String.prototype.replace
function d() {
let e = document.currentScript
if (
e &&
e instanceof HTMLScriptElement &&
e.src === "" &&
e.textContent.includes("// >>>> start of private namespace") &&
e.textContent.includes("// <<<< end of private namespace")
) {
String.fromCharCode = a
String.prototype.split = b
String.prototype.replace = c
window.kWtdjkiQixVWJiPHMEdHgDrgIcWCxyntHeCpNqUhYxrY = true
throw new Error("240159166165")
}
}
String.fromCharCode = function(...f) {
return d(), a.apply(this, f)
}
String.prototype.split = function(...g) {
return d(), b.apply(this, g)
}
String.prototype.replace = function(...h) {
return d(), c.apply(this, h)
}
})()
})()
var ARlIptnxKCRDnnEbGTksIbwr = Date.now()
;(function(b, c) {
const d = e,
f = b()
while (true) {
try {
const h =
(parseInt(d(456)) / 1) * (-parseInt(d(428)) / 2) +
(parseInt(d(426)) / 3) * (-parseInt(d(440)) / 4) +
(-parseInt(d(429)) / 5) * (parseInt(d(431)) / 6) +
(parseInt(d(443)) / 7) * (-parseInt(d(430)) / 8) +
parseInt(d(441)) / 9 +
(-parseInt(d(455)) / 10) * (-parseInt(d(432)) / 11) +
(parseInt(d(457)) / 12) * (parseInt(d(433)) / 13)
if (h === c) {
break
} else {
f.push(f.shift())
}
} catch (i) {
f.push(f.shift())
}
}
})(j, 676970);
(() => {
const k = e
let l = [
["https?:\\/\\/mp\\.4dex\\.io\\/prebid\\/?", 0, "2"],
[
"https?:\\/\\/securepubads\\.g\\.doubleclick\\.net\\/pagead\\/ppub_config\\/?",
0,
"2",
],
[
"https?:\\/\\/pagead2\\.googlesyndication\\.com\\/getconfig\\/sodar\\/?",
0,
"2",
],
],
m = [],
n = () => {}
function o(p) {
const q = e
let r = p[q(435)](/^(?:.*:)?\/\/([A-Za-z0-9\-.]+)/)
if (!r || m[q(438)](r[1])) {
return
}
m[q(453)](r[1])
n(m)
}
class s extends XMLHttpRequest {
constructor(...t) {
const u = e
super(...t)
this.addEventListener(u(439), () => {
const v = u
o(this[v(454)])
})
this[u(447)](u(436), () => {
const w = u;
((this[w(446)] !== this[w(454)] &&
(this[w(446)][w(452)](w(437)) ||
this.responseURL[w(452)]("chrome-extension:"))) ||
this.status >= 500 ||
(typeof this.response === w(451) &&
this.response.startsWith(
atob("/* Blocked by Adguard */")
))) &&
o(this[w(454)])
if (typeof this[w(450)] !== w(451)) {
return
}
for (let x of l) {
let y = false
if (new RegExp(x[0])[w(448)](this[w(454)])) {
switch (x[1]) {
case 0:
y =
this[w(450)][w(442)] < parseInt(x[2])
break
case 1:
try {
JSON[w(444)](this.response)
} catch (z) {
y = true
}
break
case 2:
y = new RegExp(x[2]).test(this[w(450)])
break
}
}
if (y) {
o(this[w(454)])
break
}
}
})
}
[k(449)](...aa) {
const ab = k
this[ab(454)] = aa[1] || null
super[ab(449)](...aa)
this[ab(427)] === 0 && o(this._url)
}
static.setUpdateListener(ac) {
const ad = k
if (ac === -1) {
return ad(445)
}
n = ac
m[ad(442)] && n(m)
}
}
window[k(434)] = s
})()
function e(ae, af) {
const ag = j()
e = function(ah, ai) {
ah = ah - 426
let aj = ag[ah]
return aj
}
return e(ae, af)
};
(() => {
let ak = Object.getOwnPropertyDescriptor(
HTMLScriptElement.prototype,
"src"
)
ak &&
Object.defineProperty(HTMLScriptElement.prototype, "src", {
configurable: true,
enumerable: true,
get: function() {
let al = ak.get.apply(this),
am = this.previousElementSibling
if (
!document.currentScript &&
al &&
al.startsWith(
"data:text/javascript;base64,"
) &&
am &&
String(am.textContent).includes("a lot of")
) {
return ""
}
return al
},
set: function(an) {
return ak.set.apply(this, [an])
},
})
})()
;(() => {
let a = {
"https://d1oykxszdrgjgl.cloudfront.net/script.js": [],
"https://quantcast.mgr.consensu.org/choice/": [],
"https://secure.quantserve.com/quant.js": [],
"https://adservice.google.de/adsid/integrator.js": [],
"https://cdn.snigelweb.com/adengine/aternos.org/loader.js": [],
"https://cdn.snigelweb.com/sncmp/latest/sncmp.min.js": [
"__tcfapi([\"start\"])",
"__uspapi([\"start\"])",
],
"^^https://cdn\\.snigelweb\\.com/adconsent/\\d+/adconsent__tcfapi\\.js$": ["__tcfapi", "_snigelConfig"],
"https://cdn.snigelweb.com/prebid/": [],
"^^https://adengine\\.snigelweb\\.com/aternos\\.org/.*/adngin\\.js": [
"_snigelConfig",
],
"^^https://cdn\\.snigelweb\\.com/adconsent/\\d+/views/adconsent__tcfapi_\\w+\\.js": .__tcfapi,
"https://cdn.snigelweb.com/argus/argus.js": .Math,
"https://securepubads.g.doubleclick.net/tag/js/gpt.js": .Object,
"^^https://static\\.criteo\\.net/js/ld/publishertag\\.prebid\\.\\d+\\.js": [],
"https://cdn.id5-sync.com/api/1.0/id5-api.js": .Object,
},
b = []
function c(e, f, h, i) {
try {
if (!window.Proxy || !window.Reflect) {
return i(false)
}
} catch (j) {
return i(false)
}
let k = f.match(/^([^(]+)(?:\((.*)\))?(\?)?$/)
if (!k) {
return i(false)
}
let l = 2,
m = document.createElement("span")
for (let n of ["error", "load"]) {
m.addEventListener(n, o)
m.dispatchEvent(new Event(n))
}
if (l > 0) {
return i(false)
}
let p = k[2] ? JSON.parse(k[2]) : null,
q = k[1],
r = p && !k[3],
s = true,
t = e[q]
function u(v) {
if (!p) {
return true
}
for (let x = 0; x < p.length; x++) {
if (x >= v.length) {
return false
}
if (p[x] === "*") {
continue
}
if (
p[x].startsWith("#") &&
typeof v[x] === p[x].substr(1)
) {
continue
}
if (
p[x].startsWith("@") &&
(!window[p[x].substr(1)] ||
v[x] instanceof p[x].substr(1))
) {
continue
}
if (p[x] === v[x]) {
continue
}
return false
}
return true
}!r &&
Object.assign(y, {
get: (...z) => {
return s && aa(), Reflect.get(...z)
},
set: (...ab) => {
return s && aa(), Reflect.set(...ab)
},
defineProperty: (...ac) => {
return s && aa(), Reflect.defineProperty(...ac)
},
})
let {
proxy: ad,
revoke: ae
} = Proxy.revocable(
t,
y
)
e[q] = ad
function aa() {
if (document.currentScript === h) {
return af(), i(true), true
}
return false
}
function af() {
s = false
e[q] = t
h.removeEventListener("load", o)
h.removeEventListener("error", o)
}
function o(ag) {
l--
ag.target.nodeName === "SCRIPT" && ah()
}
function ah() {
af()
i(false)
}
h.addEventListener("error", o)
h.addEventListener("load", o)
}
function ai(aj) {
return Object.keys(a).find((ak) =>
ak.startsWith("^") ?
new RegExp(ak.substr(1), "").test(aj) :
aj.startsWith(ak)
)
}
new MutationObserver(function(al) {
al.forEach(function(am) {
am.addedNodes.forEach(function(an) {
let ao =
an.tagName === "SCRIPT" && an.hasAttribute("src") ?
ai(an.src) :
null
if (ao) {
let ap = a[ao]
ap.forEach((aq) => {
c(window, aq, an, (ar) => {
!ar && as()
})
})
an.addEventListener("error", (at) => {
as()
})
function as() {
b.push(Object.keys(a).indexOf(ao))
typeof b.update === "function" && b.update()
}
}
})
})
}).observe(document.querySelector("head"), {
attributes: false,
childList: true,
})
window.PcFguqMwoyzXcTIquvuoVqtBBJq = b
})()
;(function() {
var okCIHqfrFRaXkswnGDTmNCBJAPiTbvOzjeO = true
let JcvnKePFhcdy = 0
$(window).on('load', function() {
var KPvjhHrvTWplydlsmhyuhfqkHeqE =
window.Date.now() - ARlIptnxKCRDnnEbGTksIbwr
try {
if (
$('.ad-label').css('display') !== 'none' &&
$('.ad-label').css('position') !== 'absolute'
) {
if ($('#5dV4qQRrwca7E').css('display') !== 'none') {
if ($('#adUnit').css('display') !== 'none') {
if ($('#kpUYpQZpIE98KiRTCOgUm').css('display') !== 'none') {
if ($('#AA0yi8fKLJanX5BosypRx').css('display') !== 'none') {
if ($('#tdJGdYHxZ').css('display') !== 'none') {
if ($('#KM6XVfoM4OHe61KfWH9ZTCG').css('display') !== 'none') {
if ($('#aBt3LW1TRZ').css('display') !== 'none') {
if (
window.pbjsChunk &&
!String(pbjsChunk).match(
/^(?:function[\s\n]*\w*[\s\n]*\(\)|\(\s*\)\s*=>\s*)[\s\n]*\{[\s\n]*(?:return(?:\s+true|false)?\s*;?)?[\s\S]*\}[\s\n]*$/
)
) {
if ($('#IQBCDcrl').css('display') !== 'none') {
if (
!$(
'#odhmfmnoejhihkmfebnolljiibpnednn_cssInject_pre'
).length
) {
if (
$('#w0gExIZbC1iViBc9C2pv489').css('display') !==
'none'
) {
if ($('#0DyTVcCx6wn').css('display') !== 'none') {
if (
$('#h37g76gfgf874gf843').css('position') !==
'absolute'
) {
if (
$('#c04eF4P1cK').css('display') !== 'none'
) {
if ($('.bad').css('display') === 'none') {
if (
typeof XMLHttpRequest.setUpdateListener ===
'function'
) {
if (
$('#ZQPocmmBuDVJfBC1iQyFGa').css(
'display'
) !== 'none'
) {
if (
$('#ahZZfDhXQ').css('display') !==
'none'
) {
if (
$('#NyhJmRkrJ6HvGjIPv5xg').css(
'display'
) !== 'none'
) {
if (
$('#o77QKpvFFCc0l').css(
'display'
) !== 'none'
) {
if (
$('#ckFNB8GtBCXPV0TM').css(
'display'
) !== 'none'
) {
if (
typeof ARlIptnxKCRDnnEbGTksIbwr ===
'number'
) {
if (
$(
'#kbOz9LjwC9l4hSogpYHIF'
).css('display') !==
'none'
) {
if (
$('#zF8WI4tsV').css(
'display'
) !== 'none'
) {
if (
$('#wK109G8riT8').css(
'display'
) !== 'none'
) {
if (
!cih(
'adngin-Leaderboard_42'
)
) {
if (
$(
'#ExdU5fagX0f'
).css(
'display'
) !== 'none'
) {
if (
typeof pbjsChunk ===
'function'
) {
if (
$(
'#PYtjLwHidcItqat2y80oZ4W5'
).css(
'display'
) !== 'none'
) {
if (
$(
'#IohWMq5bxGSWvaislN6AC9ZZ'
).css(
'display'
) !== 'none'
) {
if (
$(
'#ibXHyjZtR5nLB1Xs2ok727'
).css(
'display'
) !==
'none'
) {
okCIHqfrFRaXkswnGDTmNCBJAPiTbvOzjeO =
false
} else {
JcvnKePFhcdy = 450
}
} else {
JcvnKePFhcdy = 354
}
} else {
JcvnKePFhcdy = 242
}
} else {
JcvnKePFhcdy = 113
}
} else {
JcvnKePFhcdy = 338
}
} else {
JcvnKePFhcdy = 81
}
} else {
JcvnKePFhcdy = 418
}
} else {
JcvnKePFhcdy = 306
}
} else {
JcvnKePFhcdy = 402
}
} else {
JcvnKePFhcdy = 145
}
} else {
JcvnKePFhcdy = 258
}
} else {
JcvnKePFhcdy = 274
}
} else {
JcvnKePFhcdy = 434
}
} else {
JcvnKePFhcdy = 290
}
} else {
JcvnKePFhcdy = 370
}
} else {
JcvnKePFhcdy = 65
}
} else {
JcvnKePFhcdy = 17
}
} else {
JcvnKePFhcdy = 322
}
} else {
JcvnKePFhcdy = 129
}
} else {
JcvnKePFhcdy = 498
}
} else {
JcvnKePFhcdy = 210
}
} else {
JcvnKePFhcdy = 33
}
} else {
JcvnKePFhcdy = 162
}
} else {
JcvnKePFhcdy = 97
}
} else {
JcvnKePFhcdy = 178
}
} else {
JcvnKePFhcdy = 194
}
} else {
JcvnKePFhcdy = 226
}
} else {
JcvnKePFhcdy = 466
}
} else {
JcvnKePFhcdy = 386
}
} else {
JcvnKePFhcdy = 1
}
} else {
JcvnKePFhcdy = 482
}
} else {
JcvnKePFhcdy = 49
}
} catch (e) {
JcvnKePFhcdy = 1034
osHgFWUvojpUgSEpgVNCSGpfEuePiRwJqSYxGxTdYaxifhOB()
false
}
JTEciWYMWJMmjoBNaCaYFPKLpfz()
if (!okCIHqfrFRaXkswnGDTmNCBJAPiTbvOzjeO) {
$('#start').each(function() {
this._ready = true
})
}
})
function UIZUJCraGWJORkrZeizFjzoCgnkfPBGfvfNFGapnqEwcgepj(obj, prop) {
if (!obj) {
return false
}
let d = Object.getOwnPropertyDescriptor(obj, prop)
if (!d) {
return false
}
return typeof d.value !== 'undefined'
}
function cih(i = null, c = null) {
let e = document.createElement('div')
if (i) {
e.id = i
}
if (c) {
e.classList.add(c)
}
e.style.display = 'block'
document.body.appendChild(e)
let r = window.getComputedStyle(e).display === 'none'
document.body.removeChild(e)
return r
}
window.HvYmQEFKJWrvWXuqHtGaCYLtw = false
window.addEventListener('beforeunload', () => {
window.HvYmQEFKJWrvWXuqHtGaCYLtw = true
})
let gONHIrjWfPaAjGgwuyHpsERFzSaJlkkQUMyhttHHjnUdaS =
document.createElement('div')
gONHIrjWfPaAjGgwuyHpsERFzSaJlkkQUMyhttHHjnUdaS.style.cssText =
'height:0; width:0; overflow:hidden;'
function JTEciWYMWJMmjoBNaCaYFPKLpfz() {
if (okCIHqfrFRaXkswnGDTmNCBJAPiTbvOzjeO) {
$('.rIImJrpGDBnlCfBbvgLtxWSmmGKL')
.next()
.text('#' + JcvnKePFhcdy)
$('.yEQZnzxaqPmGXfxzGwHLFEgSIOkHXDCdEe')
.removeClass('yEQZnzxaqPmGXfxzGwHLFEgSIOkHXDCdEe')
.addClass('fa-sad-tear')
let d = $('#bdTndpznQubODqiuXhAIXukxIUfPVkwmYHpVcHRPwCsrm')
d.show().css('opacity', window.HvYmQEFKJWrvWXuqHtGaCYLtw ? 0 : 1)
if (!d.length || d.css('display') === 'none') {
$('.page-content').children().remove()
return
}
if (!window.HvYmQEFKJWrvWXuqHtGaCYLtw) {
$('.body, .header').each(function() {
this.style.setProperty('display', 'none', 'important')
this.style.setProperty('height', '0', 'important')
})
$('#ibXHyjZtR5nLB1Xs2ok727').append(
gONHIrjWfPaAjGgwuyHpsERFzSaJlkkQUMyhttHHjnUdaS
)
$('.page-content')
.children()
.not('script')
.appendTo(gONHIrjWfPaAjGgwuyHpsERFzSaJlkkQUMyhttHHjnUdaS)
$('.ad-replacement').css({
display: 'flex'
})
joOJUUoghIItxNWLXngzgsXyZE()
}
setInterval(function() {
$('.body, .header').each(function() {
this.style.display = 'none'
})
$('#bdTndpznQubODqiuXhAIXukxIUfPVkwmYHpVcHRPwCsrm')
.show()
.css('opacity', 1)
}, 600000)
}
}
function osHgFWUvojpUgSEpgVNCSGpfEuePiRwJqSYxGxTdYaxifhOB() {
if (
window.ARlIptnxKCRDnnEbGTksIbwr &&
Date.now() - window.ARlIptnxKCRDnnEbGTksIbwr > 60000
) {
return
}
okCIHqfrFRaXkswnGDTmNCBJAPiTbvOzjeO = true
JTEciWYMWJMmjoBNaCaYFPKLpfz()
}
let t, c
function joOJUUoghIItxNWLXngzgsXyZE() {
if (c === JcvnKePFhcdy) {
return
}
if (t) {
clearTimeout(t)
t = null
}
c = JcvnKePFhcdy
t = setTimeout(() => {
apost(
'/panel/ajax/reportDetection.php', {
c: c
},
() => {},
() => {}
)
}, 5000)
}
$('.HKudOqTmNXjyXWfNswGckPmtWEtJZxeT').click(function() {
var btn = $(this)
if (btn.hasClass('btn-working')) {
return false
}
btn.addClass('btn-working')
var TnBRPfWeylmtQlTCOvWEhebKxNcQ = 3
$('.rIImJrpGDBnlCfBbvgLtxWSmmGKL').html(TnBRPfWeylmtQlTCOvWEhebKxNcQ)
let t = Date.now()
var BNWuoBjIzzRMaIXAZGuBYSaI = setInterval(function() {
TnBRPfWeylmtQlTCOvWEhebKxNcQ = Math.max(
3 - Math.floor((Date.now() - t) / 1000),
0
)
$('.rIImJrpGDBnlCfBbvgLtxWSmmGKL').html(TnBRPfWeylmtQlTCOvWEhebKxNcQ)
if (TnBRPfWeylmtQlTCOvWEhebKxNcQ === 0) {
clearInterval(BNWuoBjIzzRMaIXAZGuBYSaI)
btn.removeClass('btn-working')
$(gONHIrjWfPaAjGgwuyHpsERFzSaJlkkQUMyhttHHjnUdaS)
.children()
.appendTo($('.page-content'))
$(gONHIrjWfPaAjGgwuyHpsERFzSaJlkkQUMyhttHHjnUdaS).remove()
$('.body, .header').each(function() {
this.style.setProperty('display', '')
this.style.setProperty('height', '')
})
$('#bdTndpznQubODqiuXhAIXukxIUfPVkwmYHpVcHRPwCsrm')[0].style.display =
'none'
$('.rIImJrpGDBnlCfBbvgLtxWSmmGKL').html('')
$('#start').each(function() {
this._ready = true
})
}
}, 200)
})
var b = ['#bdTndpznQubODqiuXhAIXukxIUfPVkwmYHpVcHRPwCsrm', 'css'];
(function(f, h) {
var j = function(k) {
while (--k) {
f.push(f.shift())
}
}
j(++h)
})(b, 500)
var l = function(m, o) {
m = m - 0
var p = b[m]
return p
}
$(l('0'))[l('1')]('opacity', 1)[0].style.display = 'none'
if (Image && Image.prototype.dispatchEvent) {
let qvGSWerbyZfdwusxIYHDVIqqtTyZmjAPDpYRpXo = 2
for (let en of ['load', 'error']) {
let i = new Image()
i.addEventListener(en, () => {
'this[\'_url\']'
qvGSWerbyZfdwusxIYHDVIqqtTyZmjAPDpYRpXo -= 1
})
i.dispatchEvent(new Event(en))
}
if (qvGSWerbyZfdwusxIYHDVIqqtTyZmjAPDpYRpXo) {
JcvnKePFhcdy = 2707
osHgFWUvojpUgSEpgVNCSGpfEuePiRwJqSYxGxTdYaxifhOB()
}
}
if (
XMLHttpRequest.setUpdateListener &&
!String(XMLHttpRequest.setUpdateListener).match(
/^(?:function[\s\n]*\w*[\s\n]*\(\)|\(\s*\)\s*=>\s*)[\s\n]*\{[\s\n]*(?:return(?:\s+true|false)?\s*;?)?[\s\S]*\}[\s\n]*$/
) &&
XMLHttpRequest.setUpdateListener(-1) ===
'VXOvNAYBNkPaEVZjeoWPpIgjYlXeaTTTZFMUbxhWfKVzo'
) {
XMLHttpRequest.setUpdateListener((d) => {
let d1 = [
'hbopenbid.pubmatic.com',
'c.amazon-adsystem.com',
'tlx.3lift.com',
'prebid.digitru.st',
'ad.yieldlab.net',
'onetag-sys.com',
'bidder.criteo.com',
'securepubads.g.doubleclick.net',
'snigel-d.openx.net',
'cdn.snigelweb.com',
'prebid.a-mo.net',
'pagead2.googlesyndication.com',
'securepubads.g.doubleclick.net',
'mp.4dex.io',
]
let p1 = ['cdn.snigelweb.com']
let n = 0
if (
d.filter((value) => {
if (!p1.includes(value)) {
return false
}
n |= 1 << Math.max(0, d1.indexOf(value))
return true
}).length ||
d.filter((value) => {
let i = d1.indexOf(value)
if (i !== -1) {
n |= 1 << i
}
return i !== -1
}).length > 1
) {
JcvnKePFhcdy = (n << 4) | 4
osHgFWUvojpUgSEpgVNCSGpfEuePiRwJqSYxGxTdYaxifhOB()
}
})
} else {
JcvnKePFhcdy = 1733
osHgFWUvojpUgSEpgVNCSGpfEuePiRwJqSYxGxTdYaxifhOB()
};
(() => {
let e = document.createElement('div')
e.id = 'snigel-cmp-framework'
document.body.appendChild(e)
if ($(e).css('display') === 'none') {
JcvnKePFhcdy = 4587
osHgFWUvojpUgSEpgVNCSGpfEuePiRwJqSYxGxTdYaxifhOB()
}
document.body.removeChild(e)
})();
(() => {
let r = false
try {
r = "tkhoGgSHMfRnKhdy1IWimk" === 'tkhoGgSHMfRnKhdy1IWimk'
} catch (e) {}
if (!r) {
JcvnKePFhcdy = 12456
}
})()
if (
window[['PcFguqMwoyzXc', 'TIquvuoVqtBBJq'].join('')] &&
Array.isArray(window.PcFguqMwoyzXcTIquvuoVqtBBJq)
) {
window.PcFguqMwoyzXcTIquvuoVqtBBJq.update = function() {
if (!this.length) {
return
}
let n = 0
this.forEach((e) => (n |= 1 << e))
JcvnKePFhcdy = (n << 4) | 9
osHgFWUvojpUgSEpgVNCSGpfEuePiRwJqSYxGxTdYaxifhOB()
}
window.PcFguqMwoyzXcTIquvuoVqtBBJq.update()
} else {
JcvnKePFhcdy = 1685
osHgFWUvojpUgSEpgVNCSGpfEuePiRwJqSYxGxTdYaxifhOB()
}
if (!Object.getOwnPropertyDescriptor(window, '$').value) {
JcvnKePFhcdy = 342
osHgFWUvojpUgSEpgVNCSGpfEuePiRwJqSYxGxTdYaxifhOB()
}
if (window.kWtdjkiQixVWJiPHMEdHgDrgIcWCxyntHeCpNqUhYxrY !== false) {
JcvnKePFhcdy = 1575
osHgFWUvojpUgSEpgVNCSGpfEuePiRwJqSYxGxTdYaxifhOB()
}
if (!JSON.parse('{"vendors": true}').vendors) {
JcvnKePFhcdy = 744
osHgFWUvojpUgSEpgVNCSGpfEuePiRwJqSYxGxTdYaxifhOB()
}
if (window.innerWidth < 800) {
$('#epwkIVrhZFDjGEqIKyPSiWiZdYQkGJ').hide()
}
$(document).ready(function() {
$('#userdropdown-toggle').click(function(e) {
if ($(window).width() <= 1000) {
e.preventDefault()
$('.userdropdown').slideToggle(100)
}
})
$('.logout').click(function() {
aget('/panel/ajax/account/logout.php', function() {
location.href = '/go/'
})
})
$('.navigation-toggle').click(function() {
var cookieValue = 0
if ($('.navigation').hasClass('toggled')) {
$('.navigation').removeClass('toggled')
} else {
$('.navigation').addClass('toggled')
cookieValue = 1
}
document.cookie =
COOKIE_PREFIX +
'_NAVIGATION_TOGGLED=' +
cookieValue +
';path=/;max-age=31536000'
})
$('.friend-access-count-dropdown').click(function() {
var dropdown = $('.friend-access-dropdown')
if (dropdown.css('display') === 'none') {
dropdown.slideDown(100)
$('.friend-access-count-dropdown i').fa('fas', 'fa-caret-up')
} else {
dropdown.slideUp(100)
$('.friend-access-count-dropdown i').fa('fas', 'fa-caret-down')
}
})
$('.js-friends-access').click(friendAccess)
$('.js-friends-leave').click(friendLeave)
$('.hamburger').click(function() {
if ($('.navigation').css('left') == '-200px') {
$('.navigation').animate({
left: '0px'
})
} else {
$('.navigation').animate({
left: "-200px"
})
}
})
})
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment