alleycatboy

Results 9 comments of alleycatboy

> Right now this doesn't completely work; I don't understand the CSS that's causing a specific friend's URL to vanish completely (presumably because it's long and has no hyphen) and...

> Edit: Ah, this breaks one day a year. Not if we curry `processBlogCardLinks`! ```javascript const processBlogCardLinks = aprilFools => blogCardLinks => // other stuff !aprilFools && clonedIcon.setAttribute('fill', blogCardLink.style.color); ```...

Ah, then would setting `aprilFools` to `let` and moving it out of main to the top work?

Actually, tabbing around works fine 😅 Closing this issue.

Now using CSS selectors instead of directly adding/removing classes as suggested [here](https://github.com/AprilSylph/XKit-Rewritten/pull/898/commits/8ebcf10ac27cb382f0b0ee84fac3c1353930e13b).

> Now that I think about it, this could also be done by adding a data attribute to every post with its root id and making a css selector that...

Also it seems like there's an awful lot of processing going on in checking and adding/removing classes that may or may not already be there for every single post on...

> * `keyToCss()` is fast enough to be effectively free to call; feel free to use it inline. Extracting selectors as constants is good when it increases clarity, but doesn't...

This issue is addressed by PR #880!