Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 45d5200e61 | |||
| 10de4507af | |||
| a37d54cd2e | |||
| abc7742b75 |
20
CHANGELOG.md
20
CHANGELOG.md
@@ -1,5 +1,25 @@
|
||||
# Changelog
|
||||
|
||||
## 1.4.12 (2025-11-11)
|
||||
|
||||
- correction bug menu
|
||||
|
||||
## 1.4.11 (2025-11-11)
|
||||
|
||||
- ajout des data collection permissions
|
||||
|
||||
## 1.4.10 (2025-11-11)
|
||||
|
||||
- correction du fichier metadata.json
|
||||
|
||||
## 1.4.9 (2025-11-11)
|
||||
|
||||
- test déploiement manuel
|
||||
|
||||
## 1.4.8 (2025-11-11)
|
||||
|
||||
- suppression de data_collection_permissions car non supporté pour Android
|
||||
|
||||
## 1.4.7 (2025-11-11)
|
||||
|
||||
- correction du déploiement automatisé
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "KAplus",
|
||||
"version": "1.4.7",
|
||||
"version": "1.4.12",
|
||||
|
||||
"author": "Samuel Campos - netoik.io",
|
||||
"description": "Extension développée pour améliorer l'expérience de jeu KingsAge (fonctionne avec ou sans premium)",
|
||||
@@ -13,8 +13,7 @@
|
||||
"required": [
|
||||
"websiteContent",
|
||||
"websiteActivity"
|
||||
],
|
||||
"optional": []
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
{
|
||||
"compatibility": [
|
||||
"android",
|
||||
"firefox"
|
||||
],
|
||||
"release_notes": {
|
||||
"fr": "- correction du déploiement automatisé\n- ajout de data_collection_permissions dans manifest.json"
|
||||
"version": {
|
||||
"compatibility": [
|
||||
"android",
|
||||
"firefox"
|
||||
],
|
||||
"release_notes": {
|
||||
"fr": "- correction bug menu",
|
||||
"en-US": "- fix bug menu"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -32,22 +32,16 @@ function createRow(key, value) {
|
||||
}
|
||||
|
||||
function shortcutElementReplace(elt, img, text) {
|
||||
let imgElements = elt.getElementsByTagName("img");
|
||||
for (let i=0; i<imgElements.length; i++) {
|
||||
if (i === 0) {
|
||||
elt.getElementsByTagName("a")[0].classList.add("has_notif");
|
||||
}
|
||||
imgElements[i].remove();
|
||||
i --;
|
||||
}
|
||||
|
||||
// If more than one hyperlink element found,
|
||||
// then keep the last one but with href of the first one.
|
||||
let aElements = elt.getElementsByTagName("a");
|
||||
for (i=0; i<aElements.length; i++) {
|
||||
if (i > 0) {
|
||||
aElements[i].remove();
|
||||
i --;
|
||||
}
|
||||
}
|
||||
if (aElements.length > 1) {
|
||||
aElements[aElements.length - 1].classList.add("has_notif");
|
||||
aElements[aElements.length - 1].setAttribute("href", aElements[0].getAttribute("href"));
|
||||
for (let i = aElements.length - 2; i >= 0; i --) {
|
||||
aElements[i].remove();
|
||||
}
|
||||
}
|
||||
|
||||
let spanImageElement = document.createElement("span");
|
||||
spanImageElement.classList.add("shortcut_element_image");
|
||||
|
||||
Reference in New Issue
Block a user