uso-archive / data

Full mirror of UserStyles.org
https://uso.kkx.one
151 stars 12 forks source link

Theme options broken #51

Open loopy750 opened 11 months ago

loopy750 commented 11 months ago

After being mirrored from Userstyles, comments are being removed, including theme comments, eg: /*[[font]]*/

Changing settings on the theme therefore has no effect.

tophf commented 11 months ago

Apparently they've disabled the API to get the original CSS just to thwart our efforts. They even broke "Show CSS" button on their site.

loopy750 commented 11 months ago

Dang, thanks for the update. They really broke a lot of stuff with the major overhaul, including browsing with Firefox, as mentioned in the other thread. I even reported the issue, and am not one for a conspiracy, but it sure seems intentional.

Good to know I didn't do something wrong, but sucks that it means it's broken for everyone.

tophf commented 11 months ago

@33KK, here's an idea: make the API request for style sections using unique random values for style variables, then replace them in the result with /*[[name]]*/ comments.

33KK commented 11 months ago

@33KK, here's an idea: make the API request for style sections using unique random values for style variables, then replace them in the result with /*[[name]]*/ comments.

That's exactly what I am doing right now. Dropdowns are indeed broken though. Unless they changed anything else the other settings should work

33KK commented 11 months ago

Right, your styles only use dropdowns. That's why they are broken. Recovering dropdown options isn't trivial and I gave up on it because their website was (maybe still is) broken and didn't even parse sections correctly

tophf commented 11 months ago

The web site or do you use the API for getStyleCustomOptions?

33KK commented 11 months ago

I do what their site is doing

tophf commented 11 months ago

Then maybe there's another way? I've been using getStyleCustomOptions and it still works.