question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Potential bug with StyloaiX AGENT_SHEET loading

See original GitHub issue

There’s a known [1] [2] problem with customizing tooltip pop outs in Firefox where some tooltips (e.g. home button,search,extension buttons) can’t be styled with the usual code in userChrome.css:

tooltip{
  -moz-appearance: none !important;
  background: red !important;
  color: blue !important;
}

The only way to make it work that i ever found was to “load the agent sheet before the first window has opened” which this loader unfortunately doesn’t support out of box(*.ag.css,*as.css), but previously in Firefox 78 ESR i was able to do it with StyloaiX with the same code as above.

Unfortunately after updating to FF ESR 91.8 (portable)/FF Developer Edition 100.0b2 (portable) and downloading newest loader/styloaix files, this no longer works:

working notworking

No matter if it’s AGENT/USER/AUTHOR it doesn’t seem to make a difference now. I’ve tested this on a different script loader mentioned in [2] and it works there without a problem, so i’m not sure if this is a bug or just intended drawback after some changes to loader/styloaix in the past year.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
xiaoxiaofloodcommented, Apr 21, 2022

if you try to turn off the whole style file in the popup window it doesn’t refresh in this scenario, at least while turning it off (turning it on applies correctly).

Thanks, fixed.

Also it looks like the file on/off state isn’t respected by editor window at all. You can apply any changes in it even if the edited file is turned off. From what i can tell this isn’t a new behavior and it acted the same way in pre-update version of StyloaiX.

It’s working as expected. Enabled/disabled is respected, it’s just that Instant Preview has higher priority. If preview is enabled, you want the style to be temporarily applied even if its state is disabled. As soon as you close Editor, style (preview) is removed.

If Instant Preview is not checked and you haven’t clicked Preview button, disabled styles will never be applied, even after being modified and saved.

0reactions
Sneakpeakcsscommented, Apr 21, 2022

It works! At least on my Win10 ESR91, thanks for a quick update.

image

There’s one marginal behavior i found, while it instantly applies the style on/off in editor window, if you try to turn off the whole style file in the popup window

image it doesn’t refresh in this scenario, at least while turning it off (turning it on applies correctly).

Also it looks like the file on/off state isn’t respected by editor window at all. You can apply any changes in it even if the edited file is turned off. From what i can tell this isn’t a new behavior and it acted the same way in pre-update version of StyloaiX.

At the end of the day unless someone edits files that are turned off then this is very marginal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found