Skip to content

Instantly share code, notes, and snippets.

View audrasjb's full-sized avatar

Jb Audras audrasjb

View GitHub Profile
@audrasjb
audrasjb / who-youtube-embed-nocookie.php
Created January 29, 2025 13:19
Force no-cookie domain for Youtube embeds
<?php
/*
Plugin Name: Force no-cookie domain for Youtube embeds.
Plugin URI: https://whodunit.fr
Description: Forces no-cookie domain on every Youtube embed.
Author: Whodunit
Version: 1.0
Author URI: https://whodunit.fr
*/
@audrasjb
audrasjb / blueprint-force-youtube-nocookie.json
Created January 29, 2025 13:27
WP Playground blueprint for running the Who Force No-cookies Youtube Embed plugin
{
"landingPage": "/",
"login": true,
"plugins": [
"https://jeanbaptisteaudras.com/playground/who-youtube-embed-nocookie.zip"
],
"siteOptions": {
"blogname": "Youtube without cookies"
}
}
@audrasjb
audrasjb / who-yoast-reading-time-shortcode.php
Created February 27, 2025 14:17
Adds Yoast reading time post meta in a shortcode: [yoast-reading-time]
<?php
/**
* Plugin Name: Yoast Reading Time Shortcode
* Description: Adds Yoast reading time post meta in a shortcode.
* Author: Jb Audras @ Whodunit
* Version: 0.1
* Author URI: https://whodunit.fr
*/
/**