Skip to content

Instantly share code, notes, and snippets.

@noman798
Created April 14, 2020 03:49
Show Gist options
  • Save noman798/5462846a88b13b32dd452bc28fda2f61 to your computer and use it in GitHub Desktop.
Save noman798/5462846a88b13b32dd452bc28fda2f61 to your computer and use it in GitHub Desktop.
>>> https://www.zhipin.com/job_detail/613b3a38df36243b0HB72967EFA~.html
>>> https://www.zhipin.com/job_detail/b3db551a377dd8530XV62di_EVM~.html
>>> https://www.zhipin.com/job_detail/8ca7cff479a355fd0XF52NS9GVE~.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<title>请稍后</title>
<style>
html,
body {
margin: 0;
width: 100%;
height: 100%;
}
@keyframes bossLoading {
0% {
transform: translate3d(0, 0, 0);
}
50% {
transform: translate3d(0, -10px, 0);
}
}
.data-tips {
text-align: center;
height: 100%;
position: relative;
background: #fff;
top: 50%;
margin-top: -37px;
}
.data-tips .boss-loading {
width: 100%;
}
.data-tips .boss-loading p {
margin-top: 10px;
color: #9fa3b0;
}
.boss-loading .component-b,
.boss-loading .component-s1,
.boss-loading .component-o,
.boss-loading .component-s2 {
display: inline-block;
width: 40px;
height: 42px;
line-height: 42px;
font-family: Helvetica Neue,Helvetica,Arial,Hiragino Sans GB,Hiragino Sans GB W3,Microsoft YaHei UI,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif;
font-weight: bolder;
font-size: 40px;
color: #eceef2;
vertical-align: top;
-webkit-animation-fill-mode: both;
-webkit-animation: bossLoading 0.6s infinite linear alternate;
-moz-animation: bossLoading 0.6s infinite linear alternate;
animation: bossLoading 0.6s infinite linear alternate;
}
.boss-loading .component-o {
-webkit-animation-delay: 0.1s;
-moz-animation-delay: 0.1s;
animation-delay: 0.1s;
}
.boss-loading .component-s1 {
-webkit-animation-delay: 0.2s;
-moz-animation-delay: 0.2s;
animation-delay: 0.2s;
}
.boss-loading .component-s2 {
-webkit-animation-delay: 0.3s;
-moz-animation-delay: 0.3s;
animation-delay: 0.3s;
}
</style>
</head>
<body>
<div class="data-tips">
<div class="tip-inner">
<div class="boss-loading">
<span class="component-b">B</span><span class="component-o">O</span><span class="component-s1">S</span><span class="component-s2">S</span>
<p class="gray">正在加载中...</p>
</div>
</div>
</div>
<script>
(function() {
var script = document.createElement("script");
script.src = "https://static.zhipin.com/library/js/analytics/ka.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(script, s);
})();
(function() {
function init(frame) {
var COOKIE_DOMAIN = (function() {
var hostName = location.hostname;
if (hostName === "localhost" || /^(\d+\.){3}\d+$/.test(hostName)) {
return hostName;
}
return (
"." +
hostName
.split(".")
.slice(-2)
.join(".")
);
})();
var seriesLoadScripts = function(scripts, callback) {
if (typeof scripts != "object") var scripts = [scripts];
var s = new Array(),
last = scripts.length - 1,
recursiveLoad = function(i) {
s[i] = document.createElement("script");
s[i].setAttribute("type", "text/javascript");
s[i].setAttribute("charset", "UTF-8");
s[i].onload = s[i].onreadystatechange = function() {
if (!/*@cc_on!@*/ 0 || this.readyState == "loaded" || this.readyState == "complete") {
this.onload = this.onreadystatechange = null;
this.parentNode.removeChild(this);
if (i != last) recursiveLoad(i + 1);
else if (typeof callback == "function") callback();
}
};
s[i].setAttribute("src", scripts[i]);
if (frame.tagName != "IFRAME") {
frame.appendChild(s[i]);
} else if (frame.contentDocument) {
if (frame.contentDocument.body) {
frame.contentDocument.body.appendChild(s[i]);
} else {
frame.contentDocument.documentElement.appendChild(s[i]);
}
} else if (frame.document) {
if (frame.document.body) {
frame.document.body.appendChild(s[i]);
} else {
frame.document.documentElement.appendChild(s[i]);
}
}
};
recursiveLoad(0);
};
var getQueryString = function(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
};
var Cookie = {
get: function(name) {
var arr,
reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
if ((arr = document.cookie.match(reg))) {
return unescape(arr[2]);
} else {
return null;
}
},
set: function(name, value, time, domain, path) {
var str = name + "=" + encodeURIComponent(value);
if (time) {
var date = new Date(time).toGMTString();
str += ";expires=" + date;
}
str = domain ? str + ";domain=" + domain : str;
str = path ? str + ";path=" + path : str;
document.cookie = str;
}
};
var jumpReplace = function(url) {
window.location.replace(url);
}
var url = window.location.href;
var seed = decodeURIComponent(getQueryString("seed")) || "";
var ts = getQueryString("ts");
var fileName = getQueryString("name");
var callbackUrl = decodeURIComponent(getQueryString("callbackUrl"));
var srcReferer = decodeURIComponent(getQueryString("srcReferer")||'');
if (seed && ts && fileName) {
seriesLoadScripts("security-js/" + fileName + ".js?_t=" + new Date().getTime(), function() {
var expiredate = new Date().getTime() + 32 * 60 * 60 * 1000 * 2;
var code = "";
var nativeParams = {};
var ABC = window.ABC || frame.contentWindow.ABC;
try {
code = new ABC().z(seed, parseInt(ts)+(480+new Date().getTimezoneOffset())*60*1000);
} catch (e) {}
if (code && callbackUrl) {
Cookie.set("__zp_stoken__", code, expiredate, COOKIE_DOMAIN, "/");
// 据说iOS 客户端存在有时写cookie失败的情况,因此调用客户端提供的方法,交由客户端额外写一次cookie
if (typeof window.wst != "undefined" && typeof wst.postMessage == "function") {
nativeParams = {
name: "setWKCookie",
params: {
url: COOKIE_DOMAIN,
name: "__zp_stoken__",
value: encodeURIComponent(code),
expiredate: expiredate,
path: "/"
}
};
window.wst.postMessage(JSON.stringify(nativeParams));
}
jumpReplace(callbackUrl);
} else {
window.history.back();
}
});
} else {
if (callbackUrl) {
jumpReplace(callbackUrl);
} else {
window.history.back();
}
}
}
var ie = !!(window.attachEvent && !window.opera);
var wk = /webkit\/(\d+)/i.test(navigator.userAgent) && RegExp.$1 < 525;
var fn = [];
var run = function() {
for (var i = 0; i < fn.length; i++) fn[i]();
};
function ready(f) {
if (!ie && !wk && document.addEventListener) return document.addEventListener("DOMContentLoaded", f, false);
if (fn.push(f) > 1) return;
if (ie)
(function() {
try {
document.documentElement.doScroll("left");
run();
} catch (err) {
setTimeout(arguments.callee, 0);
}
})();
else if (wk)
var t = setInterval(function() {
if (/^(loaded|complete)$/.test(document.readyState)) clearInterval(t), run();
}, 0);
}
ready(function() {
var na = window.navigator.userAgent.toLowerCase();
if (na.match(/micromessenger/i) == 'micromessenger' || na.match(/wkwebview/i) == 'wkwebview') {
init(document.getElementsByTagName("head").item(0));
return;
}
var frame = document.createElement("iframe");
// frame.style.display = "none";
frame.style.height = 0;
frame.style.width = 0;
frame.style.margin = 0;
frame.style.padding = 0;
frame.style.border = "0 none";
frame.name = "zhipinFrame";
frame.src = "about:blank";
if (frame.attachEvent) {
frame.attachEvent("onload", function() {
init(frame);
});
} else {
frame.onload = function() {
init(frame);
};
}
(document.body || document.documentElement).appendChild(frame);
});
})();
</script>
</body>
</html>
❎ 处理失败https://www.zhipin.com/job_detail/613b3a38df36243b0HB72967EFA~.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<title>请稍后</title>
<style>
html,
body {
margin: 0;
width: 100%;
height: 100%;
}
@keyframes bossLoading {
0% {
transform: translate3d(0, 0, 0);
}
50% {
transform: translate3d(0, -10px, 0);
}
}
.data-tips {
text-align: center;
height: 100%;
position: relative;
background: #fff;
top: 50%;
margin-top: -37px;
}
.data-tips .boss-loading {
width: 100%;
}
.data-tips .boss-loading p {
margin-top: 10px;
color: #9fa3b0;
}
.boss-loading .component-b,
.boss-loading .component-s1,
.boss-loading .component-o,
.boss-loading .component-s2 {
display: inline-block;
width: 40px;
height: 42px;
line-height: 42px;
font-family: Helvetica Neue,Helvetica,Arial,Hiragino Sans GB,Hiragino Sans GB W3,Microsoft YaHei UI,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif;
font-weight: bolder;
font-size: 40px;
color: #eceef2;
vertical-align: top;
-webkit-animation-fill-mode: both;
-webkit-animation: bossLoading 0.6s infinite linear alternate;
-moz-animation: bossLoading 0.6s infinite linear alternate;
animation: bossLoading 0.6s infinite linear alternate;
}
.boss-loading .component-o {
-webkit-animation-delay: 0.1s;
-moz-animation-delay: 0.1s;
animation-delay: 0.1s;
}
.boss-loading .component-s1 {
-webkit-animation-delay: 0.2s;
-moz-animation-delay: 0.2s;
animation-delay: 0.2s;
}
.boss-loading .component-s2 {
-webkit-animation-delay: 0.3s;
-moz-animation-delay: 0.3s;
animation-delay: 0.3s;
}
</style>
</head>
<body>
<div class="data-tips">
<div class="tip-inner">
<div class="boss-loading">
<span class="component-b">B</span><span class="component-o">O</span><span class="component-s1">S</span><span class="component-s2">S</span>
<p class="gray">正在加载中...</p>
</div>
</div>
</div>
<script>
(function() {
var script = document.createElement("script");
script.src = "https://static.zhipin.com/library/js/analytics/ka.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(script, s);
})();
(function() {
function init(frame) {
var COOKIE_DOMAIN = (function() {
var hostName = location.hostname;
if (hostName === "localhost" || /^(\d+\.){3}\d+$/.test(hostName)) {
return hostName;
}
return (
"." +
hostName
.split(".")
.slice(-2)
.join(".")
);
})();
var seriesLoadScripts = function(scripts, callback) {
if (typeof scripts != "object") var scripts = [scripts];
var s = new Array(),
last = scripts.length - 1,
recursiveLoad = function(i) {
s[i] = document.createElement("script");
s[i].setAttribute("type", "text/javascript");
s[i].setAttribute("charset", "UTF-8");
s[i].onload = s[i].onreadystatechange = function() {
if (!/*@cc_on!@*/ 0 || this.readyState == "loaded" || this.readyState == "complete") {
this.onload = this.onreadystatechange = null;
this.parentNode.removeChild(this);
if (i != last) recursiveLoad(i + 1);
else if (typeof callback == "function") callback();
}
};
s[i].setAttribute("src", scripts[i]);
if (frame.tagName != "IFRAME") {
frame.appendChild(s[i]);
} else if (frame.contentDocument) {
if (frame.contentDocument.body) {
frame.contentDocument.body.appendChild(s[i]);
} else {
frame.contentDocument.documentElement.appendChild(s[i]);
}
} else if (frame.document) {
if (frame.document.body) {
frame.document.body.appendChild(s[i]);
} else {
frame.document.documentElement.appendChild(s[i]);
}
}
};
recursiveLoad(0);
};
var getQueryString = function(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
};
var Cookie = {
get: function(name) {
var arr,
reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
if ((arr = document.cookie.match(reg))) {
return unescape(arr[2]);
} else {
return null;
}
},
set: function(name, value, time, domain, path) {
var str = name + "=" + encodeURIComponent(value);
if (time) {
var date = new Date(time).toGMTString();
str += ";expires=" + date;
}
str = domain ? str + ";domain=" + domain : str;
str = path ? str + ";path=" + path : str;
document.cookie = str;
}
};
var jumpReplace = function(url) {
window.location.replace(url);
}
var url = window.location.href;
var seed = decodeURIComponent(getQueryString("seed")) || "";
var ts = getQueryString("ts");
var fileName = getQueryString("name");
var callbackUrl = decodeURIComponent(getQueryString("callbackUrl"));
var srcReferer = decodeURIComponent(getQueryString("srcReferer")||'');
if (seed && ts && fileName) {
seriesLoadScripts("security-js/" + fileName + ".js?_t=" + new Date().getTime(), function() {
var expiredate = new Date().getTime() + 32 * 60 * 60 * 1000 * 2;
var code = "";
var nativeParams = {};
var ABC = window.ABC || frame.contentWindow.ABC;
try {
code = new ABC().z(seed, parseInt(ts)+(480+new Date().getTimezoneOffset())*60*1000);
} catch (e) {}
if (code && callbackUrl) {
Cookie.set("__zp_stoken__", code, expiredate, COOKIE_DOMAIN, "/");
// 据说iOS 客户端存在有时写cookie失败的情况,因此调用客户端提供的方法,交由客户端额外写一次cookie
if (typeof window.wst != "undefined" && typeof wst.postMessage == "function") {
nativeParams = {
name: "setWKCookie",
params: {
url: COOKIE_DOMAIN,
name: "__zp_stoken__",
value: encodeURIComponent(code),
expiredate: expiredate,
path: "/"
}
};
window.wst.postMessage(JSON.stringify(nativeParams));
}
jumpReplace(callbackUrl);
} else {
window.history.back();
}
});
} else {
if (callbackUrl) {
jumpReplace(callbackUrl);
} else {
window.history.back();
}
}
}
var ie = !!(window.attachEvent && !window.opera);
var wk = /webkit\/(\d+)/i.test(navigator.userAgent) && RegExp.$1 < 525;
var fn = [];
var run = function() {
for (var i = 0; i < fn.length; i++) fn[i]();
};
function ready(f) {
if (!ie && !wk && document.addEventListener) return document.addEventListener("DOMContentLoaded", f, false);
if (fn.push(f) > 1) return;
if (ie)
(function() {
try {
document.documentElement.doScroll("left");
run();
} catch (err) {
setTimeout(arguments.callee, 0);
}
})();
else if (wk)
var t = setInterval(function() {
if (/^(loaded|complete)$/.test(document.readyState)) clearInterval(t), run();
}, 0);
}
ready(function() {
var na = window.navigator.userAgent.toLowerCase();
if (na.match(/micromessenger/i) == 'micromessenger' || na.match(/wkwebview/i) == 'wkwebview') {
init(document.getElementsByTagName("head").item(0));
return;
}
var frame = document.createElement("iframe");
// frame.style.display = "none";
frame.style.height = 0;
frame.style.width = 0;
frame.style.margin = 0;
frame.style.padding = 0;
frame.style.border = "0 none";
frame.name = "zhipinFrame";
frame.src = "about:blank";
if (frame.attachEvent) {
frame.attachEvent("onload", function() {
init(frame);
});
} else {
frame.onload = function() {
init(frame);
};
}
(document.body || document.documentElement).appendChild(frame);
});
})();
</script>
</body>
</html>
❎ 处理失败https://www.zhipin.com/job_detail/b3db551a377dd8530XV62di_EVM~.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment