From 4cb8c3459eaad0f8e5d4878bf3d7ea00707318bf Mon Sep 17 00:00:00 2001 From: Alyssa X Date: Wed, 12 Jan 2022 20:19:34 +0100 Subject: [PATCH] CSS conflicts in certain sites + onload for favicons --- src/content.css | 3 +++ src/content.js | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/content.css b/src/content.css index 400bf4f..07ecf09 100644 --- a/src/content.css +++ b/src/content.css @@ -162,6 +162,9 @@ margin-top: 5px; margin-bottom: 5px; box-sizing: border-box; + outline: none; + border: 0px; + box-shadow: none; } .omni-extension ::placeholder { color: var(--placeholder); diff --git a/src/content.js b/src/content.js index 0e70ccd..1d0b928 100644 --- a/src/content.js +++ b/src/content.js @@ -25,7 +25,8 @@ $(document).ready(function(){ }); keys += ""; } - var img = "favicon"; + var onload = 'if ("naturalHeight" in this) {if (this.naturalHeight + this.naturalWidth === 0) {this.onerror();return;}} else if (this.width + this.height == 0) {this.onerror();return;}'; + var img = "favicon"; if (action.emoji) { img = ""+action.emojiChar+"" }