ankit / stylebot

Change the appearance of the web instantly
https://stylebot.dev/
MIT License
1.38k stars 205 forks source link

[Bug] Stylesheet targeting same domains wipes existing one #720

Open ejisoo opened 1 year ago

ejisoo commented 1 year ago

Describe the bug

An active style sheet targeting existing domains will overwrite the existing style sheet.

Browser

Tested on

I've been using the extension and had the same issue for at least 3-4 major versions for both browsers.

To Reproduce

Steps to reproduce the behavior

:root {
  --black: #000;
}

The previous style is now gone!

Expected behavior

Some options:

  1. Warning that saving the style will overwrite the existing one.
  2. Merge
  3. Better: Merge but warn conflicting styles
  4. Best: Make the user able to name the style and if no name is provided, enumerate so in the style list you see something like
    yahoo.com
    yahoo.com (1)

Additional context

I try to be careful not to lose any work. Sync doesn't help in this case because I can accidentally sync the overwritten style. This has cost me a great number of custom styles...

milahu commented 6 months ago

just lost a half hour of work this is ridiculous, dataloss is a serious bug

possible solution: use crdt to sync between multiple stylebot css editors

related

sync