Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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é

Expand Down Expand Up @@ -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`
Expand Down
10 changes: 7 additions & 3 deletions dom-parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions test/dom-parsers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
];
Expand Down
11 changes: 11 additions & 0 deletions test/fixtures/dom-archidekt.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,15 @@
"5":{"name":"Abrade","qty":1,"categories":["Sideboard"]}
}}}}}}
</script>
<div class="desktop_controls__Dyf0Y desktop_hideOnMobile__kN_vv">
<div class="desktop_primaryActions__0z2Qe">
<button class="phatButton_button__9cZcg"><svg data-prefix="far" data-icon="clone" class="svg-inline--fa fa-clone icon_icon__NnZFg"></svg> Clone deck</button>
<div class="contextMenu_wrapper__81GsE desktop_elevateOnEmptyDeckOverlay__vxriI" tabindex="-1">
<button class="phatButton_button__9cZcg"><svg data-prefix="fas" data-icon="ellipsis-vertical" class="svg-inline--fa fa-ellipsis-vertical icon_icon__NnZFg desktop_extra__23F10"></svg> More</button>
</div>
</div>
<div class="desktop_row__Lyk92">
<a class="desktop_playtesterLink__IU8CJ" href="/playtester-v2/25927554"><svg data-prefix="far" data-icon="circle-play" class="svg-inline--fa fa-circle-play icon_icon__NnZFg"></svg> Playtester</a>
</div>
</div>
</body></html>
Loading