如果您使用的是Firefox,您可能已经注意到Firefox从右键菜单中删除了“查看图像”选项,并将其替换为“(View Image)在新选项卡中打开图像(Open Image in New Tab)”。虽然这对某些人来说是一个更好的选择,但如果您愿意,您仍然可以在Firefox中获得“(Firefox)查看图像”(View Image)选项卡。
Firefox上的(Firefox)查看图像(View Image)选项发生了什么?
虽然不是一个非常有影响力的变化,但在 Firefox 的一次更新中,他们删除了每次用户通过右键单击图片打开上下文菜单时都会出现的“查看图像”选项。(View Image)此选项已替换为类似的“在新选项卡中打开图像”。(Open Image)它们都用于保存图像,除了在新的上下文菜单功能中,您的图片在新选项卡中打开,以便您浏览更多图像。如果您不喜欢更改,上述过程可以帮助您恢复“查看图像”(View Image)选项。
在这篇文章中,我们将看到:
- 如何在Firefox上下文菜单中重新获得“查看图像(View Image)”选项。
- 如何在Firefox浏览器中自定义上下文菜单
- 什么是 userChrome.css
- 如何创建 userChrome.css 文件
- 如何使用 userChrome.css 隐藏上下文菜单选项。
如何在Firefox 上下文菜单中恢复(Firefox Context Menu)查看图像(View Image)
要在Firefox中恢复“查看图像”选项,您只需安装一个可以从mozilla.org下载的小插件。
该插件在此图像上下文菜单中添加了“查看图像(View Image)”,并恢复了在同一选项卡中打开图像的旧功能。
该扩展程序还以类似的方式添加了“查看视频(View Video)”和“查看音频”选项。(View Audio)
此附加组件的其他一些默认操作包括 -
- 左键单击以在同一选项卡中查看图像。
- 左键单击以在新窗口中查看图像。
- Ctrl左键单击以在新的前景选项卡中查看图像。
- Ctrl+shift 左键单击以在新的背景选项卡中查看图像。
如何在Firefox中自定义(Firefox)上下文菜单(Context Menu)
您可以自定义和隐藏上下文菜单中的一些选项,对userChrome.css进行一些更改。通过使用一些特定的CSS代码,您可以将“查看图像”和“查看视频”移动到上下文菜单的顶部,隐藏“在新选项卡中打开图像”上下文菜单,隐藏“在新选项卡中打开视频”上下文菜单条目.
什么是userChrome.css
userChrome.css 是一个对Firefox非常重要的样式表 (style sheet )。在 userChrome.css 中创建的每条(Every)规则都可以更改浏览器的用户界面,并且实际上可以覆盖几乎所有内置样式规则。虽然无法更改Firefox浏览器的功能操作,但您可以使用它来自定义 Web 浏览器的外观。例如,从上下文菜单中隐藏某些项目、更改浏览器的字体和颜色、调整空格等。
如何创建 userChrome.css 以隐藏菜单选项
1]在Firefox中(Firefox)打开(Open)“about:support”页面,然后单击“配置文件文件夹”。它将在您的文件资源管理器(File Explorer)中打开路径。
2]打开(Open)或创建chrome文件夹;在其中创建 userChrome.css。
3]打开记事本(Open Notepad)并粘贴给定的代码。
/* Hides Open Image In New Tab */
#context-viewimage { display: none !important; }
/* Hides Open Video In New Tab */
#context-viewvideo { display: none !important; }
/* Moves View Image to the very top */
menuitem[label="View Image"] { -moz-box-ordinal-group: 0 !important; }
/* Moves View Video to the very top */
menuitem[label="View Video"] { -moz-box-ordinal-group: 0 !important; }
4] 将文件另存为 userCrome.css 并关闭。
5] 现在在Firefox地址栏中输入about:config 。接受风险并继续,这是安全的。
6] 在搜索框中键入toolkit.legacyUserProfileCustomizations.stylesheets 。它默认设置为False,将其切换为 true 并重新启动浏览器。
7] 就是这样。查看图像(View Image)选项现在将出现在顶部。
在Firefox(Firefox)中禁用右键单击时如何保存图片?
有几个网站通过禁用右键单击按钮来阻止用户复制文本或保存图像。如果一个网站实现了这样的设置,它就会跨浏览器运行。如果您是Firefox用户并且想要保存来自禁用右键单击的网站的图片,您可以撤消该设置。这些网站为此目的使用Javascript,因此如果您禁用它,那么您就可以开始使用了。
在Firefox上,您需要执行以下操作:
- 访问工具 > 选项
- 单击“内容”选项卡
- 从后续设置中,取消选中启用 Javascript(Enable Javascript)的框
- 重新启动 Firefox(Restart Firefox),您将不再遇到问题
我们希望这篇文章已经消除了您对Firefox及其图片保存上下文菜单选项的所有疑虑。
How to get View Image back in Firefox Context Menu
If you are using Firefox, you might have notіced that Firefox has removed the ‘View Image’ option from the right-click menu and replaced it with “Open Image in New Tab”. While this is a better option for some, you can still get the View Image tab in your Firefox if you want.
What happened to the View Image option on Firefox?
Although not a very impactful change, in one of Firefox’s updates, they scraped off the ‘View Image’ option that used to appear every time a user would open the context menu by right-clicking on a picture. This option was replaced by a similar ‘Open Image in New Tab’. They both serve to save an image except in the new context menu feature, your picture opens in a new tab so as to allow you to browse through more images. If you don’t like the change, the aforementioned process can help you get the View Image option back.
In this post, we will see:
- How to get the ‘View Image‘ option back in the Firefox context menu.
- How to customize context menu in Firefox browser
- What is userChrome.css
- How to create the userChrome.css file
- How to hide the context menu options using userChrome.css.
How to get View Image back in Firefox Context Menu
To get the ‘View Image’ option back in your Firefox, you simply need to install a small add-on which you can download from mozilla.org.
The add-on adds “View Image” in this context menu for images and restores the old functionality of opening the image in the same tab.
The extension also adds “View Video” and “View Audio“, options in a similar fashion.
Some other default actions of this add-on include-
- Left-click to view the image in the same tab.
- Shift left click to view the image in a new window.
- Ctrl left click to view the image in a new foreground tab.
- Ctrl+shift left click to view the image in a new background tab.
How to customize the Context Menu in Firefox
You can customize and hide a few options from the context menu making some changes in userChrome.css. By using some specific CSS codes you can move “View Image” & “View Video” to the top of the context menu, hide the “Open Image in New Tab” context menu, hide the “Open Video in New Tab” context menu entry.
What is userChrome.css
userChrome.css is a style sheet that is very important to Firefox. Every rule created in userChrome.css can change the user interface of your browser and can actually override almost every built-in style rule. Though one cannot change the functional operation of the Firefox browser, you can use it to customize the appearance of your web browser. For example, to hide some items from the context menu, changing the fonts and colors of your browser, adjusting spaces, etc.
How to Create userChrome.css to Hide Menu Options
1] Open “about:support” page in Firefox and click on ‘Profile Folder’. It will open the path in your File Explorer.
2] Open or create the chrome folder; within it create userChrome.css.
3] Open Notepad and paste the given codes.
/* Hides Open Image In New Tab */
#context-viewimage { display: none !important; }
/* Hides Open Video In New Tab */
#context-viewvideo { display: none !important; }
/* Moves View Image to the very top */
menuitem[label="View Image"] { -moz-box-ordinal-group: 0 !important; }
/* Moves View Video to the very top */
menuitem[label="View Video"] { -moz-box-ordinal-group: 0 !important; }
4] Save the file as userCrome.css and close.
5] Now type about:config in the Firefox address bar. Accept the risk and continue, it’s safe.
6] Type toolkit.legacyUserProfileCustomizations.stylesheets in the search box. It is set to False by default, toggle it to true and restart the browser.
7] That’s it. The View Image option will now appear on the top.
How do I save a picture when right-click is disabled in Firefox?
There are several websites that block users from copy texts or saving images by disabling their right-click button. If a website has such a setting implemented, it runs across browsers. If you’re a Firefox user and want to save a picture from a website that has disabled right-clicks, you can undo that setting. These websites use Javascript for that purpose, so if you disable that, then you’re good to go.
On Firefox, here’s what you got to do:
- Visit Tools > Options
- Click on the Content tab
- From the subsequent settings, uncheck the box that says Enable Javascript
- Restart Firefox and you shall not face the problem anymore
We hope that this post has cleared all your doubts regarding Firefox and its picture-saving context menu options.