diff --git a/dofusbook.atelier.copy.js b/dofusbook.atelier.copy.js index 307ba5b..464542d 100644 --- a/dofusbook.atelier.copy.js +++ b/dofusbook.atelier.copy.js @@ -12,7 +12,7 @@ function addCopyButtonAtelier() { if(itemCells.length > 0){ for(const itemCell of itemCells) { const itemWrapper = itemCell.getElementsByClassName('wrapper').item(0); - const itemName = itemWrapper.getElementsByClassName('label').item(0).innerHTML.slice(1, -1); + const itemName = itemWrapper.getElementsByClassName('label').item(0).innerHTML; if(itemWrapper.getElementsByClassName('copy-btn').length == 0){ let itemCopyButton = document.createElement("button"); @@ -41,4 +41,4 @@ function addCopyButtonAtelier() { } } -addCopyButtonAtelier(); \ No newline at end of file +addCopyButtonAtelier(); diff --git a/manifest.json b/manifest.json index afc1080..f9fbba2 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "DofusBook Atelier Bouton Copier", "description": "Ajout d'un bouton pour copier chaque nom de ressource dans l'atelier de DofusBook", - "version": "1.1.0", + "version": "1.1.1", "manifest_version": 3, "icons": { "16": "./icons/icon16.png", @@ -19,4 +19,4 @@ "host_permissions": [ "https://www.dofusbook.net/*" ] -} \ No newline at end of file +}