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

Function showTip

github-clone-button/github-clone-button.user.js:389–404  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

387 }
388
389 function showTip(msg) {
390 const tip = document.createElement('div')
391 tip.textContent = msg
392 tip.style.position = 'fixed'
393 tip.style.top = '20px'
394 tip.style.right = '20px'
395 tip.style.background = '#28a745'
396 tip.style.color = '#fff'
397 tip.style.padding = '8px 16px'
398 tip.style.borderRadius = '6px'
399 tip.style.zIndex = 9999
400 tip.style.fontSize = '16px'
401 tip.style.boxShadow = '0 2px 8px rgba(0,0,0,0.15)'
402 document.body.appendChild(tip)
403 setTimeout(() => tip.remove(), 1800)
404 }
405
406 function addCopyButton() {
407 const cmd = getCloneCmd()

Callers 1

copyCloneCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected