console.log

查看console控制台信息,查看网页源码,js调试等。

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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         console.log
// @namespace    https://jixiejidiguan.top/
// @version      1.0
// @description  查看console控制台信息,查看网页源码,js调试等。
// @author       jixiejidiguan.top
// @match        http://*/*
// @match        https://*/*
// @grant      GM_registerMenuCommand
// @license        AGPL License
// @run-at       document-start
// ==/UserScript==

(function () {
    'use strict';
    const JSURL = 'https://s4.zstatic.net/ajax/libs/eruda/3.2.1/eruda.min.js'
    function loadScript(url, callback) {
        if(document.querySelector("#eruda")){
            callback();
            return
        }
        const script = document.createElement('script');
        script.setAttribute("id","eruda")
        script.type = 'text/javascript';
        script.onload = function() {
            callback();
        };
        script.src = url;
        document.head.appendChild(script);
    }
    loadScript(JSURL, () =>{
        eruda.init({
            useShadowDom:true,
            autoScale:true,
            defaults:{
                displaySize: 40,
                transparency: 0.9
            }
        });
    });
})();