Skip to content

Instantly share code, notes, and snippets.

@EncodeTheCode
Created November 7, 2016 18:56
Show Gist options
  • Save EncodeTheCode/9cce4eddb84b4abb044a5180058fb21a to your computer and use it in GitHub Desktop.
Save EncodeTheCode/9cce4eddb84b4abb044a5180058fb21a to your computer and use it in GitHub Desktop.
function g_getGets() {
if (g_getGets.C != null) {
return g_getGets.C
}
var e = {};
if (location.search) {
var f = decodeURIComponent(location.search.substr(1)).split("&");
for (var c = 0, a = f.length; c < a; ++c) {
var g = f[c].indexOf("="), b, d;
if (g != -1) {
b = f[c].substr(0, g);
d = f[c].substr(g + 1)
} else {
b = f[c];
d = ""
}
e[b] = d
}
}
g_getGets.C = e;
return e
}
g_getGets({}).toSource()
"({item:"32050"})"
String(JSON.stringify(g_getGets({}))).slice(9).slice(0,-2);
"32050"
String(JSON.stringify(g_getGets())).slice(9).slice(0,-2);
"32050"
parseInt(String(JSON.stringify(g_getGets({}))).slice(9).slice(0,-2));
32050
parseInt(String(JSON.stringify(g_getGets())).slice(9).slice(0,-2));
32050
String(slicer(JSON.stringify(g_getGets()),9,-1,0,-1));
"32050"
parseInt(slicer(JSON.stringify(g_getGets()),9,-1,0,-1));
32050
String(slicer(JSON.stringify(g_getGets()),9,-1,0,5));
"32050"
parseInt(slicer(JSON.stringify(g_getGets()),9,-1,0,5));
32050
function C_DT(s,d,l,a,r,b){function slicer(s,l,a,r,b){return s.slice(l,a).slice(r,b);}var c=slicer(JSON.stringify(s),l,a,r,b);if(d==0){return String(c);}else if(d==1){return parseInt(c);}}
btoa("function C_DT(s,d,l,a,r,b){function slicer(s,l,a,r,b){return s.slice(l,a).slice(r,b);}var c=slicer(JSON.stringify(s),l,a,r,b);if(d==0){return String(c);}else if(d==1){return parseInt(c);}}");
ZnVuY3Rpb24gQ19EVChzLGQsbCxhLHIsYil7ZnVuY3Rpb24gc2xpY2VyKHMsbCxhLHIsYil7cmV0dXJuIHMuc2xpY2UobCxhKS5zbGljZShyLGIpO312YXIgYz1zbGljZXIoSlNPTi5zdHJpbmdpZnkocyksbCxhLHIsYik7aWYoZD09MCl7cmV0dXJuIFN0cmluZyhjKTt9ZWxzZSBpZihkPT0xKXtyZXR1cm4gcGFyc2VJbnQoYyk7fX0=
atob("ZnVuY3Rpb24gQ19EVChzLGQsbCxhLHIsYil7ZnVuY3Rpb24gc2xpY2VyKHMsbCxhLHIsYil7cmV0dXJuIHMuc2xpY2UobCxhKS5zbGljZShyLGIpO312YXIgYz1zbGljZXIoSlNPTi5zdHJpbmdpZnkocyksbCxhLHIsYik7aWYoZD09MCl7cmV0dXJuIFN0cmluZyhjKTt9ZWxzZSBpZihkPT0xKXtyZXR1cm4gcGFyc2VJbnQoYyk7fX0=")
"function C_DT(s,d,l,a,r,b){function slicer(s,l,a,r,b){return s.slice(l,a).slice(r,b);}var c=slicer(JSON.stringify(s),l,a,r,b);if(d==0){return String(c);}else if(d==1){return parseInt(c);}}"
C_DT(g_getGets(),0,9,-1,0,-1);
"32050"
C_DT(g_getGets(),1,9,-1,0,-1);
32050
function Model3DLink(){return "www.wowhead.com/item="+C_DT(g_getGets(),1,9,-1,0,-1)+"/#modelviewer:1+1";}
ModelViewer.show({type:3,typeId:32050,displayId:45956,slot:20});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment