Disable ALL keyshortcuts in Mozilla Firebird?

User Help for Mozilla Firefox
Grilla
Guest

Disable ALL keyshortcuts in Mozilla Firebird?

Post by Grilla »

How do i disable ALL keyboardshortcuts like Ctrl-U, F11 and so on exept F5 in Mozilla Firebird?
Guest
Guest

Post by Guest »

I also need help in removeing some options from the rightclickmenu.
I just want Back, Forward, Reload and Stop in this menu...
Guest
Guest

Post by Guest »

and rightclicks on links or images should do nothing at all...

Sorry for many posts.
old momokatte
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by old momokatte »

User avatar
mai9
Posts: 1619
Joined: January 15th, 2003, 3:41 pm
Location: Barcelona
Contact:

Post by mai9 »

here's a list of everything I remove:

Code: Select all

/* =============== Remove Items In Context Menu: WEB PAGE */
/* #context-back, /* "Back" */
#context-forward, /* "Forward" */
#context-reload, /* "Reload" */
#context-stop, /* "Stop" */
#context-sep-stop, /* Separator Below "Stop" */
#context-bookmarkpage, /* "Bookmark This Page..." */
#context-savepage, /* "Save Page As..." */
#context-sendpage, /* "Send Page..." */
/* =============== Remove Items In Context Menu: LINKS */
#context-openlink, /* "Open Link in New Window" */
#context-openlinkintab, /* "Open Link in New Tab" */
#context-sep-open, /* Separator Below "Open Link in New..." */
/* #context-bookmarklink, /* "Bookmark This Link..." */
/* #context-savelink, /* "Save Link to Disk..." */
#context-sendlink, /* "Send Link..." */
/* #context-copylink, /* "Copy Link Location" */
/* #context-copyemail, /* "Copy Email Address" */
/* #context-sep-copylink, /* Separator Below Link Items */
/* =============== Remove Items In Context Menu: IMAGES */
#context-viewimage, /* "View Image" */
#context-copyimage, /* "Copy Image Location" */
#context-sep-copyimage, /* Separator Below "Copy Image location" */
/* #context-saveimage, /* "Save Image As..." */
#context-sendimage, /* "Send Image..." */
#context-setWallpaper, /* "Set As Wallpaper" */
#context-blockimage, /* "Block Images from this Server" */
#context-sep-viewbgimage, /* Separator Above "View Background Image" */
#context-viewbgimage, /* "View Background Image" */
/* =============== Remove Items In Context Menu: TEXT */
/* #context-undo, /* "Undo" */
/* #context-sep-undo, /* Separator Below "Undo" */
/* #context-cut, /* "Cut" */
/* #context-copy, /* "Copy" */
/* #context-paste, /* "Paste" */
/* #context-delete, /* "Delete" */
/* #context-sep-paste,  /* "Separator Below "Delete" */
#context-selectall,  /* "Select All" */
#context-sep-selectall,  /* "Separator Below "Select All" */
#context-searchselect, /* "Web Search  for..." */
/* #context-viewpartialsource-selection, /* "View Selection Source" */
/* =============== Remove Items In Context Menu: EXTRA */
/* menu[id="frame"], /* "This Frame" */
#context-sep-frame, /* Separator Above "This Frame" NOT WORKING */
/* #context-viewpartialsource-mathml, /* "View MathML Source" */
/* #context-sep-properties, /* Separator Above Properties Items */
/* #context-viewsource, /* "View Page Source" */
/* #context-viewinfo, /* "View Page Info" */
/* #context-metadata, /* "Properties" */
/* #NeedleSearch-menu, /* "NeedleSearch" (extension) */
#blogthis-sep /* Separator Above "BlogThis" (extension) */
{ display: none; !important; }

/* Hide browser menus
#navigator-toolbox menu[label="File"], */
#navigator-toolbox menu[label="Edit"],
#navigator-toolbox menu[label="View"],
#navigator-toolbox menu[label="Go"],
/* #navigator-toolbox menu[label="Bookmarks"], */
/* #navigator-toolbox menu[label="Tools"], */
#navigator-toolbox menu[label="Help"]
{ display: none !important; }

/* Hide all menu bar
#toolbar-menubar { display: none !important; } */

/* Hide "Add to Bookmarks" and "Manage Bookmarks" in bookmarks menu */
menuitem[label="Add to Bookmarks..."],
menuitem[label="Manage Bookmarks..."],
menuitem[label="Manage Bookmarks..."] + menuseparator { display: none !important; }

/* Hide last item "Open in Tabs" in bookmarks menu */
#openintabs-menuseparator,
#openintabs-menuitem { display: none !important; }

/* Remove the 'Go' word in Go Button */
#go-button > .button-box > .button-text { display: none !important; }

/* Remove the link in status bar for AdBlock extension
statusbarpanel[id="adblock-status"] { display:none !important; } */

/* Remove Close Button in Tabbar */
.tabs-closebutton { display:none !important; }

/* Remove arrow in search bar */
.search-proxy-button-dropmarker { display:none !important; }

/* no Back/Forward drop-down arrows */
.toolbarbutton-menubutton-dropmarker { display: none !important; }

/* Remove stop button when there's nothing to stop
#stop-button[disabled="true"] { display: none; } */

/* Remove separators in bookmarks menu
menuitem.bookmark-item + menuseparator,
menu.bookmark-item + menuseparator { display: none !important;} */

/* Toolbars without borders */
menubar, toolbox, toolbar {border-style: none !important; }

/* Don't display icons in tabs
.tabbrowser-tabs .tab-icon { display: none; } */

/* Remove the link in status bar for AdBlock extension */
statusbarpanel[id="adblock-status"] { display:none !important; }


I think that to disable shortcuts you will need to hack the program, some jar probably.
Last edited by mai9 on December 11th, 2003, 5:45 am, edited 1 time in total.
User avatar
!!!!cdn!
Posts: 250
Joined: December 7th, 2003, 2:58 pm
Location: Latitude 53ish
Contact:

[ 32 ]

Post by !!!!cdn! »

disabling <key>s is just a matter of assigning their command to ""

see: http://forums.mozillazine.org/viewtopic ... key#265628
Grilla
Guest

Re: [ 32 ]

Post by Grilla »

!!!!cdn! wrote:disabling <key>s is just a matter of assigning their command to ""

see: http://forums.mozillazine.org/viewtopic ... key#265628


Thanks.
In what file should i put that?
User avatar
!!!!cdn!
Posts: 250
Joined: December 7th, 2003, 2:58 pm
Location: Latitude 53ish
Contact:

[ 33 ]

Post by !!!!cdn! »

you need to create an extension to Firebird for this - it is NOT a simple user file edit

or if you're feeling brave hack browser.xul, and remove all keys that you don't want, this isn't as portable though
Guest
Guest

Re: [ 33 ]

Post by Guest »

!!!!cdn! wrote:you need to create an extension to Firebird for this - it is NOT a simple user file edit

or if you're feeling brave hack browser.xul, and remove all keys that you don't want, this isn't as portable though


In the other tread:

don't script it

just use an overlay, thus :

Code:

<?xml version="1.0"?>

<overlay id="unF11Overlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<keyset id="mainKeyset">
<key id="key_fullScreen" keycode="VK_F11" command=""/>
</keyset>

</overlay>

Didn't he mean that this should be put in a file?
Which file?
User avatar
!!!!cdn!
Posts: 250
Joined: December 7th, 2003, 2:58 pm
Location: Latitude 53ish
Contact:

[ 34 ]

Post by !!!!cdn! »

any xul filename you like, if it's an extension, see : http://forums.mozillazine.org/viewtopic ... 837#291837
Grilla
Guest

Post by Grilla »

!!!!cdn!:
contents.rdf and contextSourceLink.xul zipped up as contextSourceLink.jar
that plus install.js zipped up as contextSourceLink.xpi

How do i do this?

I've never done a Mozilla Firebird extension before.
User avatar
!!!!cdn!
Posts: 250
Joined: December 7th, 2003, 2:58 pm
Location: Latitude 53ish
Contact:

[ 48 ]

Post by !!!!cdn! »

http://downloads.mozdev.org/cdn/nokeys/nokeys.xpi

only overrides browser.xul specified keys, and only those with command or oncommand

[url]view-source:chrome://browser/content/browser.xul[/url]

no guarantees that this will work
!!!!cdn!
-- http://extensionroom.mozdev.org/#chromedit -- http://themes.mozdev.org/ --
Mozilla/5.0 (X11; U; Linux i686; en-*; rv:*.*) Gecko/200*mmdd Mozilla Firebird/*.*
Grilla
Guest

Re: [ 48 ]

Post by Grilla »

!!!!cdn! wrote:http://downloads.mozdev.org/cdn/nokeys/nokeys.xpi

only overrides browser.xul specified keys, and only those with command or oncommand

[url]view-source:chrome://browser/content/browser.xul[/url]

no guarantees that this will work


That didnt work.
The extension doesnt show up in Extensions ín the options menu.
The keys still work.
And i now have a red text at the bottom of my brower saying:
key="&newNavigatorCmd.key;"
---------------^

Whats wrong and how do i remove this red text?
It shows up for all users.
User avatar
!!!!cdn!
Posts: 250
Joined: December 7th, 2003, 2:58 pm
Location: Latitude 53ish
Contact:

[ 77 ]

Post by !!!!cdn! »

The extension was deliberately made not to show up in the extensions panel, since you may not want users to be able to disable it.

Keys still work because you have that red localisation error, which means you have to do some work as well : )

When you have this fixed, it ought to work.

Looking at the source ...

I appear to have left out the <!DOCTYPE > section : ]

Code: Select all

<!DOCTYPE overlay [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
<!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
%browserDTD;
<!ENTITY % globalRegionDTD SYSTEM "chrome://global-region/locale/region.dtd">
%globalRegionDTD;
<!ENTITY % charsetDTD SYSTEM "chrome://global/locale/charsetOverlay.dtd" >
%charsetDTD;
]>


add this to the top of nokeys.xul

or wait for mirrors to update the xpi
!!!!cdn!
-- http://extensionroom.mozdev.org/#chromedit -- http://themes.mozdev.org/ --
Mozilla/5.0 (X11; U; Linux i686; en-*; rv:*.*) Gecko/200*mmdd Mozilla Firebird/*.*
Guest
Guest

Re: [ 77 ]

Post by Guest »

!!!!cdn! wrote:The extension was deliberately made not to show up in the extensions panel, since you may not want users to be able to disable it.

Keys still work because you have that red localisation error, which means you have to do some work as well : )

When you have this fixed, it ought to work.

Looking at the source ...

I appear to have left out the <!DOCTYPE > section : ]

Code: Select all

<!DOCTYPE overlay [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
<!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
%browserDTD;
<!ENTITY % globalRegionDTD SYSTEM "chrome://global-region/locale/region.dtd">
%globalRegionDTD;
<!ENTITY % charsetDTD SYSTEM "chrome://global/locale/charsetOverlay.dtd" >
%charsetDTD;
]>


add this to the top of nokeys.xul

or wait for mirrors to update the xpi


Well... i cant seem to find a nokeys.xul on my system, som i have to wait for the mirrors.
How long does it usually takes before its updated?
Post Reply