MCPcopy Create free account
hub / github.com/ChinaGodMan/UserScripts / setupUI

Function setupUI

script-finder-plus/script-finder-plus.user.js:355–779  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

353 }
354
355 function setupUI() {
356 GM_addStyle(`
357 scrbutton.sf-script-button {
358 position: fixed;
359 bottom: 20%;
360 right: -50px;
361 transform: translateY(50%);
362 padding: 20px;
363 font-size: 16px;
364 border: none;
365 border-radius: 4px;
366 background-color: #1e90ff;
367 color: #ffffff;
368 cursor: pointer;
369 transition: right 0.3s;
370 z-index: 9999999999999999;
371 }
372 div.sf-info-container {
373 display: none;
374 position: fixed;
375 top: 50%;
376 left: 50%;
377 transform: translate(-50%, -50%);
378 width: 650px;
379 padding: 12px;
380 background-color: #ffffff;
381 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
382 border-radius: 4px;
383 opacity: 0;
384 transition: opacity 0.3s;
385 z-index: 9999;
386 max-height: 80vh;
387 overflow-y: auto;
388}
389 ul.sf-info-list {
390 list-style: none;
391 margin: 0;
392 padding: 0;
393 }
394 li.sf-info-item {
395 margin-bottom: 15px;
396 padding: 12px;
397 padding-bottom: 22px;
398 display: flex;
399 flex-direction: column;
400 border: 1px solid #1e90ff;
401 border-radius: 5px;
402 }
403 .div.sf-script-container {
404 display: flex;
405 flex-direction: column;
406 }
407 a.sf-mscript-link {
408 font-size: 18px !important;
409 font-weight: bold !important;
410 margin-bottom: 5px !important;
411 color: #1e90ff !important;
412 }

Callers 1

mainFunction · 0.85

Calls 3

getScriptsInfoFunction · 0.85
searchScriptFunction · 0.85
updateMatchesFunction · 0.85

Tested by

no test coverage detected