Self explanatory. As of Firefox 117, you can just use the `Enable persistent logs` feature in devtools, it now disables console.clear().
< Σχολιασμός για τον κώδικα Disallow console.clear
// ==UserScript== // @name Prevent console.clear // @description Replaces console.clear with a function that does nothing // @version 1 // @match *://*/* // @grant unsafeWindow // @run-at document-start // ==/UserScript== (function() { unsafeWindow.console.clear = () => {}; }());
Nevermind, this code also doesn't work at the place I need
Συνδεθείτε για να δημοσιεύσετε μια απάντηση.