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

Function dragEnter

Lanzou-Enhanced.user.js:392–407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

390
391 // 拖入文件自动显示上传框
392 function dragEnter() {
393 mainframe.addEventListener('dragenter', function (e) {
394 e.preventDefault();
395 e.stopPropagation();
396 let f_upb = mainframe.document.querySelector('.f_upb')
397 if(f_upb.style.top != '-36px') {
398 f_upb.style.top = '-36px';
399 mainframe.f_upc();
400 }
401 }, false);
402 mainframe.addEventListener('drop', function (e) {
403 e.preventDefault();
404 //e.stopPropagation();
405 //console.log(e.dataTransfer.files)
406 });
407 }
408
409
410 // 一键复制所有分享链接

Callers 1

iframeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected