(message, level = LEVEL_INFO)
| 618 | * but the class is promo. info, warning |
| 619 | */ |
| 620 | function showLog(message, level = LEVEL_INFO) { |
| 621 | |
| 622 | $.get(chrome.runtime.getURL('content/alert.html')) |
| 623 | .then((content) => { |
| 624 | $("[jsname=cFQkCb]").removeClass("LcqFFc"); |
| 625 | $("[jsname=cFQkCb] > [jsname=NR4lfb]").css("flex-basis", "150px") |
| 626 | $('.Vod31b').html(content.replace(/_TIMESTAMP_/g, new Date().toLocaleTimeString()).replace(/_LEVEL_/g, level).replace(/_MESSAGE_/, message)); |
| 627 | }) |
| 628 | } |
| 629 | |
| 630 | String.prototype.capitalize = function () { |
| 631 | return this.charAt(0).toUpperCase() + this.slice(1); |
no outgoing calls
no test coverage detected