Created
April 15, 2021 14:18
-
-
Save AAGaming00/10cab1c32b3cf438d44c37c5fa160ca1 to your computer and use it in GitHub Desktop.
Fixes for old webkit inspector versions in chromium.
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 Webkit Inspector Fix | |
// @namespace Violentmonkey Scripts | |
// @match http://localhost:8888/webinspector/inspector.html | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 4/15/2021, 10:04:41 AM | |
// ==/UserScript== | |
CSSStyleDeclaration.prototype.getPropertyCSSValue = CSSStyleDeclaration.prototype.getPropertyValue; | |
CSSPrimitiveValue = String; | |
String.prototype.getFloatValue = function () { | |
return parseFloat(this); | |
}; | |
Object.defineProperty(KeyboardEvent.prototype, "keyIdentifier", { | |
get : function () { | |
return this.key; | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment