// ==UserScript==
// @name 多吉搜索美化
// @namespace http://nreg.com/
// @version 0.4
// @description try to take over the world!
// @author nreg
// @match http://*/*
// @grant none
// @include https://www.dogedoge.com/*
// @require https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js
// @downloadURL none
// ==/UserScript==
(function() {
'use strict';
//获取搜索关键字
var keyword=$("#search_form_input").val();
//字体修改 font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
document.body.style.fontFamily = "Helvetica Neue","Microsoft YaHei","Helvetica","Arial","sans-serif !important";
$("input#search_form_input.search__input--adv.js-search-input").css("fontFamily","Helvetica Neue","Microsoft YaHei","Helvetica","Arial","sans-serif !important");
$("a.result__a").css("font-size","18px");
//搜索面板背景色由脏白色改为纯白色
$("div#header_wrapper.header-wrap.b_class").css("background-color","#FFFFFF");
$("div#header_wrapper.header-wrap.b_class").css("height","auto");
//搜索菜单+搜索框距离底部与顶部距离
$("div#header.header.cw").css("padding","20px 0 5px");
$("div#header.header.cw").css("height","auto");
//搜索菜单距搜索框距离
$("div.zcm").css("margin-top","15px");
//搜索菜单 高度
$("#duckbar").css("height","auto");
//搜索结果 距离顶部面板距离
$("div#web_content_wrapper.content-wrap").css("padding-top","5px");
//右下角 百度搜索 改为秘迹搜索
$("a.feedback-btn__send.js-feedback-start").text("秘迹");
$("a.feedback-btn__send.js-feedback-start").attr("href","https://mijisou.com/?q="+keyword);
//上、下一页 改为脚图标
$("#rld-2").css("width","30px");
$("#rld-2").css("height","33.53px");
$("div#rld-1.result.result--more").css("width","30px");
$("div#rld-1.result.result--more").css("height","33.53px");
$("a.result--more__btn.btn.btn--full").text("");
$("a.result--more__btn.btn.btn--full").css("background-color","#FFFFFF");
$("a.result--more__btn.btn.btn--full").append("");
$("a.result--more__btn.btn.btn--full img").css("width","30px");
$("a.result--more__btn.btn.btn--full").css("width","30px");
$("a.result--more__btn.btn.btn--full").css("height","33.53px");
//丰富多吉未实现的功能
var navigation = function(){
//清空其下所有子元素
$("#duckbar_static").innerHtml="";
$("#duckbar_static").empty();
$("#duckbar").css('width','auto');
$("#duckbar_static").css('width','auto');
$(".zcm__item a").css('width','auto');
$("div.zcm").css('width','auto');
$("li.zcm__item").css('width','auto');
$("a.zcm__link.js-zci-link.js-zci-link--github-hidden").css('width','auto');
$("a.zcm__link.js-zci-link.js-zci-link--web is-active").css('width','auto');
//网页:将web改为网页
$("#duckbar_static").append("