David Wheatley

Results 95 comments of David Wheatley

In a project I'm working on, I've implemented this hack: ```ts const oldPushState = window.history.pushState; window.history.pushState = function (...args) { oldPushState.call(this, ...args); document.head.querySelectorAll('link[rel="canonical"]').forEach((link) => { if (link.getAttribute('href') !== window.location.href) {...

The reason I ran into this issue was that some analytics providers utilise the canonical, if present, instead of the actual URL, like Fathom. I wonder if we should remove...

I also agree. If we have a bug that has existed since early betas, that doesn't mean we should class it as expected behaviour now we're in stable. What's your...

@skiselkov Will this ever be merged?

Personally, I'd be more in favour with calling `requestAnimationFrame` on every screen refresh, like normal, but then using logic within the animation frame handler to control skipping a new render....

Yes. You're right. So Medium should switch to ads instead.

To be honest, I couldn't give a flying fuck. If medium cared that much, they'd make the hiding of articles even better, preventing this extension from working. They haven't, so...

Thank you! I get that people want to share their code and utilities but this is excessive. If @manojVivek doesn't want it gone, then they could at least change it...

Late reply: it's likely the font was updated on Google Fonts but the package hasn't been updated/you haven't updated your package locally yet.

This code is rather... interesting. I'm not sure how to go about doing validation for user preferences -- if I could be pointed in the right direction, I'd appreciate that....