rbrck / Toolbox easy iccid

// ==UserScript==
// @name         Toolbox easy iccid
// @namespace    Electronic Studio
// @version      0.1
// @description  Insert additional column to copy iccid
// @author       rbrck
// @match        */webfront/simcardmanagement*
// @grant        none
// @run-at      document-start
// ==/UserScript==

window.setInterval(setWidth, 500);
var initialized = false;
function setWidth() {
    if(!initialized && $$("table").size() > 1){
        for (i = 0; i < $$("table")[1].rows.length; i++) {
            row = $$("table")[1].rows[i];
            var newCell = row.insertCell(3)
            if(i==0) {
                newCell.innerHTML = "<b>Short ICCID</b>";
            } else {
                newCell.innerHTML = row.cells[0].textContent.substring(14);
            }
        }
    initialized = true;
    }
}