Greasy Fork

来自缓存

Greasy Fork is available in English.

hao123-每日一新

2021/7/1上午11:02:49 hao123去广告,背景图每日一换

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        hao123-每日一新
// @namespace   Violentmonkey Scripts
// @match       https://www.hao123.com/
// @grant       none
// @version     1.0
// @author      wangJF
// @grant       GM_xmlhttpRequest
// @require     https://cdn.bootcss.com/jquery/3.6.0/jquery.min.js
// @description 2021/7/1上午11:02:49 hao123去广告,背景图每日一换
// ==/UserScript==
jQuery.noConflict();
(function($) {
  //切换背景图片为bing
  'use strict';
    GM_xmlhttpRequest({
        url:"https://cn.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1",
        method :"GET",
        onload:function(xhr){
          var resJson = JSON.parse(xhr.responseText);
          var picUrl ="url("+'https://cn.bing.com' + resJson.images[0].url+")";
          $("#gameyixingTop").css("background-image",picUrl);
        }
    });
  var gameyixingTop = document.getElementById("gameyixingTop");
  gameyixingTop.classList.remove("ewc");
  gameyixingTop.style.backgroundRepeat = "repeat";
  gameyixingTop.style.backgroundPosition = "left 0px";
  gameyixingTop.classList.remove("s-sbg2");
  var headerStyle = document.getElementById('header').style;
  headerStyle.backgroundColor = "rgba(255,255,255,0.5)";
  headerStyle.top = "0px";
  headerStyle.height = "89px";
  headerStyle.border = 0;
  $("#topColumn").css("background-color","rgba(255,255,255,0.5)");
  $(".layout-right").remove();
  $(".layout-left").remove();
  $(".hotsearchCon").remove();
  $(".notice").remove();
  $(".hotword").remove();
  $("#skinbtn").remove();
  $("#shortcut-box").remove();
  $("#footer").remove();
  $("script").remove();
  $("#topbeWrapper").remove();
  var spread = document.querySelector(".spread");
  setTimeout(function(){
    spread.click();
    $(".siye").remove();
  }, 1500);
})(jQuery);