Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a9419dc920 | |||
| 9d0e71eac7 |
2 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||
addCopyButtonAtelier();
|
||||
|
|
|
|||
|
|
@ -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/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue