vConsole

【使用前先看介绍/有问题可反馈】手机浏览器控制台 (vConsole):在移动端手机浏览器中插入 vConsole 从而调用控制台,使用 via 浏览器进入该页面可添加脚本

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 or Violentmonkey 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         vConsole
// @name:cn      vConsole
// @namespace    http://tampermonkey.net/
// @version      0.1.2
// @description  【使用前先看介绍/有问题可反馈】手机浏览器控制台 (vConsole):在移动端手机浏览器中插入 vConsole 从而调用控制台,使用 via 浏览器进入该页面可添加脚本
// @author       cc
// @include      *
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    let script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = 'https://cdn.bootcss.com/vConsole/3.3.0/vconsole.min.js';
    document.body.appendChild(script);
    script = document.createElement('script');
    script.type = 'text/javascript';
    script.innerHTML =
    `
        (function wait() {
            try {
                var vc = new VConsole();
                console.log('vConsole has been created.');
            } catch {
                setTimeout(wait, 50);
            };
        })();
    `;
    document.body.appendChild(script);
})();