Skip to content

Dan Q

    • Articles
    • Everything
    • Notes
    • Reposts (shares)
    • Checkins (geo*)
    • Videos
    • Reviews
    • Comics
    • Tags
    • Stats
    • Subscribe
    • Blogroll
  • About
    • Semi-standard "slash pages" you might like to explore:
    • /about
    • /blank
    • /blogroll
    • /colophon
    • /contact
    • /cv
    • /events
    • /license
    • /pfp
    • /postcards
    • /privacy
    • /salary
    • /shh
    • /slashes
    • /stats
    • /subscribe
    • /where
    • Hide posts of type:
    • Choose how Dan's dressed:
    • Hair
    • T-Shirt
  • Contact
  • Podcast

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.

    Read more - about 4 minutes (736 words)

    • Reply
    • 2 comments
    • posted 20 February, 2025
  • A pop-up notification indicating that the terms have been updated. The message states that by accepting, users agree to the updated Terms of Service, which includes an arbitration provision and class action waiver. It also mentions the processing of user information as described in the Privacy Policy, including potential sharing with third parties about the use of Bloomberg.com. A button labeled "Accept" is provided for users to acknowledge the terms.

    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... ๐Ÿ˜ˆ

    Read more - about 3 minutes (695 words)

    • Repost
    • of this original
    • posted 17 February, 2025
  • 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.

    • Note
    • posted 11 December, 2024
  • A blog post being inhaled by an animGIF of Kirby.

    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.

    Read more (64 words)

    • Repost
    • of this original
    • posted 3 December, 2024
  • Me, hacking challenging Javascript at work: "Damn, I need a holiday."

    Full image of Dan sits at a laptop in a hotel bar, a view of Barcelona out of the window behind him, a beer bottle alongside him.
    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."

    • Note
    • posted 27 October, 2024
  • A blog comment by Pablo Picasso, in his blue period, of a ladybird saying "hi".

    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 (๐Ÿ†).

    Read more (300 words)

    • Article
    • 44 comments
    • posted 15 August, 2024
  • Overlay attempting to block content to the page beneath, saying "Try 1 year for just ยฃ9.99 and save 81%".

    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.

    Read more - about 3 minutes (507 words)

    • Article
    • 1 comment
    • posted 19 July, 2024
  • Partial dungeon battlemap with a "flower" theme, showing an unrevealed passage.

    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...

    Read more - about 5 minutes (1024 words)

    • Article
    • posted 24 May, 2024
  • Three different sandwiches float in a featureless white void.

    Reversing Sandwiches

    Userscripts are awesome, and you should be using them. Let me rotate some sandwiches for you to demonstrate their versatility!

    Read more - about 3 minutes (522 words)

    • Article
    • posted 5 April, 2024
  • DanQ.me in "Party Mode", with ludicrous colour patterns.

    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!

    Read more (100 words)

    • Article
    • 3 comments
    • posted 31 March, 2024
  • JigsawExplorer simultaneously showing a box top preview and a message saying the box top preview is disabled, superimposed with the message "LOL, no it ain't!"

    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...

    Read more - about 3 minutes (480 words)

    • Article
    • 15 comments
    • posted 28 March, 2024
  • Screenshot showing an expanded "theme switcher" menu on a Website.

    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.

    Read more - about 3 minutes (557 words)

    • Article
    • 3 comments
    • posted 6 February, 2024
  • Image representing post: Solving Jigidi... Again

    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).

    Read more - about 4 minutes (814 words)

    • Article
    • 28 comments
    • posted 20 March, 2023
  • Screenshot showing Sisyphus carrying a rock up a long numbered gameboard; he's on square 993 out of 1000, but (according to the rules printed below the board) he needs to land on 1000 exactly and never roll a double-1 or else he returns to the start.

    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?

    Read more (174 words)

    • Article
    • 39 comments
    • posted 21 November, 2022
  • 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

    Read more (36 words)

    • Note
    • 1 comment
    • posted 18 November, 2022

Posts navigation

Older posts
Newer posts

Get in Touch

I'd love to hear from you! Why not...

  • email me on blog@danq.me?
    (my spam filter is aggressive, so use a good subject line, i.e. not just "hello"; encrypt your email if you like)
  • say hi on Mastodon, where I'm @dan@danq.me?
  • send a letter or postcard to
    Dan Q, Unit 159610, PO Box 7169, Poole, BH15 9EL, UK
  • reach out some other way?
  • ยฉ Dan Q 1998-2026
  • Creative CommonsAttributionNon-Commercial except where stated (how to use)
  • powered by BloqClassicPressHTML5CSS3
  • privacy
  • Read articles, checkins, notes, reposts, and more...
  • @dan@danq.me
  • contact
  • subscribe
  • Dan Q
  • Creative Commons Attribution Non-Commercial license
  • ClassicPress
  • CSS is awesome
  • Created by a human, not by AI
  • LGBTQ+ pride flag (2018 progress variant)
  • Polyamory flag
  • Say no to Web3
  • Mastodon (it's like email... no, come back!)
  • Tested on Firefox
  • Best viewed on the Internet
  • PHP
  • Ruby
  • Debian
  • Caddy (webserver)
  • Find me on Melonland
  • Check out my GitHub
  • Three Rings - by volunteers, for volunteers, since 2002
  • I'm a fucking webmaster
  • Looks best at: any resolution!