vconsole_mobilebrowser

手机浏览器注入vconsole控制台

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name vconsole_mobilebrowser
// @namespace [url=mailto:[email protected]][email protected][/url]
// @match *://*/*
// @author 自由的石头
// @description 手机浏览器注入vconsole控制台
// @version 0.0.1
// @require https://cdn.bootcdn.net/ajax/libs/vConsole/3.3.4/vconsole.min.js
// ==/UserScript==
(function(){
  'use strict';
  // 初始化vConsole
  window.vConsole = new window.VConsole({
  defaultPlugins: ['system', 'network', 'element', 'storage'], // 可以在此设定要默认加载的面板
  maxLogNumber: 1000,
  // disableLogScrolling: true,
  onReady: () => {
    console.log('vConsole is ready.');
  },
  onClearLog: () => {
    console.log('on clearLog');
   }
  });

  console.info('欢迎使用 vConsole-mobilebrowser by 自由的石头。vConsole 是一个由微信前端团队研发的 Web 前端开发者面板,可用于展示 console 日志,方便开发、调试。');
 
})();