Last active
August 25, 2023 21:25
-
-
Save relative/5a81a09df49ff33e46c9659dc8a502e5 to your computer and use it in GitHub Desktop.
Userscript to disable JS warnings on regexr.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Disable regexr warnings | |
// @namespace relative | |
// @match https://www.regexr.com/* | |
// @match https://regexr.com/* | |
// @grant none | |
// @version 1.0 | |
// @author relative | |
// @description 8/25/2023, 5:17:18 PM | |
// @run-at document-idle | |
// @homepageURL https://gist.github.com/relative/5a81a09df49ff33e46c9659dc8a502e5 | |
// @updateURL https://gist.github.com/relative/5a81a09df49ff33e46c9659dc8a502e5/raw/disable-regexr-js-warnings.user.js | |
// ==/UserScript== | |
void function main(proto){ | |
proto.addJSWarnings = function(){/*NOOP*/} | |
}(Object.getPrototypeOf(window.regexr.expression.lexer)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment