Skip to content

Instantly share code, notes, and snippets.

@AAGaming00
Created April 15, 2021 14:18
Show Gist options
  • Save AAGaming00/10cab1c32b3cf438d44c37c5fa160ca1 to your computer and use it in GitHub Desktop.
Save AAGaming00/10cab1c32b3cf438d44c37c5fa160ca1 to your computer and use it in GitHub Desktop.
Fixes for old webkit inspector versions in chromium.
// ==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