.redmine-stats table.table > :is(thead, tbody) > tr > :is(th,td) { padding: .1em 1ch .1em 3ch; text-align: right; } jQuery(() => { console.log("CYA EMBED", "Parsing..."); jQuery(".plugin_wrap.wrap_embed, .plugin_wrap.wrap_fetch").each(function() { var wrap = jQuery(this); var html = wrap.text().trim(); var url = ""; var params = html.split("/"); wrap.html("..."); console.log("CYA EMBED", "Parsing...", "Found", this, params); if (params.length >= 2 && params[0] == "redmine-stats") { console.log("CYA EMBED", "Parsing...", "Found known service", params[0]); url = "https://web.cyanide-studio.com/tools/redmine/?key=cron-trd6soihq4hedr687ioj685re5364se&format=html&project=" + params[1]; } if (url != "") { console.log("CYA EMBED", "Found URL", url); jQuery.ajax({ url: url, context: wrap, async: true, success: function(html) { this.addClass("redmine-stats"); this.html(html); console.log("CYA EMBED", "Embeded !"); }, error: function(html) { console.log("CYA EMBED", "Error !", html); }, complete: function(html) { console.log("CYA EMBED", "Complete !", html); } }); } }); console.log("CYA EMBED", "Parsing...", "DONE"); });