473,789 Members | 3,067 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to remove "Save Page As" from menu item in firefox using userChrome.css

22 New Member
Dear all,
I am using firefox in RedHat Linux and I want to remove the option "Save Page As" from File Menu.I am using the code as belows in userChrome.css. I can remove all the options. but i unable to remove the Save Page As option. Any one can solve this, kindly post ur suggestion.

Code:
Expand|Select|Wrap|Line Numbers
  1. #urlbar,#searchbar
  2. {
  3. display:none;
  4. }navigator-toolbox
  5. {
  6. display:none;
  7. }
  8.  
  9. #PersonalToolbar
  10. {
  11. display:none;
  12. }
  13.  
  14. .tabs-newtab-button
  15. {
  16. display:none;
  17. }
  18.  
  19. menu[label="Edit"]
  20. {
  21. display:none !important;
  22. }
  23. menu[label="View"]
  24. {
  25. display:none !important;
  26. }
  27. menu[label="History"]
  28. {
  29. display:none !important;
  30. }
  31. menu[label="Bookmarks"]menu[label="Tools"]
  32. {
  33. display:none !important;
  34. }
  35. menu[label="Help"]
  36. {
  37. display:none !important;
  38. }
  39. menuitem[label="New Window"]
  40. {
  41. display: none;
  42. }
  43. menuitem[label="New Tab"]
  44. {
  45. display: none;
  46. }
  47. menuitem[label="Close Window"]
  48. {
  49. display: none;
  50. }
  51. menuitem[label="Close Tab"]
  52. {
  53. display: none;
  54. }
  55. menuitem[label="Work Offline"]
  56. {
  57. display: none;
  58. }
  59. menuitem[label="Print Preview"]
  60. {
  61. display: none;
  62. }
  63. menuitem[command="Browser:OpenLocation"]
  64. {
  65. display: none;
  66. }
  67. menuitem[command="Browser:OpenFile"]
  68. {
  69. display: none;
  70. }
  71. menuitem[command="Browser:SendLink"]
  72. {
  73. display: none;
  74. }
  75. menuitem[command="cmd_pageSetup"]
  76. {
  77. display: none;
  78. }
  79. menuitem[command="cmd_print"]
  80. {
  81. display: none;
  82. }
  83. menuitem[oncommand^="BrowserImport();"]
  84. {
  85. display: none;
  86. }
  87. #context-savepageas
  88. {
  89.    display: none !important;
  90. }
  91. menuseparator
  92. {
  93. display:none;
  94. }
  95.  
  96.  
  97.  
  98. I am using this code
  99.  
  100.                                                                                                                             #context-savepageas
  101. {
  102.    display: none !important;
  103. }
  104.  
to remove that. but it's not working.




Thanks & Regards,
Karunanidhi.
Mar 22 '10 #1
1 3261
numberwhun
3,509 Recognized Expert Moderator Specialist
I am not sure about your question, but I do know that after 21 posts to the forums, you should be accustomed to using the code tags that are required around all code in forum posts. Please use them in the future!

Regards,

Jeff
Mar 22 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4196
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens in IE as well as FireFox. This code has been tested on a Win2003 server, IIS6, PHP 5.0.3, mySQL 4.1.8 and it works fine. The problem server is a Win2k server, IIS5, PHP 5.0.4, mySQL 4.1.11.
0
1527
by: Karuna | last post by:
Hi Am newbie to VB script. Am struck with a problem. I am trying to use an array of pages ( many pages added in "multipage" control). And am using a for loop sending each page item to a procedure and which would set the property of the page. But its failing. I get runtime error as : "Run time error :424
1
10545
by: Mark | last post by:
I am creating a search engine that will scan pages on my Web site. I do not want any false-positive hits, being defined as any match that does not appear on the page using a Web browser. I am using a string of regexp statements to do this. The first one removes anything before the <body> tag since it contains, among other things, general keywords and function definitions. The goal of the next one is to remove <script including...
2
1671
by: quitaxe | last post by:
hi i am facing this problem when i redirect to a asp page using - Response.redirect "mynext.asp" the problem is that the current page is using frames so this mynext.asp is also getting loaded in the frame itself. i need to remove all the frames and load this mynext.asp in the entire browser window. kind of like the <a href="mynext.htm" target="_top"> of html
6
1882
by: The Bicycling Guitarist | last post by:
I've used and loved the webmaster tools at Delorie.com for some years now. I just added some more text content to my home page, but in the web page "purifier" the text doesn't render as I thought it should. It looks fine in MSIE 6, lol. I didn't want the text to be centered, and specified a css class to clear the floats above and text-align to the left. Does it look that way for other people using other browsers than MSIE? If not, is it a...
3
2609
by: John | last post by:
Does anyone know how to simulate the right click "Save Target As" using MSHTML? I find that I can navigate through the LinksCollection on any given page but often these links are links to files (*.doc, *.xls etc). If I follow the link, it will open the document, but I am interested in saving it. Any ideas?
5
2012
by: Dave | last post by:
What is the benefit of using "as" vs the other? HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://www.contoso.com/"); vs. HttpWebRequest myReq = WebRequest.Create("http://www.contoso.com/") as HttpWebRequest;
5
5210
by: girishmat | last post by:
how to embed or open microsoft word file in a page using php script
3
3289
by: Aaron | last post by:
I'm trying to parse a table on a webpage to pull down some data I need. The page is based off of information entered into a form. when you submit the data from the form it displays a "Searching..." page then, refreshes and displays the table I want. I have code that grabs data from the page using cURL but when I look at the data it contains the "Searching..." page and not the table that I want. below is the code i have so far....Thanks...
3
2438
by: MrCorbeaux | last post by:
My "Email a Webpage" form works find except when the end user receives the email, the URL is text only and not a hyperlink. The "Email a Page" form calls the URL from the previous page using: <input type="hidden" name="URL" value="<%= Request.ServerVariables("HTTP_REFERER")%>"> The action page uses CDOsys to send the email: My abridged code: <%@LANGUAGE="VBSCRIPT"%> <% strFrom = Request.Form("FromEmail") strFromName =...
0
9665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10408
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10199
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7529
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4092
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3697
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.