Miss parameter
This commit is contained in:
parent
9517eb8028
commit
1f478d7626
@ -6,7 +6,7 @@
|
|||||||
// @match https://www.gamosaurus.com/jeux/dofus/*
|
// @match https://www.gamosaurus.com/jeux/dofus/*
|
||||||
// @match https://dofus-map.com/*
|
// @match https://dofus-map.com/*
|
||||||
// @match https://dofus-portals.fr/*
|
// @match https://dofus-portals.fr/*
|
||||||
// @version 1.4
|
// @version 1.5
|
||||||
// @author Mazoyer Alexis
|
// @author Mazoyer Alexis
|
||||||
// @description Permet de rendre cliquable toutes les positions [x,y] indiquées sur le site dofuspourlesnoobs
|
// @description Permet de rendre cliquable toutes les positions [x,y] indiquées sur le site dofuspourlesnoobs
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
@ -95,9 +95,9 @@ if (!window.location.href.includes('dofus-map')) {
|
|||||||
const position = getPositionArray(result.innerHTML.replace( /(<([^>]+)>)/ig, '').replace(';', ',').replace(/\s/g, ''))
|
const position = getPositionArray(result.innerHTML.replace( /(<([^>]+)>)/ig, '').replace(';', ',').replace(/\s/g, ''))
|
||||||
if(position && position.length === 2) {
|
if(position && position.length === 2) {
|
||||||
if (parameters.has('noob')) {
|
if (parameters.has('noob')) {
|
||||||
copyTextToClipboard('[' + position[0] + ',' + position[1])
|
copyTextToClipboard('[' + position[0] + ',' + position[1] + ']')
|
||||||
} else {
|
} else {
|
||||||
copyTextToClipboard(travelCommand + position[0] + ',' + position[1] + ']')
|
copyTextToClipboard(travelCommand + position[0] + ',' + position[1])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user