console.log

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

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

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