Tag: javascript
-
Reply to Vika, re: Content-Security-Policy
Vika shared her frustrations with Content-Security-Policy nonces when delivering pre-generated/cached content. I've had a similar fight, so I've written-up a few of the things I tried and what I learned as a result.
-
Bloomberg's Terms
Chris Messina remarked about the insane terms and conditions that Bloomberg.com require you to agree to in order to read a news article, effectively signing away your rights. Except... I don't see the dialog: I just see the articles. I haven't given consent, and they can't conceivably prove to the contrary... ๐
-
Today I learned that you can use
reportValidity()on a HTML5 input of e.g.type="email"to force the browser to run it's own validation, without waiting for the containing form to be submitted (which in some cases might not happen, e.g. if you're handling input using JS).That's cool.
-
kirby vs. this blog post
mgx shows off a cute use of Javascript to make a fun blog post post more-fun, all the while helping to keep the Internet fun and weird.
-
Me, hacking challenging Javascript at work: "Damn, I need a holiday."
Alt
Dan sits at a laptop in a hotel bar, a view of Barcelona out of the window behind him, a beer bottle alongside him.
Me, hacking challenging Javascript on sabbatical: "Ah, so relaxing."
-
Draw Me a Comment!
Instead of typing a comment for me to read, you can now draw one! Please don't make me regret this, Internet (๐).
-
Good Food, Bad Authorisation
(BBC) Good Food has started adding "premium" content for which you have to install their app and pay for a subscription. Except the paywall they've put in place is so weak that I fell through it without even meaning to. It's a great - and relatively harmless - example of how front-end-first development is undermining the development of secure Web systems.
-
Multi-Phase Maps in FoundryVTT
Using FoundryVTT's powerful API and a little bit of JavaScript code, we can easily produce a battlemap that changes through a series of phases as the adventure progresses. Here's how...
-
Reversing Sandwiches
Userscripts are awesome, and you should be using them. Let me rotate some sandwiches for you to demonstrate their versatility!
-
April Features!
The start of April's a perfect time for a "Spring refresh" of a personal website. This year, I'm enabling a handful of experimental new features; visit DanQ.me and you might randomly be selected to try one out!
-
Quickly Solving JigsawExplorer Puzzles
A fellow jigsaw-hating geocacher, familiar with my work on Jigidi, challenged me to find a way to bypass JigsawExplorer too. Here's what I came up with...
-
Shiftless Progressive Enhancement
Today a 7-year-old helped remind me that progressive enhancement doesn't have to mean render-blocking DOM manipulation nor ugly layout shifts.
-
Solving Jigidi... Again
The Jigidi jigsaw solver I wrote a year and a half ago stopped working, so I made another one (it's not as good).
-
Sisyphus: The Board Game (Digital Edition)
I implemented a terrible digital version of a truly stupid board game idea. My excuse is illness, I guess?
-
Finally got around to implementing a super-lightweight (~20 lines of code, 1 dependency) Spring '83 key generator. There are plenty of others; nobody needs this one, but it's free if you want it:
https://github.com/Dan-Q/spring83-keygen









