From bc73c51facb131cc00193f7f061e92cba0b45bb9 Mon Sep 17 00:00:00 2001 From: samuel Date: Sun, 14 Sep 2025 12:42:43 +0200 Subject: [PATCH] Fix messages display --- CHANGELOG.md | 6 +++++ manifest.json | 2 +- src/kaplus.css | 49 +++------------------------------------- src/kaplus.js | 61 ++++++++------------------------------------------ 4 files changed, 19 insertions(+), 99 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7583e9..2448d4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.4.2 (2025-09-14) + +- annulation de la suppression des tours drapeaux (car impossible de réduire l'écran correctement) +- correction de l'affichage quand il y a des nouveaux messages et des rapports d'attaques +- suppression totale de la bannière de publicité + ## 1.4.1 (2025-09-02) - correction de la largeur du menu principal diff --git a/manifest.json b/manifest.json index 3a6d847..eafc710 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "KAplus", - "version": "1.4.1", + "version": "1.4.2", "author": "Samuel Campos - netoik.io", "description": "Extension développée pour améliorer l'expérience de jeu KingsAge (fonctionne avec ou sans premium)", diff --git a/src/kaplus.css b/src/kaplus.css index 23c5e8b..5982671 100644 --- a/src/kaplus.css +++ b/src/kaplus.css @@ -1,20 +1,7 @@ -@keyframes blinking { - 0%, 100% { - opacity: 1; +#inner_footer { + .inner_subcolumns { + left: 0 !important; } - 50% { - opacity: 0; - } -} - -@media (max-width:1000px) { - #display_left, #display_right { - display: none !important; - } -} - -#banner_container { - display: none; } #content_wrapper > table { @@ -27,12 +14,6 @@ text-align: center !important; padding: 0 9px 0 11px !important; } - .flag { - position: absolute; - top: 5px; - width: 50px; - opacity: 0.7; - } .shortcut_container { float: none; } @@ -42,16 +23,6 @@ .shortcut_container_right { text-align: left; } - .shortcut_container_flag { - position: absolute; - top: 0; - } - .shortcut_container_flag_left { - left: 10px; - } - .shortcut_container_flag_right { - right: 10px; - } .shortcut_element { margin: 0 !important; padding: 0 !important; @@ -59,9 +30,6 @@ width: 70px !important; text-align: center; } - .shortcut_container_flag .shortcut_element { - width: auto !important; - } .shortcut_element_left, .shortcut_element_right, .shortcut_element_left_premium, .shortcut_element_right_premium { display: none; } @@ -80,17 +48,6 @@ position: relative; opacity: 0.7; } - a.no_attack { - visibility: hidden; - } - a.has_attack { - .shortcut_element_image { - animation: blinking 2s infinite; - } - .shortcut_element_desc { - color: #FFFFFF; - } - } a:hover, a.has_notif { opacity: 1; } diff --git a/src/kaplus.js b/src/kaplus.js index 6db8b65..6e2051d 100644 --- a/src/kaplus.js +++ b/src/kaplus.js @@ -30,15 +30,13 @@ function createRow(key, value) { } function shortcutElementReplace(elt, img, text) { - hyperlinkElements = elt.getElementsByTagName("a"); - if (hyperlinkElements.length == 2) { - hyperlinkElements[0].remove(); - elt.getElementsByTagName("a")[0].classList.add("has_notif"); - } - imageElements = elt.getElementsByTagName("img"); - if (imageElements.length == 1 && imageElements[0].getAttribute("src").endsWith("new_report.png")) { - imageElements[0].remove(); - elt.getElementsByTagName("a")[0].classList.add("has_notif"); + imgElements = elt.getElementsByTagName("img") + for (i=0; i