You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何用浏览器开发者工具禁用Autodesk在线查看器鼠标悬停高亮?

禁用Autodesk在线查看器鼠标悬停高亮的方法

临时解决方案(每次打开页面需重复操作)

  1. 打开目标DWG文件页面,在浏览器空白处右键点击,选择「检查」(或直接按下快捷键 F12 / Ctrl+Shift+I),打开开发者工具。
  2. 在开发者工具顶部标签栏中,找到并点击「Console」(控制台)标签。
  3. 将以下代码复制粘贴到控制台输入框,按下回车键执行:
const styleNode = document.createElement('style');
styleNode.textContent = `
/* 隐藏所有悬停高亮相关元素 */
.adsk-viewing-viewer .hover-highlight,
.adsk-viewing-viewer .selection-highlight,
.adsk-viewing-viewer .model-structure-tree .node:hover,
.adsk-viewing-viewer .tooltip
{
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
`;
document.head.appendChild(styleNode);
  1. 执行完成后,鼠标悬停时的橙色高亮和图层高亮会立即消失,可正常查看光栅图像细节。

持久解决方案(无需每次重复操作)

如果需要长期禁用该功能,可通过浏览器插件实现:

  1. 安装Tampermonkey(油猴)插件(Chrome/Edge应用商店直接搜索即可安装)。
  2. 点击Tampermonkey图标,选择「创建新脚本」。
  3. 删除默认脚本内容,粘贴以下代码:
// ==UserScript==
// @name         禁用Autodesk查看器悬停高亮
// @match        *://*.autodesk.com/*viewer*
// @match        *://autode.sk/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    const styleNode = document.createElement('style');
    styleNode.textContent = `
    .adsk-viewing-viewer .hover-highlight,
    .adsk-viewing-viewer .selection-highlight,
    .adsk-viewing-viewer .model-structure-tree .node:hover,
    .adsk-viewing-viewer .tooltip
    {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    `;
    document.head.appendChild(styleNode);
})();
  1. 按下 Ctrl+S 保存脚本,之后打开Autodesk在线查看器页面时,悬停高亮会自动被禁用。

内容的提问来源于stack exchange,提问作者SaxGuit

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.22 23:32:36