阅读:951回复:3
关于移动到地址栏自动选中的uc脚本问题
//自动选中地址栏
document.getElementById("urlbar").addEventListener("mouseover", function(e) { e.target.select(); }, false); 这个uc脚本很好用,鼠标移动到地址栏就直接选中了。可以直接搜索。能不能改一下。就是移动到地址栏选中,移除后马上取消选中呢。 |
|
1楼#
发布于:2017-08-21 16:46
找到一个。大家用用看好使不
gURLBar.addEventListener("mouseover", function(e){ if(e.target.compareDocumentPosition(document.activeElement)!= 20) e.target.select(); }, false); gURLBar.addEventListener("mouseout", function(e){ var k = e.target.compareDocumentPosition(e.relatedTarget); if(k!=0 && k!=20){ e.target.blur(); gBrowser.selectedBrowser.focus(); } }, false); |
|
2楼#
发布于:2017-08-21 18:03
uc快死了,建议别折腾了
|
|
3楼#
发布于:2017-08-21 18:20
用了这么多年,很多都习惯了。要是那些uc都不能用了怎么办呢????????????????????
|
|