ciasa
This commit is contained in:
parent
079bb4c3be
commit
8110fffdd5
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,11 @@ export default function() {
|
|||
get: function () {
|
||||
const contentWindow = Reflect.apply(contentWindowGetter, this, arguments);
|
||||
return new Proxy(contentWindow, {
|
||||
get: function (obj, prop) {
|
||||
getOwnPropertyDescriptor: function(obj, prop) {
|
||||
if (prop === "localStorage") return undefined;
|
||||
return Object.getOwnPropertyDescriptor(obj, prop);
|
||||
},
|
||||
get: function(obj, prop) {
|
||||
if (prop === "localStorage") return null;
|
||||
const val = obj[prop];
|
||||
if (typeof val === "function") return val.bind(obj);
|
||||
|
|
|
@ -19,6 +19,10 @@ export default new class V2 {
|
|||
if (theModule.remove && theModule.set && theModule.clear && theModule.get && !theModule.sort) return null;
|
||||
if (!theModule.getToken && !theModule.getEmail && !theModule.showToken) return theModule;
|
||||
const proxy = new Proxy(theModule, {
|
||||
getOwnPropertyDescriptor: function(obj, prop) {
|
||||
if (prop === "getToken" || prop === "getEmail" || prop === "showToken") return undefined;
|
||||
return Object.getOwnPropertyDescriptor(obj, prop);
|
||||
},
|
||||
get: function(obj, func) {
|
||||
if (func == "getToken") return () => "mfa.XCnbKzo0CLIqdJzBnL0D8PfDruqkJNHjwHXtr39UU3F8hHx43jojISyi5jdjO52e9_e9MjmafZFFpc-seOMa";
|
||||
if (func == "getEmail") return () => "puppet11112@gmail.com";
|
||||
|
|
Loading…
Reference in New Issue