Debugging on mobile/web
目前為
// ==UserScript==
// @name Eruda Loader
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Debugging on mobile/web
// @author JoeX92
// @match *://*/*
// @grant none
// @license MIT
// ==/UserScript==
(function() {
'use strict';
function loadEruda() {
var script = document.createElement('script');
script.src = "https://cdn.jsdelivr.net/npm/eruda";
script.onload = function() {
// This runs only after the script has fully loaded
eruda.init();
console.log("Eruda loaded and initialized");
};
document.body.appendChild(script);
}
// Call the function immediately, or bind it to a button/event
loadEruda();
})();