2024-08-17 22:59:20

YES! I DID IT!!!

plugin actions from Turbo Admin.

I wanted this for SO long. It was harder than you'd think.

Will be in a release soon.

And yes, plugins do weird stuff that might mean this is messy. I don't care. I do the basics. I can't handle every situation. It's flippin dark magic as it is!!

2024-08-17 12:43:18

šŸ˜€ I donā€™t mean to be trite or dismissive of all the bad stuff in the world, but we need to laugh more and be excited about small things.

I love Dave and Chris on Shop Talk Show podcast. They just sound like theyā€™re having a good time chatting.

I love The Vergecast. Theyā€™re enjoying hanging out.

So much ā€œcontentā€ is stale and boring and safe.

I want to hear more people enjoying themselves.

2024-08-17 00:02:59

JavaScript question/helpā€¦

Context: Iā€™m building a bunch of DOM elements from an array of configuration objects.

The objects might have callbacks that need to be called on events on the created DOM elements.

Question: Is it OK to just add the callbacks as ā€œcustom propertiesā€ on the DOM elements when creating them? Is that bad for some reason? Is there a better way?

Thanks in advance.

P.S. This is vanilla JS. No framework!!

2024-08-14 13:55:06

Turbo Admin for update today. v1.16.0 fixes a bug discovered by Phil Kurth (philkurth.com.au/) – thank you – and introduces a new menu-hiding feature.

This is great if you have a cluttered left-hand admin menu. You can alt/option-click items to move them to a new expandable section and then just access those items using the command palette! Yay! This is early/experimental – let me know what you think.

Docs: turbo-admin.com/hide-menu-item

2024-08-11 22:48:12

Creating a settings page for a browser extension isn't that hard after all. Mostly re-used code from the pop-up.

This opens up whole worlds of stuff for Turbo Admin!!!

2024-08-11 15:04:19

Nice thingsā€¦

2) For some weird reason I never discovered the Logitech wired game controller I bought a while back didnā€™t work with some games on my Mac. But I finally bought an 8Bitdo wireless controller and itā€™s a really nice bit of kit and has got me playing No Mans Sky again. Itā€™s so much better on the Mac than the Switch. Making me happy!!

2024-08-11 14:59:48

Nice thingsā€¦

1) Our recent holiday was at this place: https://www.bournemouthbeachlodges.co.uk/

The lodges are really cute and well designed and equipped. Was great with 12+8 yo, but I think it would be hard with older kids as there are no ā€œroomsā€. Itā€™s like a two-storey open plan caravan. But we were quite happy there! šŸ˜ƒ

Recommended!!

2024-08-11 10:23:45

LOL. Well done Reform UKā€™s web developers, who were using a Facebook tracking pixel without consent.

ā€œIt said the tracking tool had been embedded because Reformā€™s site was made using a template that included itā€

ā€œA spokesperson for the party said any issues with the Meta pixel appeared to be ā€œcock-up rather than conspiracyā€.ā€

Amateurs. šŸ™„

https://www.theguardian.com/politics/artic

2024-08-10 15:35:00

Was gonna see if I could quickly add plugin activate/dectivate to Turbo Admin's command palette, but turns out it needs some bigger changes to make that happen.

I know how to do it now though. And I know it's possible. So it WILL be on the roadmap!

2024-08-10 12:27:35

Trying to get the REST API to let me activate/deactivate a plugin using login cookies and a nonce.

Still getting 401 responses – unauthorized.

Is this simply not possible? Is it required to have an application password or something?

2024-08-09 21:04:45

I'm not sure I like this now that I've build it into Turbo Admin. Will have to see. (There's some niggles to fix first too)

It may be that it's better for where you have plugins that insist on having their own top-level menu item.

Reminder: The hidden items AND the open/closed state is saved not just within one site, but across all sites (if you use the browser extension).

So you can, for example, hide Yoast SEO *everywhere*!

2024-08-09 13:45:00

I did a holiday!!

I never announce this until itā€™s over. But weā€™re home. So yay for beaches and beach lodges and games and ice creams.