改变鼠标样式

改变页面鼠标样式

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         改变鼠标样式
// @namespace    https://b.cliwen.com
// @version       1.1
// @description    改变页面鼠标样式
// @author       mengle
// @match        *://*/*
// @icon         https://q.qlogo.cn/headimg_dl?dst_uin=1141605242&spec=100
// @license      MIT
// ==/UserScript==

(function () {
    'use strict';
    //定义官网
    const gwurl = "https://b.cliwen.com";
    let csshtml = "body { background-image: url(" + gwurl + "/help/images/bg.png); }  html { cursor: url(" + gwurl + "/help/images/cur/default.cur),auto; }  a:hover { cursor: url(" + gwurl + "/help/images/cur/link.cur),auto; } ";
    let cssFix = document.createElement('style');
    cssFix.innerHTML = csshtml;
    document.getElementsByTagName('head')[0].appendChild(cssFix);
})();