It was brought to my attention that some style stopped working as userscript…
Fra 09.02.2024. Se den seneste versjonen.
Dette er versjoner av dette scriptet hvor koden ble oppdatert. Vis alle versjoner.
Just moved the (empty) comment back from within the document block before it, to confirm it breaks the conversion to JS.
ok, so removing comment before local part fixes it. so if the comment was not before, but inside the local part....
works with first comment removed. returning it and removing the second comment.
still borked, extra blank lines make no difference. removing first comment.
yup, without comments it worked. returning them back but adding extra blank lines.
still borked. removing comments yet again. expecting it to work.
still borked. making comments totally empty
still borked. removing content of comments, so they contain only two returns.
still borked. removing some linebreaks to have it even shorter.
So the problem occurs only when there are two comments, one before global and one before local part. Returning v32 but changing * to el in global.
was OK. returning first and removing second comment
yup, it worked. removing only first comment from 32.
still borked. omg. removing comments, expecting it will work again.
still borked. changing *:not(#a) to *
borked. changing *:not(#a) to *:not(#a)
still borked. simplifying rules further.
was borked, simplify more
was borked. simplifying global rule a bit.
was OK, both comments back, effectively restoring v32. should be borked.
was OK. comment before global part back, comment before local part out
was OK. comment before local part back
was borked. comments out.
was OK, first comment and rule back, rest of global part out
first comment and rule out
oops, last borked was 16, what am I doing here. restoring again.
actually previous versions were ok, restoring v15
still broken. reducing global part to bare bones, no nesting this time
v16 broken, simplifying global part a bit
still ok. returning comment before local part.
v14 was OK. returning first root-level comment.
Removed root-level comments.
v12 Still borked. Now removed only some insignificant white-space.
v11, still borked, simplifying non-global part to bare bones. (that is the part that propagated to JS.)
hm, removing comments apparently fixed it. restoring v9 and removing just a bit from last rule
...removed comments...
removed at-layer
Ha, v.7 borked. Simplify it now, if it keeps breaking...
1/3 "local" parts from the other style
Entire global part copypasted from the problematic style
So maybe at-layer?
Local part with nesting
No nesting, but slightly insane selector.
Changed to the global part to use CSS nesting selecor (&) to see if it breaks conversion. (So far was OK.)