MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / makeBtn

Function makeBtn

example/tests/gm_value_test.js:763–776  ·  view source on GitHub ↗
(text, danger)

Source from the content-addressed store, hash-verified

761 writeRow.className = 'btn-row';
762
763 function makeBtn(text, danger) {
764 const b = document.createElement('button');
765 b.textContent = text;
766
767 if (danger) {
768 b.className = 'danger';
769 } else {
770 b.style.color = accent;
771 b.style.borderColor = accent + '66';
772 b.style.background = '#ffffff';
773 }
774
775 return b;
776 }
777
778 const cmdMap = [
779 ['string', 'SET_STRING'],

Callers 1

gm_value_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected