S
S
Station 722018-07-12 17:54:25
JavaScript
Station 72, 2018-07-12 17:54:25

How to insert a script on a website?

The situation is this - there is someone else's site and a minified script on it. I want to step through the code, because so I can’t understand what and how it works (incomprehensible variables like "e"). How can I specify in chrome that it loads my version of the file for the site, which is at least not in one line and you can put a breakpoint on it? Or some trick with the source map needs to be done? Thank you all in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Station 72, 2018-07-12
@cjstress

Everything works fine with Telerik Fiddler -> AutoResponder tab.

A
Andrew, 2018-07-12
@KickeRockK

Go through the DevOps browser -> find your .js->refactor (IDE, online)->insert, in the same DevOps.
Have you considered this option?
Or just download the entire site and edit locally.

K
Kirill Levunin, 2018-07-12
@klevunin

https://learn.javascript.ru/debugging-chrome - JS debugging should be done where you do it.
"which is at least not in one line" - you need to click on these brackets in the lower left corner {}
"incomprehensible variables of type e" - initially they were understandable there. Then the collector of their names himself came up with short ones.
You can also if you really want to. Get tired and make browser extensions and do whatever you want with the site in my browser. https://developer.chrome.com/extensions/devguide - for example, on your favorite site, remove the blocks you don't need and make the office in the color you like. Insert your own JS and remove someone else's. And do the like.
You can still stupidly download the page. Edit it as you like and open it in a browser.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question