console.log

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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
            }
        });
    });
})();