Unfix Fixed Position Element on Firefox Context Menu

Add new item to top of right-click context menu to override position:fixed on elements in a page.

As of 2021-09-17. See the latest version.

نووسەر
Jefferson Scher
Ratings
0 0 0
وەشان
0.5.1
Created
2016-12-31
Updated
2021-09-17
Size
4.79 KB
مۆڵەت
BSD 3-clause
Applies to
هەموو سایتەکان

Experimental script for Firefox to get fixed position elements like menu bars out of your way. On most sites, setting them to Static will return them to their normal positions. In some cases, you may need to hide them if that doesn't work.

Note: If the site uses a custom context menu, this script backs off and does not modify the context menu.

Note: I don't know how to change the position of the new items on the menu.

Firefox 85+

In about:config, double-click the dom.menuitem.enabled preference to switch it to true if you want user scripts and website scripts to be able to add items to the context menu. (Ref. https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/contextMenu#browser_compatibility )