Dawid Wysokiński
ad1c1987fc
All checks were successful
continuous-integration/drone/push Build is passing
60 lines
2.5 KiB
JavaScript
60 lines
2.5 KiB
JavaScript
const preambles = {
|
|
'extended-player-profile': `// ==UserScript==
|
|
// @name Extended player profile
|
|
// @version 1.1.2
|
|
// @description Adds additional info and actions on a player overview.
|
|
// @author Dawid Wysokiński - Kichiyaki - contact@dwysokinski.me
|
|
// @match https://*/game.php?*screen=info_player*
|
|
// @downloadURL ${process.env.PUBLIC_URL}/extended-player-profile.user.js
|
|
// @updateURL ${process.env.PUBLIC_URL}/extended-player-profile.user.js
|
|
// @icon https://www.google.com/s2/favicons?domain=plemiona.pl
|
|
// @grant none
|
|
// @run-at document-end
|
|
// ==/UserScript==`,
|
|
'extended-map-popup': `// ==UserScript==
|
|
// @name Extended map popup
|
|
// @version 1.0.2
|
|
// @description Extends the map popup with additional info.
|
|
// @author Dawid Wysokiński - Kichiyaki - contact@dwysokinski.me
|
|
// @match https://*/game.php?*screen=map*
|
|
// @downloadURL ${process.env.PUBLIC_URL}/extended-map-popup.user.js
|
|
// @updateURL ${process.env.PUBLIC_URL}/extended-map-popup.user.js
|
|
// @icon https://www.google.com/s2/favicons?domain=plemiona.pl
|
|
// @grant none
|
|
// @run-at document-end
|
|
// ==/UserScript==`,
|
|
'extended-village-profile': `// ==UserScript==
|
|
// @name Extended village profile
|
|
// @version 1.0.1
|
|
// @description Adds additional info and actions on a village overview.
|
|
// @author Dawid Wysokiński - Kichiyaki - contact@dwysokinski.me
|
|
// @match https://*/game.php?*screen=info_village*
|
|
// @downloadURL ${process.env.PUBLIC_URL}/extended-village-profile.user.js
|
|
// @updateURL ${process.env.PUBLIC_URL}/extended-village-profile.user.js
|
|
// @icon https://www.google.com/s2/favicons?domain=plemiona.pl
|
|
// @grant none
|
|
// @run-at document-end
|
|
// ==/UserScript==`,
|
|
'extended-tribe-profile': `// ==UserScript==
|
|
// @name Extended tribe profile
|
|
// @version 1.0.0
|
|
// @description Adds additional info and actions on a tribe overview.
|
|
// @author Dawid Wysokiński - Kichiyaki - contact@dwysokinski.me
|
|
// @match https://*/game.php?*screen=info_ally*
|
|
// @downloadURL ${process.env.PUBLIC_URL}/extended-tribe-profile.user.js
|
|
// @updateURL ${process.env.PUBLIC_URL}/extended-tribe-profile.user.js
|
|
// @icon https://www.google.com/s2/favicons?domain=plemiona.pl
|
|
// @grant none
|
|
// @run-at document-end
|
|
// ==/UserScript==`,
|
|
};
|
|
|
|
const preamble = preambles[process.env.PREAMBLE];
|
|
module.exports = preamble
|
|
? {
|
|
output: {
|
|
preamble: preamble,
|
|
},
|
|
}
|
|
: {};
|