Commit ba64f4a
committed
fix: auto-lift toggle button above reCAPTCHA badge
The floating star and reCAPTCHA v3 badge both default to the
bottom-right corner. Pages that embed reCAPTCHA (Greenhouse,
Workday, .gov forms, many ATS templates) end up with the two
gadgets overlapping — visible but click-fighting each other.
After createToggleButton, poll every 200 ms for up to 6 s looking
for .grecaptcha-badge. If found, bump our button's bottom from 24 px
to 90 px so it sits cleanly above the badge. Only applies when the
user hasn't dragged the button yet (drag-saved positions in
localStorage are honored verbatim).
Also cleaned up the temporary diagnostic logs now that the host-hiding
issue from #1 is confirmed fixed — kept the error-only path so init
exceptions still surface, and kept the silent self-healing
MutationObserver that re-appends the host if a SPA removes it.1 parent 8c92db0 commit ba64f4a
1 file changed
Lines changed: 25 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 43 | | |
55 | 44 | | |
56 | 45 | | |
| |||
2002 | 1991 | | |
2003 | 1992 | | |
2004 | 1993 | | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
2005 | 2013 | | |
2006 | 2014 | | |
2007 | 2015 | | |
| |||
4731 | 4739 | | |
4732 | 4740 | | |
4733 | 4741 | | |
4734 | | - | |
4735 | 4742 | | |
4736 | | - | |
4737 | | - | |
4738 | 4743 | | |
| 4744 | + | |
| 4745 | + | |
| 4746 | + | |
4739 | 4747 | | |
4740 | 4748 | | |
4741 | | - | |
4742 | | - | |
| 4749 | + | |
| 4750 | + | |
4743 | 4751 | | |
4744 | 4752 | | |
4745 | 4753 | | |
4746 | 4754 | | |
4747 | | - | |
4748 | | - | |
4749 | | - | |
4750 | | - | |
| 4755 | + | |
4751 | 4756 | | |
4752 | 4757 | | |
4753 | 4758 | | |
| |||
0 commit comments