翱翔门户主页半透明

目前只实现了部分元素的rgba

目前為 2022-12-08 提交的版本,檢視 最新版本

// ==UserScript==
// @name         翱翔门户主页半透明
// @namespace    https://github.com/dadaewqq/fun
// @version      1.2
// @description  目前只实现了部分元素的rgba
// @author       dadaewqq
// @match        https://ecampus.nwpu.edu.cn/main.html
// @icon         https://portal-minio.nwpu.edu.cn/cms/60_60-1612168704151-1620739414523.png
// @grant        none
// @license      MIT
// ==/UserScript==

(function () {
  "use strict";

  function changesommoncolor() {
    document.querySelector(".footer").style.display = "none";
    document.querySelector(".nav-background").style.backgroundColor = "rgba(0,0,0,0.1)";
    document.querySelector(".nav-background-stack").style.backgroundColor = "rgba(0,0,0,0.1)";
  }

  function changemaincolor() {
    document.querySelector(".services.wrapper_radius").style.backgroundColor = "rgba(255,2555,255,0.25)";
  }

  function changesoncolor() {
    document.querySelector(".news-new-detail-left").style.backgroundColor = "rgba(255,255,255,0.4)";
    document.querySelector(".PopularNews").style.backgroundColor = "rgba(255,255,255,0.4)";
  }

  function clear1() {
    console.log(111);
    if (document.querySelector(".services.wrapper_radius") != undefined) {
      changesommoncolor();
      changemaincolor();
      clearInterval(id1);
      clearInterval(id2);
    }
  }

  function clear2() {
    console.log(222);
    if (document.querySelector(".news-new-detail-left") != undefined) {
      changesommoncolor();
      changesoncolor();
      clearInterval(id1);
      clearInterval(id2);
    }
  }

  var id1 = setInterval(clear1, 250);
  var id2 = setInterval(clear2, 250);
})()

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址