Applize Weibo Header

Add transluscent effect to Weibo's title bar (WB_global_nav).

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Applize Weibo Header
// @namespace    http://tampermonkey.net/
// @version      0.1.1
// @description  Add transluscent effect to Weibo's title bar (WB_global_nav).
// @author       duoduoeeee
// @match        https://*.weibo.com
// @match        https://weibo.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    var titleBar = document.getElementsByClassName("WB_global_nav_alpha")[0];
    var searchBar = document.getElemensByClassName("gn_search_v2")[0];
    titleBar.setAttribute("style", "-webkit-backdrop-filter: saturate(180%) blur(15px);backdrop-filter: saturate(180%) blur(20px);background-color: rgba(255, 255, 255, 0.7);");
    searchBar.setAttribute("style", "-webkit-backdrop-filter: saturate(180%) blur(15px);backdrop-filter: saturate(180%) blur(20px);background-color: rgba(255, 255, 255, 0.7);");
    console.log("Appled!!");
})();