Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Commit

Permalink
build version
Browse files Browse the repository at this point in the history
  • Loading branch information
ZaresPlusX authored Feb 11, 2020
1 parent 2422828 commit 13f3d8d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ℤ𝔼ℝ𝟘𝕏 Hack release/ℤ𝔼ℝ𝟘𝕏.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,26 @@
value: value
});
};

let conceal_function = function(original_Function, hook_Function) {
shared_state.get('functions_to_hide').set(hook_Function, original_Function);
};
//diff
let conceal_string = function(original_string, hook_string) {
shared_state.get('strings_to_hide').push({
from: new RegExp(hook_string.replace(/([\[|\]|\(|\)|\*|\\|\.|\+])/g, '\\$1'), 'g'),
to: original_string
});
};
//diff
const original_toString = Function.prototype.toString;
let hook_toString = new Proxy(original_toString, {
apply: function(target, _this, _arguments) {
//diff
try {
var ret = Function.prototype.apply.apply(target, [_this, _arguments]);
} catch (e) {
// modify stack trace to hide proxy
e.stack = e.stack.replace(/\n.*Object\.apply \(<.*/, '');
throw e;
}

0 comments on commit 13f3d8d

Please sign in to comment.