https://plemiona-planer.pl/en/documentation#instalacja-niezbednych-skryptow
More info about usageYou should use official innogames cdn, eg. collect_troops.js
script:
javascript: var COLLECT_TROOPS_DATA_V2 = {
cache: true,
cacheTime: 5,
removedPlayers: "",
allowedPlayers: "",
firstLineTroops: "",
showFirstLineTroops: false,
showNicknamesTroops: false,
firstLineDeff: "",
showFirstLineDeff: false,
showNicknamesDeff: false,
language: "en"
};
$.getScript("https://media.innogamescdn.com/com_DS_PL/skrypty/Zbiorka_wojska_i_obrony.js");
void 0;
But for testing purposes I prepared simple gh-pages site https://rafsaf.github.io/scripts_tribal_wars/ updated on every push so scripts can be also triggered in this way:
javascript: var COLLECT_TROOPS_DATA_V2 = {
cache: true,
cacheTime: 5,
removedPlayers: "",
allowedPlayers: "",
firstLineTroops: "",
showFirstLineTroops: false,
showNicknamesTroops: false,
firstLineDeff: "",
showFirstLineDeff: false,
showNicknamesDeff: false,
language: "en"
};
$.getScript("https://rafsaf.github.io/scripts_tribal_wars/collect_troops_v2.js");
void 0;
JS version of the scripts compiled using command:
npm run build
This project use https://github.com/JamesIves/github-pages-deploy-action for deploying this static files. Recommended for this type of project ;)