Firefox 左键点击打开书签同时不关闭书签弹出菜单

Firefox 2022-06-04 140℃ 0 1

卡饭上有人求这个功能,我花了5分钟写了个 UC 脚本

location.href.startsWith('chrome://browser/content/browser.x') && setTimeout(() => {
    eval('BookmarksEventHandler.onMouseUp = ' + BookmarksEventHandler.onMouseUp.toString().replace("onMouseUp(aEvent)", "function onMouseUp(aEvent)").replace('aEvent.button == 1', 'aEvent.button == 0 || aEvent.button == 1'));
}, 1000);

评论 (0)

Top