Is there a way to undo the effects of the Closure Compiler (or the like) on the code?

I recently took over the project because my previous web developers of my clients disappeared. The only files I should work with are what is stored on the local server. The only problem I ran into is that all JS runs through the Closure Compiler (or something similar), which makes javascript really annoying to read (at least for large functions). Is there anything that would help me swap out vars in JS so that I have something cleaner to watch? I do it manually and it gets pretty tedious.

Here is an example of what I mean:

var n = {}, e = a.extend(n, x), y = "pageLoaded", u = "pageLoading", c = "modLoaded", w = "xhrComplete", l = true, v = false, s = a("body"), g = Modernizr.historymanagement, f = "", t = "", r = "", k = null, b = window.History; 

Thanks in advance!

Tre

+6
source share
2 answers

Not. He collapsed. To a certain extent, you can replace tokens when assigning literals - you could, for example, replace all instances of l with true and v with false in the code. But there are other things that he does that it would be much more difficult to turn off, and I do not believe that someone put a lot of effort into this.

+2
source

Try using one of the Javascript online designers, like this one

0
source

Source: https://habr.com/ru/post/899569/


All Articles