remove autopagerize from contextual menu using stylish

User Help for Mozilla Firefox
Post Reply
ale82to
Posts: 46
Joined: February 14th, 2014, 6:26 am

remove autopagerize from contextual menu using stylish

Post by ale82to »

can please someone tell me how to remove autopagerize from contextual menu using stylish,see pic
https://onedrive.live.com/redir?resid=3 ... hoto%2cpng
thanks
Lemons
Posts: 8
Joined: February 7th, 2014, 2:07 pm

Re: remove autopagerize from contextual menu using stylish

Post by Lemons »

This isn't something that Stylish is capable of. Stylish edits webpages, not Firefox itself. The best you can do is look around in Autopagerize's own options and hope the developer of that addon was smart enough to include an option to turn off its context menu entry. If that isn't possible then you're probably stuck with it.
pirst
Posts: 206
Joined: January 2nd, 2008, 7:07 am
Contact:

Re: remove autopagerize from contextual menu using stylish

Post by pirst »

you can probably remove that entry by using userChrome.css

if you look into that addon main.js file there is part of the function called contextMenu.Menu. It looks like it uses approach to generate that context menu entry that is a bit more advanced than it's documented in mozilla's documentation.

I'm no programmer myself, but thats all there is to it - finding how the entry is called and disabling it by adding the entry to your userChrome.css file something like this:

Code: Select all

#AutoPagerize 
{
  display: none !important;
}
maybe

Code: Select all

.AutoPagerize
{
  display: none !important;
}


stylish is not needed for such task.
ale82to
Posts: 46
Joined: February 14th, 2014, 6:26 am

Re: remove autopagerize from contextual menu using stylish

Post by ale82to »

thanks for the reply but none of them worked unluckily.
t3l0zvxqIiXuzuH0
Posts: 92
Joined: August 17th, 2014, 5:57 am

Re: remove autopagerize from contextual menu using stylish

Post by t3l0zvxqIiXuzuH0 »

Lemons wrote:This isn't something that Stylish is capable of. Stylish edits webpages, not Firefox itself. The best you can do is look around in Autopagerize's own options and hope the developer of that addon was smart enough to include an option to turn off its context menu entry. If that isn't possible then you're probably stuck with it.
Wrong. Stylish is perfectly capable of editing parts of Firefox, you just have to know the id of the element.


I don't use Autopagerize but I have two possible solutions:

1. Put this in Stilish:

Code: Select all

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#contentAreaContextMenu > menuitem[label="AutoPagerize"] { display: none !important; }
2. Install MenuWizard.
User avatar
Frank Lion
Posts: 21177
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom
Contact:

Re: remove autopagerize from contextual menu using stylish

Post by Frank Lion »

Lemons wrote:This isn't something that Stylish is capable of. Stylish edits webpages...
.... in the Google Chrome version. The original Stylish works in Firefox for both content and chrome (UI) changes.
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)
.
Post Reply