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

php网站实例六盘水seo

php网站实例,六盘水seo,wordpress代码如何运行安装,php网站开发技术背景最近给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.15wanjia.com/news/12888.html

相关文章:

  • 服装电子商务的网站建设巨量算数关键词查询
  • 做网站配什么电脑今天新闻最新消息
  • 手机版网站html5源码seo软件视频教程
  • 界面设计好看的网站优化网站教程
  • 好的高端网站注册网站
  • 苏州制作企业网站公司怎么样推广自己的网址
  • 做网站的教科书高端网站建设专业公司
  • 为企业做好服务优化营商环境北京网站建设优化
  • 网站优化软件robots百度推广时间段在哪里设置
  • 工程建设沈阳网网站排名优化课程
  • 手机屏网站开发一键优化清理
  • 网站建设项目投资测算企业邮箱注册申请
  • 邢台市招聘信息最新招聘信息windows清理优化大师
  • web网站开发工程师南昌企业网站建设
  • 政府网站建设会议纪要创建网站的软件
  • 学校网站制作方案免费域名解析网站
  • 英文网站如何做关键词微指数
  • 谷歌浏览器网页截图快捷键成都网站seo报价
  • 做网站的需要哪些职位深圳百度seo培训
  • 电子商务网站怎么做推广百度热搜榜今日头条排名
  • 可信网站认证的区别温岭网络推广
  • 莆田网站建设保定网站建设公司哪家好
  • wordpress 指定审核人网站推广和网站优化
  • 免费查企业电话网站海口百度seo公司
  • 怎么把自己做的网站发布长沙谷歌seo
  • 网站开发税收标准网络营销工具包括
  • 定制网站开发与模板郑州网络推广代理
  • 帝国cms做电影网站如何进行搜索引擎优化?
  • 3分钟搞定网站seo优化外链建设seo职业规划
  • wordpress 文本小工具编辑器知名的seo快速排名多少钱