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

Function mouseOutHandler

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

Source from the content-addressed store, hash-verified

389
390 // 鼠标离开则隐藏
391 var mouseOutHandler = function(evt) {
392 let elem = evt.currentTarget,
393 aElm_new = elem.querySelectorAll('.fileDownLink'),
394 aElm_now = elem.querySelectorAll('svg.octicon.octicon-file, svg.color-fg-muted');
395 aElm_new.forEach(el=>{el.style.cssText = 'display: none'});
396 aElm_now.forEach(el=>{el.style.cssText = 'display: inline'});
397 };
398
399 // 循环添加
400 files.forEach(function(fileElm) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected