.redmine-issue:before { content: ""; display: inline-block; background-image: url(https://redmine.cyanide-studio.com/favicon.ico); width: 16px; height: 16px; background-size: cover; vertical-align: middle; }
jQuery(() => {
console.log("CYA BUG", "Parsing...");
jQuery(".plugin_wrap.wrap_bug, .plugin_wrap.wrap_issue, .plugin_wrap.wrap_redmine").each(function() {
var wrap = jQuery(this);
var id = wrap.attr("id");
console.log("CYA BUG", "Found ID", id);
if (jQuery.isNumeric(id)) {
var url = "https://web.cyanide-studio.com/wikissue/?key=c85f4132505c0744ce4273e64b739f87&issue=" + id + "&format=html";
jQuery.ajax({
url: url,
context: wrap,
async: true,
success: function(html) {
this.addClass("redmine-issue");
this.html(" " + id + " " + html);
console.log("CYA BUG", "Auto Redmine bug", id);
}
});
}
});
console.log("CYA BUG", "Parsing...", "DONE");
});