@
@
@xrated2015-12-29 12:56:51
JavaScript
@xrated, 2015-12-29 12:56:51

Override JS function in browser?

The crux of the matter is this. I open a site, the site has some set of JS features. The question is, how can I change these functions from my side? You can just paste a function with the same name into the console, but I would like it to be done automatically. GreaseMonkey didn't help

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
kidar2, 2015-12-29
@kidar2

You can write an extension for Chrome in js, which will override functions on the site.

V
Vladimir Io, 2015-12-29
@vawsan

Make your scripts into a js file and add the tag via appendChild()

Z
Zakharov Alexander, 2015-12-29
@AlexZaharow

Use fiddler . Here is an example of instructions on how to disable the debugger on avito under the https protocol. In the same way, you can change whatever you want. If the traffic is http, then just skip the fiddler certificate import steps:
f0dafd351c944844a6fdc1632f524c0a.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question