NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @license MIT
// @name Baidu Transformer
// @version 0.1
// @description 载入百度时添加一点特效!
// @author deliciousgarfield
// @match https://www.baidu.com/
// @grant GM_getResourceText
// @resource jq https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
// Your code here...
var style = document.createElement("style");
style.innerHTML = "body {display:none}";
style.type = "text/css";
document.head.appendChild(style);
var jq = document.createElement("script");
jq.innerText = GM_getResourceText("jq");
jq.type = 'text/javascript';
document.head.appendChild(jq);
$(document).ready(function() {
$("#lg").hide();
$("#s_kw_wrap").hide();
$("#s_btn_wr").hide();
window.setTimeout(function() {document.head.removeChild(style);}, 250);
$("head").append('<link href="https://cdn.bootcss.com/animate.css/3.5.2/animate.min.css" rel="stylesheet">');
window.setTimeout(function () {$("#lg").show();$("#lg").removeAttr("style");$("#lg").addClass('animated bounceInUp');}, 500);
window.setTimeout(function() {$("#s_kw_wrap").show();$("#s_kw_wrap").addClass('animated bounceInLeft');}, 1000);
window.setTimeout(function() {$("#s_btn_wr").show();$("#s_btn_wr").addClass('animated bounceInRight');}, 1500);
});
})();