MCPcopy
hub / github.com/leonhartX/gas-github / showLog

Function showLog

src/gas-hub.js:620–628  ·  view source on GitHub ↗
(message, level = LEVEL_INFO)

Source from the content-addressed store, hash-verified

618 * but the class is promo. info, warning
619 */
620function 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
630String.prototype.capitalize = function () {
631 return this.charAt(0).toUpperCase() + this.slice(1);

Callers 15

loadFunction · 0.85
initContextFunction · 0.85
initPageEventFunction · 0.85
showDiffFunction · 0.85
updateRepoFunction · 0.85
updateBranchFunction · 0.85
handleRepoCreatedFunction · 0.85
handleBranchCreatedFunction · 0.85
handleGistCreatedFunction · 0.85
pushMethod · 0.85
getNamespacesMethod · 0.85
getAccessTokenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected