Hello, Aris.
For a long time I have been using custom CCS code to hide elements from the interface that I do not use, and I had never had any problems.
Until now, when trying to hide elements of the context menu of bookmarks from the bookmarks toolbar.
This is my code, the one that works: (107 lines)
Code: Select all
#ctraddon_pw_cssoverridec { height: 505px }
#PlacesToolbar, #prefbar-toolbaritem { padding-bottom: 6px }
arrowscrollbox autorepeatbutton { height: 26px }
#personal-bookmarks toolbarbutton.bookmark-item[image]:not([image=""]) .toolbarbutton-text
{ display: none !important; }
#personal-bookmarks toolbarbutton.bookmark-item[image]:not([image=""]) .toolbarbutton-icon
{ margin-right: 0px !important; }
#personal-bookmarks toolbarbutton.bookmark-item:not([image]) .toolbarbutton-icon,
#personal-bookmarks toolbarbutton.bookmark-item[image=""] .toolbarbutton-icon
{ display: none !important; }
#personal-bookmarks toolbarbutton.bookmark-item[container="true"] .toolbarbutton-menu-dropmarker
{ display: -moz-box !important;
margin-left: 1px !important; }
.searchbar-search-button[addengines="true"]
{ list-style-image: url("chrome://browser/skin/search-indicator.png") !important;}
#addEngines,
#alltabs-popup-separator-1,
#alltabs-popup-separator-2,
#alltabs_undoCloseTab,
#appMenuClearRecentHistory,
#appMenuRestoreLastSession,
#appMenuViewHistorySidebar,
#autoDesktop,
#BMB_bookmarksShowAllTop + menuseparator,
#BMB_bookmarksShowAllTop,
#BMB_recentBookmarks + menuseparator,
#BMB_recentBookmarks,
#BMB_viewBookmarksSidebar,
#BMB_viewBookmarksToolbar + menuseparator,
#BMB_viewBookmarksToolbar,
#category-discover,
#category-service,
#checkForUpdatesButton,
#clearDownloadsButton,
#context-back,
#context-bookmarkpage,
#context-forward,
#context-reload,
#context-savepage,
#context-sendpagetodevice,
#context-sep-sendpagetodevice,
#context-sep-viewbgimage,
#context-stop,
#context_bookmarkAllTabs,
#context_closeOtherTabs + menuseparator,
#context_closeOtherTabs,
#context_closeTab,
#context_closeTabsToTheEnd,
#context_openTabInWindow + menuseparator,
#context_reloadAllTabs,
#context_reloadTab,
#context_sendTabToDevice + menuseparator,
#context_sendTabToDevice,
#context_sendTabToDevice_separator,
#context_toggleMuteTab + menuseparator,
#context_undoCloseTab,
#ctraddon_addons_button,
#ctraddon_button_fx52,
#ctraddon_button_fx57,
#ctraddon_button_wf,
#ctraddon_connavsep,
#ctraddon_menu_find,
#ctraddon_menu_findAgain,
#ctraddon_menu_find_sep,
#ctraddon_pw_acr_note,
#ctr_pw_button_arrow_right,
#customization-lwtheme-button,
#customization-titlebar-visibility-checkbox,
#editBMPanel_loadInSidebarCheckbox,
#endHistorySeparator,
#getthemes-learnmore-link,
#gm_general_menu,
#high-priority-global-notificationbox,
#keyconfig,
#menu_showAllHistory ~ .bookmark-item,
#PanelUI-fxa-label,
#PanelUI-help,
#PanelUI-historyItems-separator,
#PanelUI-recentlyClosedTabs-separator,
#performanceCategory,
#performanceGroup,
#releasenotes,
#restoreDefaultSearchEngines,
.search-add-engines,
.search-go-button,
#sidebarMenu-popup subviewbutton,
#startHistorySeparator,
.textbox-search-clear,
.textbox-search-icon,
#toggle_ctraddon_addon-bar,
#toggle_ctraddon_extra-bar,
#toggle_nav-bar,
#toolbar-context-bookmarkAllTabs,
#toolbar-context-reloadAllTabs,
#toolbar-context-undoCloseTab + menuseparator,
#toolbar-context-undoCloseTab,
#updateOthers,
#urlBarSuggestion,
#utils-autoUpdateDefault,
#utils-menu menuseparator,
#utils-resetAddonUpdatesToAutomatic
{ display: none }
I want to add this to the list of hidden elements:
Code: Select all
#placesContext_new:bookmark,
#placesContext_open,
#placesContext_open:newprivatewindow,
#placesContext_open:newtab,
#placesContext_open:newwindow,
#placesContext_openSeparator,
but if I add another 6 lines, everything stops working, as if it were deactivated.
In fact, it only works if I add up to one (1) more line (up to 108 lines).
Is there a limit for the custom CCS code? Or could it be that my profile is corrupt?
*edit: typo