Skip to content

Instantly share code, notes, and snippets.

@relative
Last active August 25, 2023 21:25
Show Gist options
  • Save relative/5a81a09df49ff33e46c9659dc8a502e5 to your computer and use it in GitHub Desktop.
Save relative/5a81a09df49ff33e46c9659dc8a502e5 to your computer and use it in GitHub Desktop.
Userscript to disable JS warnings on regexr.com
// ==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