linux - 如何从终端重新加载 Google Chrome 选项卡?

标签 linux google-chrome browser terminal

有没有办法只使用终端在 Ubuntu 中重新加载 Google Chrome 选项卡。我不想只打开一个新窗口,而是要实际刷新一个选项卡!

附加问题: 这在其他浏览器中是否也可行,例如 Opera、Safari、Firefox。

最佳答案

一个将聚焦 Chrome 窗口然后通过发送 Control+r 重新加载浏览器的代码:

xdotool search --onlyvisible --class Chrome windowfocus key ctrl+r

关于linux - 如何从终端重新加载 Google Chrome 选项卡?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28132070/

相关文章:

linux - 通过 NPM 在 Debian Lenny (5.0) 中安装 Forever - 错误

javascript - 事件页面卸载后,没有在 Chrome 上获取 UDP 套接字的 onReceive 回调

html - 链接之间的制表符会导致 Chrome 中的伪元素出现问题

javascript - 使用 HTML/CSS/JavaScript 自定义滚动条可视化

css - 使用 CSS border-radius 的带有 OpenLayers map 的圆形 div 元素

javascript - DuckDuckGo 如何根据我是否访问过页面显示图标?

linux - 在 Ubuntu 中安装 Torch 时出现 CMake 错误

arrays - Bash 获取唯一元素并过滤值

linux - 使用 lsyncd 使用远程源更新本地文件夹?

javascript - Chrome 开发工具无法展开 Iframe 内容