B
B
BanterFace2018-11-19 15:12:54
JavaScript
BanterFace, 2018-11-19 15:12:54

Is there a browser that can spoof the return values ​​of methods?

For example, I want it to
document.hasFocus()
always return true when executed.
Is there a browser that can make such fundamental modifications?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2018-11-19
@BanterFace

window.document.hasFocus = () => true;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question