diff --git a/CHANGELOG.md b/CHANGELOG.md index 11a2510..ceb0f3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ reste à `0` tant que la version n'est pas publiée, `dev` est bumpé à chaque ## [Non publié] La v1.0.0 taguée le 2026-09-02 a été **annulée en production** ; la vraie 1.0 sortira avec ce -lot. Manifeste en cours : `1.0.10`. **56 tests verts. Aucune permission requise ajoutée.** +lot. Manifeste en cours : `1.0.11`. **Aucune permission requise ajoutée.** ### Ajouté @@ -49,6 +49,9 @@ lot. Manifeste en cours : `1.0.10`. **56 tests verts. Aucune permission requise ### Corrigé +- **Bouton Archidekt mal placé** : il s'ancre maintenant à côté du bouton « More » (groupe + Clone deck / More) au lieu du lien Playtester, qui peut se retrouver loin de ce groupe + quand le deck contient des erreurs. - **Bouton mtgtop8 en vue « visuelle »** : il réapparaît et lit correctement le deck (le cookie de vue visuelle collant cassait la lecture et masquait le bouton). - **Cartes recto/verso partagées entre sources** : `Life // Death` (Moxfield) et `Life/Death` diff --git a/dom-parsers.js b/dom-parsers.js index 237fe79..364d66c 100644 --- a/dom-parsers.js +++ b/dom-parsers.js @@ -256,10 +256,14 @@ // action bar, verified live { host: 'melee.gg', sel: '.view-decklist-screenshot' }, { host: 'getpaird.io', sel: 'a[href$="/goldfish"]' }, - // Archidekt renders BOTH a desktop and a hidden mobile Playtester link, hence the + // Next to Clone deck / More, in the primary actions group — the ellipsis-vertical + // icon is a stable FontAwesome hook, unlike the CSS-modules classes around it (those + // carry a build hash, e.g. contextMenu_wrapper__81GsE, that a redeploy can change). + // Archidekt renders BOTH a desktop and a hidden mobile "More" control, hence the // visibility filter below — anchoring to the hidden one would make our button - // invisible, which is worse than the floating fallback. - { host: 'archidekt.com', sel: 'a[href*="/playtester"]' }, + // invisible, which is worse than the floating fallback. Step up 2 (svg -> button -> + // its wrapper div) so the button lands beside the group instead of inside it. + { host: 'archidekt.com', sel: 'svg[data-icon="ellipsis-vertical"]', up: 2 }, // Next to the list/visual view toggle — mtgtop8's equivalent of melee's Visual View, // so the button sits in the same place on both. Sitting in the export cluster instead // put it in the middle of a dense run of MTGO/.dec links. The switch= query is the diff --git a/manifest.json b/manifest.json index 5be7f4f..8b700ce 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "__MSG_appName__", "short_name": "__MSG_appShortName__", "description": "__MSG_appDescription__", - "version": "1.0.10", + "version": "1.0.11", "default_locale": "en", "permissions": [ "activeTab", diff --git a/test/dom-parsers.test.js b/test/dom-parsers.test.js index 5370c91..58454e3 100644 --- a/test/dom-parsers.test.js +++ b/test/dom-parsers.test.js @@ -151,6 +151,7 @@ test("anchors: resolve against real fixtures", () => { ["magicville-dc.html", "https://www.magic-ville.com/fr/decks/showdeck?ref=1", "DIV"], ["magicville-dc.html", "https://magic-ville.com/fr/decks/showdeck?ref=1", "DIV"], // www-less ["mtgdecks.html", "https://mtgdecks.net/x", "LI"], + ["dom-archidekt.html", "https://archidekt.com/decks/x", "DIV"], ["moxfield.html", "https://moxfield.com/decks/x", "DIV"], ["moxfield.html", "https://www.moxfield.com/decks/x", "DIV"], // www twin ]; diff --git a/test/fixtures/dom-archidekt.html b/test/fixtures/dom-archidekt.html index fb10468..cc28385 100644 --- a/test/fixtures/dom-archidekt.html +++ b/test/fixtures/dom-archidekt.html @@ -9,4 +9,15 @@ "5":{"name":"Abrade","qty":1,"categories":["Sideboard"]} }}}}}} +