Skip to content

Instantly share code, notes, and snippets.

/onloadwff.js Secret
Created Dec 28, 2017

Embed
What would you like to do?
// mouseup event handler
mouseup: o(function(t) {
var n = t.target;
d(n) ? (f.reset(),
A(l({
target: n,
type: t.type
}))) : p(n) || (e && f.onChange(s),
h(n)) // this line hangs for > 10 seconds
}),
// the "h" function
h = function(e) {
var t = l({target: e, deferred: !0}); // this line hangs for > 10 seconds
g({
formData: t,
responseHandler: function(e) {
m(e.statusCode) && i(t)
}
})
// the "l" function
var l = function(e) {
return e.form = LPContentScriptTools.getForm(e.target),
r(e) // this line hangs for > 10 seconds
}
// the "r" function
return function(e) {
var a = t(e.form);
e.form && (a = n(e.form).concat(a)); // the n(e.form) call hangs for > 10 seconds
for (var l = [], s = 0; s < a.length; ++s) {
var c = a[s]
, u = r(c);
l.push({
input: c,
inputData: u
})
}
var d = o(l, e);
return e.deferred || i(d),
d
}
// the "n" function
n = function(e) {
for (var t = [], n = {}, i = {}, r = 0; r < e.length; ++r) { // e.length can sometimes by > 3000 items.. can take 10+ seconds to iterate all items
var o = e[r];
switch (o.type) {
case "hidden":
case "text":
case "email":
!o.value || "hidden" !== o.type && LPContentScriptTools.isVisible(o) || (n.hasOwnProperty(o.value) ? delete i[o.value] : (i[o.value] = o,
n[o.value] = !0))
}
}
var a = LPContentScriptTools.findTextNodes({
searches: Object.keys(i),
searchAll: !0,
exactMatch: !0,
allowEmails: !0
})
, l = {};
return a.filter(function(e) {
return !l.hasOwnProperty(e.match) && (l[e.match] = !0,
!0)
}).forEach(function(e) {
e.parent && "OPTION" !== e.parent.nodeName && LPContentScriptTools.isVisible(e.parent) && t.push(i[e.match])
}),
t
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.