Nnnes

New Member
Reaction score
0
Author
Nnnes
Contributors
N/A
Quickbar Entry
javascript:Array.from(buildings_table.rows).forEach((r,i)=>{while(r.cells.length > 21)r.removeChild(r.lastChild);i==0?r.appendChild(document.createElement('th').appendChild(document.createTextNode('Next building')).parentNode):r.insertCell().appendChild(document.createTextNode(r.cells.item(20).querySelector('#order_0 .queue_icon img')?.getAttribute('data-title').split(' - ').at(1)||''))});
Public?
Public
20230413_171305.png

This is a small script for the Buildings tab of the Account Manager. It adds a table column showing when the next building will be completed in each village, eliminating the need to mouse over every icon if you are, for example, looking for buildings to instant complete. It does not generate any interactive elements, only plain text. It does not function on any other pages.

Compatibility note: I am not aware of any other scripts that modify this table on this page, but if they exist, this script will most likely not play nicely with them (column numbers are hard-coded).

Unminified code: https://gist.github.com/Nnnes/c3a3d9dc2ec18db534f3f4eb0b95113a
 
Changelog
2023-04-13 - v0.1
Upvote 0
Top