MCPcopy Create free account
hub / github.com/XIU2/UserScript / mouseOverHandler

Function mouseOverHandler

GithubEnhanced-High-Speed-Download.user.js:382–388  ·  view source on GitHub ↗
(evt)

Source from the content-addressed store, hash-verified

380
381 // 鼠标指向则显示
382 var mouseOverHandler = function(evt) {
383 let elem = evt.currentTarget,
384 aElm_new = elem.querySelectorAll('.fileDownLink'),
385 aElm_now = elem.querySelectorAll('svg.octicon.octicon-file, svg.color-fg-muted');
386 aElm_new.forEach(el=>{el.style.cssText = 'display: inline'});
387 aElm_now.forEach(el=>{el.style.cssText = 'display: none'});
388 };
389
390 // 鼠标离开则隐藏
391 var mouseOutHandler = function(evt) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected