Baidu首页增加Bing壁纸

Baidu首页增加Bing壁纸(需要关闭百度自带壁纸)

// ==UserScript==
// @name         Baidu首页增加Bing壁纸
// @namespace    http://zhangbohun.github.io/2015/05/20/Bing%E5%A3%81%E7%BA%B8%E4%B8%8B%E8%BD%BD%E5%99%A8/
// @version      0.2
// @description  Baidu首页增加Bing壁纸(需要关闭百度自带壁纸)
// @author       zhangbohun
// @match   	 *://www.baidu.com/
// @match   	 *://www.baidu.com/home*
// @match   	 *://www.baidu.com/?tn=*
// @match   	 *://www.baidu.com/index.php*
// @grant        GM_xmlhttpRequest
// @run-at 	     document-end
// ==/UserScript==
'use strict';

function setbackground(url, theme) {
    //具体设置背景图片的方法
    function setBackgroundIMG(selection, url) {
        //如果自定义了背景,就有background,所以用background
        document.querySelector(selection).style.cssText = 'background:url(' + url + ') no-repeat !important; background-size:cover !important';
    }

    //判断是否登陆了,登录背景设在.s-skin-container
    if (document.querySelector('.user-name') !== null) {
        //需要关闭默认的换肤
        setBackgroundIMG('.s-skin-container', url);
        //首页web2.0半透明
        head.className = 's-skin-hasbg white-logo s-opacity-' + 50;
        var link = document.createElement('link');
        link.rel = 'stylesheet';
        link.href = 'https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superplus/css/skin_opacity' + 50 + '.css';//导航框,透明度30
        document.querySelector('head').appendChild(link);
        //显示图片说明
        document.querySelector('.mine-icon').style.display = 'none';
        document.querySelector('.mine-text').innerHTML = '   今日壁纸主题:';
        document.querySelector('.s-bg-space.s-opacity-white-background').innerHTML = '<b>&nbsp;&nbsp;' + theme + '</b>';
        //隐藏无用信息
        document.querySelector('#s_lm_wrap').style.display = 'none';
        document.querySelector('#bottom_container').style.display = 'none';
        document.querySelector('.s-more-bar').style.display = 'none';
    }
    else {
        //未登录,背景设在#body
        setBackgroundIMG('body', url);
        //隐藏无用信息
        //document.querySelector('#u1').style.display='none';//上面的横条不隐藏,不然没有登录的地方了。。
        document.querySelector('#ftCon').style.display = 'none';
    }
}

//主函数,程序入口
window.onload = function () {
    if (document.querySelector('#lg img').attributes['src'].value == 'https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/bd_logo1_31bdc765.png'
        || document.querySelector('#lg img').attributes['src'].value == 'http://ss.bdimg.com/static/superman/img/logo/bd_logo1_31bdc765.png'
        || document.querySelector('#lg img').attributes['src'].value == '//www.baidu.com/img/pcindex_small.png?where=super'
        || document.querySelector('#lg img').attributes['src'].value == '//www.baidu.com/img/bd_logo1.png?where=super'
        || document.querySelector('#lg img').attributes['src'].value == '//www.baidu.com/img/bd_logo1.png')//如果是普通logo就换成白色透明版,节日特殊logo不换了吧
    {
        //设置白色logo,https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superplus/img/logo_white_ee663702.png
        document.querySelector('#lg img').attributes['src'].value = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAAECCAYAAAC1yg4KAAA3JklEQVR42u2dB5wU5f3/5fpxvQJBbBiVqKjRqPz+aog1wdiDEo0KGgmxxEZiieWCJQqKJmoUaYIGFZIoJhEUEFCRIh3uaFe5zt3e7e3ubb/b3/fZ3zP8x2XLzOy03fvM6/V+cdztzs7MPvN83/N92lGBQOAoAAAAAAAtwUUAAAAAAIQDAAAAABAOAAAAAAAIBwAAAAAgHAAAAACAcAAAAAAAQDgAAAAAAOEAAAAAAIBwAAAAAADCAQAAAAAIBwAAAAAAhAMAAAAAEA4AAAAAQDgAAAAAACAcAAAAAIBwAAAAAABAOAAAAAAA4QAAAAAAhAMAAAAAAMIBAAAAAAgHAAAAACAcAAAAAAAQDgAAAABAOAAAAAAAIBwAAAAAgHAAAAAAAMIBAAAAAADhAAAAAACEAwAAAAAQDgAAAAAACAcAAAAAIBwAAAAAABAOAAAAAEA4AAAAAADhAAAAAACAcAAAAAAAwgEAAAAACAcAAAAAAIQDAAAAABAOAAAAAAAIBwAAAAAgHAAAAACAcAAAAAAAQDgAAAAAAOEAAAAAAIQDAAAAAADCAQAAAAAIBwAAAA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MJzYBkhYiUuG9IKDkRsjRpSpYFV1E40kVyXpDE5IsedDKlynjIfZgTow4Rsg8ZoronP456tCDMMStd1VV8HoNDhFnpseVgWGzyCof46V389GhmMqOkvwcZ9NRtNg4/sUTpmyLnO8/Uo/1/oBKjKUbcNyQcumRpFNwjZr4/1L7X0uTeG6K6N13G/sWvD83ySSFUSuOuM8M8jMVbt2dg4q/kFY6jIlR0ZsWsT6lmZJDE4Bb3PoHmIhKVBBCoZEbxdyDjGkXrH6SkDlW93Kh4bCmY2jy5hWNALZQDAAAgseIThAPCAQAAAEA4IBwQDgAAABAOCAeEAwAAAIBwDGThAAAAAMwChAPCAQAAAEA4IBwQDgAAABAOCAeEAwAAAIBwQDgAAAAACAeEAwAAAAAQDgAAAAAACAcAAAAAIBwAAAAAgHAAAAAAAEA4AAAAAADhAAAAAACEAxcBAAAAABAOAAAAAEA4AAAAAAAgHAAAAACAcAAAAAAAwgEAAAAAAOEAAAAAAIQDAAAAABAOXAQAAAAAQDgAAAAAAOEAAAAAAIBwAAAAAADCAQAAAAAIBwAAAAAAhAMAAAAAEA4AAAAAAAgHAAAAACAcAAAAAIBwAAAAAABAOAAAAAAA4QAAAAAAhAMAAAAAAMIBAAAAAAgHAAAAAACEAwAAAAAQDgAAAABAOAAAAAAAIBwAAAAAgHAAAAAAAMIBAAAAAADhAAAAAACEAwAAAAAAwgEAAAAACAcAAAAAIBwAAAAAABAOAAAAAEA4AAAAAADhAAAAAACAcAAAAAAAwgEAAAAAAOEAAAAAAIQDAAAAABAOAAAAAAAIBwAAAAAgHAAAAACAcAAAAAAAqMb/Auups+DbJ2IzAAAAAElFTkSuQmCC';
    }
    if (localStorage.date == new Date().getDate())//判断是否有缓存图片地址
    {
        setbackground(localStorage.imgUrl, localStorage.theme);
    }
    else {
        GM_xmlhttpRequest({
            method: 'GET',
            url: 'https://cn.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=zh-cn',
            onload: function (response) {
                var data = JSON.parse(response.responseText);
                var imgUrl = 'https://www.bing.com' + data.images[0].url;//图片完整路径
                var theme = data.images[0].copyright;
                setbackground(imgUrl, theme);
                GM_xmlhttpRequest({
                    method: 'GET',
                    url: imgUrl,
                    responseType: "blob",
                    onload: function (response) {
                        var myBlob = response.response;
                        var myFReader = new FileReader();
                        myFReader.readAsDataURL(myBlob);
                        myFReader.onload = function (myFREvent) {
                            var Base64DataURLString = myFREvent.target.result;
                            //console.log(Base64DataURLString);
                            localStorage.imgUrl = Base64DataURLString;//缓存图片Base64 DataURL地址,直接缓存图片!
                            localStorage.date = new Date().getDate();
                            localStorage.theme = theme;
                        };
                    }
                });
            }
        });
    }

    /*增加日历显示
    代码来自https://greasyfork.org/zh-CN/scripts/25202-%E7%99%BEbing%E5%9B%BE,感谢hoothin
    homepage: http://www.hoothin.com
    email: rixixi@gmail.com
    License of my scripts which signed "N/A" are all MIT,copy after include information above before use please
     */
    var icons = document.querySelector("#s_icons");
    var riliLink = document.createElement("a"), date = new Date();
    var iframe = document.createElement("iframe");
    iframe.src = "/s?wd=%E6%97%A5%E5%8E%86";
    iframe.setAttribute("scrolling", "no");
    iframe.style.display = "none";
    iframe.style.top = "30px";
    iframe.style.left = "0px";
    iframe.style.position = "absolute";
    iframe.style.zIndex = "999";
    var sUpfuncMenus = document.querySelector("#s_upfunc_menus");
    if (!sUpfuncMenus) {
        sUpfuncMenus = document.querySelector(".head_wrapper");
        iframe.style.top = "50px";
        iframe.style.left = "";
        iframe.style.right = "0px";
    }
    if (sUpfuncMenus) {
        sUpfuncMenus.appendChild(iframe);
    }
    var dateDay = date.getDate(), dateMonth = date.getMonth() + 1;
    if (dateDay < 10) dateDay = "0" + dateDay;
    if (dateMonth < 10) dateMonth = "0" + dateMonth;
    var week = ["\u65e5", "\u4e00", "\u4e8c", "\u4e09", "\u56db", "\u4e94", "\u516d"];
    riliLink.innerHTML = "<span class='title' style='text-decoration:overline;cursor:pointer'>" + date.getFullYear() + "-" + dateMonth + "-" + dateDay + " " + "\u661f\u671f" + week[date.getDay()] + "</span>";
    if (icons) icons.appendChild(riliLink);
    iframe.onload = function () {
        var contentHead = this.contentWindow.document.querySelector("#head");
        if (contentHead && contentHead.parentNode) contentHead.parentNode.removeChild(contentHead);
        var $ = unsafeWindow.$;
        var iframeDoc = $(iframe.contentDocument);
        var rili = $("div.op-calendar-new", iframe.contentDocument);
        rili.after("<br/><br/>");
        $("#head,.head_nums_cont_outer", iframe.contentDocument).hide();
        iframe.setAttribute("scrolling", "no");
        var today = $(".op-calendar-new-table-border,.op-calendar-new-table-today", iframe.contentDocument);
        var t;
        riliLink.innerHTML = "<span class='title' style='text-decoration:overline;cursor:pointer'>" + $(".op-calendar-new-right-date", iframe.contentDocument).html() + "</span>";
        riliLink.onmouseover = function () {
            t = setTimeout(function () {
                $(iframe).show(200);
                var top = rili.offset().top;
                var left = rili.offset().left;
                if (top === 0) top = 138;
                iframeDoc.scrollTop(top);
                if (left === 0) left = 121;
                iframeDoc.scrollLeft(left);
                var width = rili.width();
                var height = rili.height();
                iframe.width = width === 0 ? 538 : width;
                iframe.height = height === 0 ? 366 : height;
            }, 100);
        };
        riliLink.onmouseout = function () {
            clearTimeout(t);
        };
        iframe.onmouseout = function () {
            $(iframe).hide(100);
        };
        if (today[0].classList.contains("op-calendar-new-table-festival")) {
            var title = today[0].title || $(".op-calendar-new-table-almanac", today).text();
            riliLink.innerHTML += title ? " <font color='#FFFF66' style='background-color:#e02d2d;font-weight:bold'>(" + title + ")</font>" : "";
            riliLink.title = title;
        }
    };
};