Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const header = document.getElementsByClassName("right-tab-header")[0];
- const cultureBtn = document.createElement("button");
- const cultureText = document.createTextNode("Spend culture");
- cultureBtn.onclick = () => {
- ["parchment", "manuscript", "compedium"].forEach(res => gamePage.craftAll(res));
- };
- cultureBtn.appendChild(cultureText);
- const matsBtn = document.createElement("button");
- const matsText = document.createTextNode("Make stuff");
- matsBtn.onclick = () => {
- ["steel", "plate", "slab", "beam"].forEach(res => gamePage.craftAll(res));
- };
- matsBtn.appendChild(matsText);
- header.appendChild(cultureBtn);
- header.appendChild(matsBtn);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement