-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheruda.user.js
More file actions
26 lines (26 loc) · 801 Bytes
/
Copy patheruda.user.js
File metadata and controls
26 lines (26 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// ==UserScript==
// @name Eruda
// @description Simple userscript that loads eruda console.
// @match *://*/*?*loaderuda=1*
// @version 2026-06-18
// @namespace https://github.com/54145a
// @require https://cdn.bootcdn.net/ajax/libs/eruda/3.4.3/eruda.min.js
// @grant none
// ==/UserScript==
(function () {
"use strict";
if(!window.eruda) return;
try {
//let initCmdId;
function initEruda() {
//GM_unregisterMenuCommand(initCmdId);
window.eruda.init();
window.eruda.show();
//window.eruda.get("console").config.set("displayIfErr", true);
}
//initCmdId = GM_registerMenuCommand("init()", initEruda)
initEruda();
} catch (e) {
prompt("", e);
}
}());