Ask How can I make Firefox pop-ups floating?

Brajet

Emerald
DOLLAR$
$4,707.36
I really like both i3 and firefox. But one thing that drives me crazy is that pop-ups from firefox aren't floating. Often popups expect specific dimensions and look very strange if they are put in different dimensions, especially things like login dialogs for oauth. I have not been able to find any x properties that distinguish between popup and regular windows in firefox, so I don't know how to use a for_window rule to make pop-up windows floating (with chrome the window_role is "pop-up").
 
Sadly, Firefox doesn't make it easy because it doesn't label pop-ups differently at the window manager level. One way around it is to use i3's title or size-based rules. You can also write a small script using xprop and xdotool that detects new Firefox windows and floats ones with small dimensions automatically. It's a bit of extra work, but gives more control than relying on missing window roles.
 
Looking at how people handle it, Firefox will allow floating pop ups only when the site creates them with its own code. There's no built in option in the browser to make them float, so everything comes from how you design the pop up. Many users use a fixed position style so the pop up stays on top while scrolling. If the browser blocks it, you may need to adjust your script or ask users to allow pop ups.
 

RECOMMENDED COURSES

  • Create a Membership Site A-Z
    Create a Membership Site A-Z
    Build and Run Subscription Websites for Reliable, Recurring Income
    • BMF.io
    • Updated:
  • Start a Freelance Business A-Z
    Start a Freelance Business A-Z
    Becoming a freelancer is one of the easiest and fastest ways to start your own business.
    • BMF.io
    • Updated:
  • Digital Marketing A-Z
    Digital Marketing A-Z
    Digital marketing turns clicks into conversations—and conversations into loyal customers.
    • BMF.io
    • Updated:
  • Create an Online Course A-Z
    Create an Online Course A-Z
    Design, Develop, and Run Your Own Profitable & Engaging Online Training Program
    • BMF.io
    • Updated:
  • Group Coaching Program A-Z
    Group Coaching Program A-Z
    How to Design a Group Coaching Program That Expands Your Impact & Transforms Lives
    • BMF.io
    • Updated:
  • Affiliate Marketing A-Z
    Affiliate Marketing A-Z
    Affiliate marketing is when a merchant pays an affiliate for sales, clicks, or leads.
    • BMF.io
    • Updated:
Back
Top