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

Function btnStyle

example/tests/gm_download_test.js:240–250  ·  view source on GitHub ↗
(bg)

Source from the content-addressed store, hash-verified

238 document.documentElement.appendChild(panel);
239
240 function btnStyle(bg) {
241 return {
242 background: bg || "#2a6df1",
243 color: "white",
244 border: "0",
245 padding: "6px 10px",
246 borderRadius: "6px",
247 cursor: "pointer",
248 font: "inherit",
249 };
250 }
251
252 const $log = panel.querySelector("#log");
253 const $counts = panel.querySelector("#counts");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected