注入vue到智慧基建

进入系统后,三秒后注入devtools到vue

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         注入vue到智慧基建
// @namespace    http://tampermonkey.net/
// @version      20250401150633
// @description  进入系统后,三秒后注入devtools到vue
// @author       You
// @match        https://10-152-252-1-9fse9py3ym8010c.ztna-dingtalk.com/*
// @match        https://test1.gzztdh.com:9445/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=ztna-dingtalk.com
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    window.onload = function () {
        setTimeout(function () {
            // Your code here...
            try {
                const devtools = window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
                const Vue = $("#app")[0].__vue__.__proto__.__proto__.constructor;
                Vue.config.devtools = true;
                devtools.emit("init", Vue);
            } catch (e) {
                console.error(e)
            }
        }, 3000)
    }
})();