Open Vue devtools

在检测到Vue.js环境时,打开vue开发工具的开关,便于调试生产环境下的Vue页面

  1. // ==UserScript==
  2. // @name Open Vue devtools
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.5
  5. // @description 在检测到Vue.js环境时,打开vue开发工具的开关,便于调试生产环境下的Vue页面
  6. // @author YUYIDM
  7. // @match http://*/*
  8. // @match https://*/*
  9. // @icon https://cn.vuejs.org/images/logo.svg
  10. // @grant none
  11. // @run-at document-start
  12. // @require https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js
  13. // ==/UserScript==
  14.  
  15. (function (g) {
  16. 'use strict';
  17.  
  18. Vue.config.productionTip = false
  19.  
  20. Object.defineProperty(window, 'Vue', {
  21. get() {
  22. return Vue;
  23. },
  24. });
  25. })(Window);

QingJ © 2025

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