如何将javascript转换为原始英文文本? [英] How can I convert javascript to original english text?

查看:73
本文介绍了如何将javascript转换为原始英文文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在桌面上的一个文件夹中保存了一些重要的电子邮件信件,当我尝试检索它时,它全部都在代码中。 (.JS)我不知道如何将这个原始文本转换成英文,或者甚至可能。我在技术上是文盲,所以我需要一些基本的帮助。

谢谢!

Susan



I saved some important email correspondence in a folder on my desktop, and when I tried to retrieve it, it is all in code. (.JS) I have NO idea how to convert this to my original text to English, or if it is even possible. I am technically illiterate, so I need some basic help.
Thank you!
Susan

/* JS */ gapi.loaded_3(function(_){var window=this;
var Bk;_.zk=function(a){if(!_.Tc(a))return null;for(var b={},c=0;c<a.length;c++)b[a[c]]=a[c];return b};_.Ak=function(a,b){var c=a.length;if(c!=b.length)return!1;for(var d=0;d<c;++d){var e=a.charCodeAt(d),f=b.charCodeAt(d);65<=e&&90>=e&&(e+=32);65<=f&&90>=f&&(f+=32);if(e!=f)return!1}return!0};Bk=null;
_.Ck=function(a){if(null===Bk){var b=_.F("client/headers/response");b||(b=_.F("googleapis/headers/response"));Bk=_.zk(b)}if(null!=Bk){if(Bk.hasOwnProperty(a))return!0;for(var c in Bk)if(Bk.hasOwnProperty(c)&&_.Ak(c,a))return!0}return!1};
_.Dk=function(a){a=String(a||"").split("\x00").join("");for(var b=[],c=!0,d=0,e=a.length;d<e;++d){var f=a.charAt(d),g=a.charCodeAt(d);if(55296<=g&&56319>=g&&d+1<e){var k=a.charAt(d+1),l=a.charCodeAt(d+1);56320<=l&&57343>=l&&(f+=k,g=65536+(g-55296<<10)+(l-56320),++d)}if(!(0<=g&&1114109>=g)||55296<=g&&57343>=g||64976<=g&&65007>=g||65534==(g&65534))g=65533,f=String.fromCharCode(g);k=!(32<=g&&126>=g)||" "==f||c&&":"==f||"\\"==f;!c||"/"!=f&&"?"!=f||(c=!1);"%"==f&&(d+2>=e?k=!0:(l=16*(0,window.parseInt)(a.charAt(d+
1),16)+(0,window.parseInt)(a.charAt(d+2),16),0<=l&&255>=l?(g=l,f=0==g?"":"%"+(256+l).toString(16).toUpperCase().substr(1),d+=2):k=!0));k&&(f=(0,window.encodeURIComponent)(f),1>=f.length&&(0<=g&&127>=g?f="%"+(256+g).toString(16).toUpperCase().substr(1):(g=65533,f=(0,window.encodeURIComponent)(String.fromCharCode(g)))));b.push(f)}a=b.join("");a=a.split("#")[0];a=a.split("?");b=a[0].split("/");c=[];d=0;for(e=b.length;d<e;++d)f=b[d],g=f.split("%2E").join("."),g=g.split((0,window.encodeURIComponent)("\uff0e")).join("."),





我尝试了什么:



我用google搜索JavaScript转换,但我不明白任何响应。



What I have tried:

I've googled "JavaScript conversion", but the I did not understand any of the reponses.

推荐答案

你所展示的是混淆的javascript,按照定义你将在这个过程中丢失人类可读/可理解的信息。



由于信息丢失,你无法取回原文,如果在功能上等同于更换所有名称/变量的原始文件。
What you have shown is obfuscated javascript, and by definition you will have lost human readable/understandable information in the process.

You can not get back the original since that information is lost, the resulting javascript if functionally equivalent to the original with all the names/variables replaced.


我理解您想要获得的内容,您需要人类可读的JavaScript代码,可以根据需要进行修改和更新。但事情(正如迈赫迪在他的回答中提到的那样;解决方案1)就是你无法将其转换回来。这已被压缩,大部分人类可读的内容已被删除,因为JavaScript解释器并不关心这些内容。



JavaScript解释器唯一关心的是程序的命令。现在,只是为了演示,可以像这样指定进程,人类可读的JavaScript就像:

I understand what you want to get, you want the human-readable JavaScript code, which can be modified and updated as per requirements. But the thing (as Mehdi has mentioned above in his answer; Solution 1) is that you cannot convert it back. This has been compressed and most of the "human-readable" content has been removed, because JavaScript interpreter doesn't care about that stuff.

The only stuff JavaScript interpreter cares about is the command of the program. Now, just for the sake of demonstration, the process can be specified like this, the "human-readable" JavaScript would be like:
var name = 'Afzaal Ahmad Zeeshan';

function sayHello() {
    alert('Hello, ' + name + '!');
}



这将压缩为以下值:


This would be compressed to the following one:

function sayHello(){alert("Hello, "+name+"!")}var name="Afzaal Ahmad Zeeshan";



正如Mehdi所说,他们的功能相似,但区别在于之后,需要通过网络发送较少的kB。我想到的是,这与微积分中的微分过程类似。您可以区分一个函数,但是当您必须将其恢复为原始形式时,您将获得一个常量字段;可以是零,可以是任何其他整数值。同样,这段代码一旦被缩小,就不会被转换回原来的形式; 它写的那个



缩小(编程) - 维基百科,免费的百科全书 [ ^ ]


代码可以部分清除在线JavaScript美化 [< a href =http://jsbeautifier.org/target =_ blanktitle =New Window> ^ ]

结果是

The code can cleaned partially with Online JavaScript beautifier[^]
The result is
/* JS */
gapi.loaded_3(function(_) {
            var window = this;
            var Bk;
            _.zk = function(a) {
                if (!_.Tc(a)) return null;
                for (var b = {}, c = 0; c < a.length; c++) b[a[c]] = a[c];
                return b
            };
            _.Ak = function(a, b) {
                var c = a.length;
                if (c != b.length) return !1;
                for (var d = 0; d < c; ++d) {
                    var e = a.charCodeAt(d),
                        f = b.charCodeAt(d);
                    65 <= e && 90 >= e && (e += 32);
                    65 <= f && 90 >= f && (f += 32);
                    if (e != f) return !1
                }
                return !0
            };
            Bk = null;
            _.Ck = function(a) {
                if (null === Bk) {
                    var b = _.F("client/headers/response");
                    b || (b = _.F("googleapis/headers/response"));
                    Bk = _.zk(b)
                }
                if (null != Bk) {
                    if (Bk.hasOwnProperty(a)) return !0;
                    for (var c in Bk)
                        if (Bk.hasOwnProperty(c) && _.Ak(c, a)) return !0
                }
                return !1
            };
            _.Dk = function(a) {
                    a = String(a || "").split("\x00").join("");
                    for (var b = [], c = !0, d = 0, e = a.length; d < e; ++d) {
                        var f = a.charAt(d),
                            g = a.charCodeAt(d);
                        if (55296 <= g && 56319 >= g && d + 1 < e) {
                            var k = a.charAt(d + 1),
                                l = a.charCodeAt(d + 1);
                            56320 <= l && 57343 >= l && (f += k, g = 65536 + (g - 55296 << 10) + (l - 56320), ++d)
                        }
                        if (!(0 <= g && 1114109 >= g) || 55296 <= g && 57343 >= g || 64976 <= g && 65007 >= g || 65534 == (g & 65534)) g = 65533, f = String.fromCharCode(g);
                        k = !(32 <= g && 126 >= g) || " " == f || c && ":" == f || "\\" == f;
                        !c || "/" != f && "?" != f || (c = !1);
                        "%" == f && (d + 2 >= e ? k = !0 : (l = 16 * (0, window.parseInt)(a.charAt(d +
                            1), 16) + (0, window.parseInt)(a.charAt(d + 2), 16), 0 <= l && 255 >= l ? (g = l, f = 0 == g ? "" : "%" + (256 + l).toString(16).toUpperCase().substr(1), d += 2) : k = !0));
                        k && (f = (0, window.encodeURIComponent)(f), 1 >= f.length && (0 <= g && 127 >= g ? f = "%" + (256 + g).toString(16).toUpperCase().substr(1) : (g = 65533, f = (0, window.encodeURIComponent)(String.fromCharCode(g)))));
                        b.push(f)
                    }
                    a = b.join("");
                    a = a.split("#")[0];
                    a = a.split("?");
                    b = a[0].split("/");
                    c = [];
                    d = 0;
                    for (e = b.length; d < e; ++d) f = b[d], g = f.split("%2E").join("."), g = g.split((0, window.encodeURIComponent)("\uff0e")).join("."),



但这看起来像一个程序没有数据,没有消息。


But this look like a program with no data, no message.


这篇关于如何将javascript转换为原始英文文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆