当前位置: 首页 > news >正文

专做品质游的网站做网站怎么做付费推广

专做品质游的网站,做网站怎么做付费推广,微平台小程序,凡科做的网站提示证书错误最近给Firefox这一快捷键坑了几次。恰好发现在CMU也有人遇到类似的烦恼,找到一篇基于Linux的教程。 我使用的是Windows,所以根据自己的情况做了些修改,成功了。小众需求就犯懒直接将笔记贴上了,如果有谁用得上的话,我写…

最近给Firefox这一快捷键坑了几次。恰好发现在CMU也有人遇到类似的烦恼,找到一篇基于Linux的教程。
我使用的是Windows,所以根据自己的情况做了些修改,成功了。小众需求就犯懒直接将笔记贴上了,如果有谁用得上的话,我写个中文版。

Disabling the Ctrl-W shortcut on Firefox

Many vim users use ctrl-w to delete a word. Unfortunately on Firefox, this closes the current tab. So if you’re editing a text area / filling out a form you may accidentally close the tab.

There’s no option to change or disable default keyboard shortcuts (Firefox 98, 2022-03-29 // Firefox 117依然不支持). So if you want to do it, you need to edit files manually.

To disable ctrl-w shortcut in Firefox, you need to manually edit the file:

  • /usr/lib/firefox/browser/omni.ja (Linux) .
  • "/c/Program Files/Mozilla Firefox/browser/omni.ja" (Windows)

Modify the File

Run git bash in administration mode.

First unzip it to a temporary directory:

mkdir /tmp/firefox-omni
cd /tmp/firefox-omni
unzip "/c/Program Files/Mozilla Firefox/browser/omni.ja"

Now you need to edit ./chrome/browser/content/browser/browser.xhtml to make your changes. You can change as many shortcuts as you want here. The ctrl-w key is called close-shortcut. You can either

  • comment out the offending line, or
  • change modifiers="accel,shift" to require ctrl-shift-w to close tabs.

Note, the above instructions only make Ctrl-W an unreserved shortcut. This means extensions can now remap it. If you don’t have any extensions that remap it then Ctrl-W will still close your current window.

If you’d like to simply disable Ctrl-W, then just comment out the above shortcut definitions entirely (instead of only changing reserved="true" to reserved="false" as I suggest above).

Here is how to comment it out:

<key id="key_close" data-l10n-id="close-shortcut" command="cmd_close" modifiers="accel" reserved="true"/>

Now switch to root, and install your changes:

cd /tmp/firefox-omni
zip -0DXqr /tmp/omni.ja * # I have install `zip` into DELL
cd "/c/Program Files/Mozilla Firefox/browser"cp ./omni.ja ./omni.ja.bkup # backupcp /tmp/omni.ja ./omni.ja # TOCHECK: if the first path is correct
rm -r /tmp/omni.ja /tmp/firefox-omni

Clear Firefox Start Cache and Restart

In URI panel, enter about:support

Click “Clear startup cache…” on the right, and click restart. (opened pages won’t be lost)

Done🍺

Note: You will have to do this every time you reinstall firefox. I automated the above into a script. First save firefox-omni.patch as ~/local/src/firefox-omni.patch, and then download and run this script as a normal users (that has sudo privileges).

Reference

https://www.math.cmu.edu/~gautam/sj/blog/20220329-firefox-disable-ctrl-w.html

http://www.yayakq.cn/news/234222/

相关文章:

  • 网站开发需要大学吗自建房设计软件
  • 二级网站怎样做排名无锡网站定制
  • 海北高端网站建设公司汕头市住房和城乡建设局网站
  • 网站行销台州企业网站搭建厂家
  • 可以做引流网站的源码主要搜索引擎网站搜索结果比较
  • 做网站上海龙岩建设局网站
  • 网站职业培训学校诸城做网站公司
  • 哪些大型网站用python做的商标制作logo在线制作
  • 360免费自助建站网站开发工作简历
  • Asp网站开发入门100个简单的手工小玩具
  • 广东网站备案要求网站页面架构图
  • 禅城建网站做短视频网站需要审批
  • 广东企业网站建设推荐阿里云备案网站建设方案书
  • 静态网站更新文章麻烦免费网站建设模板
  • 0基础网站开发网红营销的策略
  • 更合高明网站建设什么the wordpress
  • 外星人做的网站网站申请页面
  • 做网站用什么服务器好怎么修改网站的关键词
  • 怎么做网站的广告成都网站开发培训机构
  • 企业营销类专业网站福永小学网站建设
  • 网站设计一个版块旅行社网站建设方案
  • 建设销售型网站网站策划与设计(
  • 做网站怎样做才有百度快照网站建设费属于宣传费吗
  • 口碑好的网站建设多少钱评论网站建设
  • dedecms做的网站手机上看图片变形seo具体怎么优化
  • 网站策划专有技术泰安房产信息网
  • 做地铁系统集成的公司网站盐城网站建设价位
  • 婚恋网站建设技巧开发公司移交物业清单
  • 那个网站做的好蔡甸做网站
  • 工作箴言上海网站建设乐云seo