Remember Me Easter Egg

Here’s a fun little easter egg to add to your WordPress login screen: make it so when you click the “Remember Me” checkbox that the song of the same name from Coco autoplays at the bottom of the login form:

Here’s a quick and dirty plugin that does it:

* Plugin Name: Remember Me
* Description: Play song from Coco when checking the Remember Me checkbox on the login screen.
* Plugin URI:
* Author: Weston Ruter
* Author URI:
* Gist Plugin URI:
add_action( 'login_footer', function() {
document.addEventListener( 'DOMContentLoaded', function() {
var checkbox = document.getElementById( 'rememberme' ), coco;
coco = document.createElement( 'div' ); = 'margin-top:50px; position:relative; width:100%; padding-bottom:57%;';
coco.innerHTML = '<iframe style="position:absolute; width:100%; height:100%; left:0; top:0;" src=";showinfo=0&amp;controls=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>';
checkbox.addEventListener( 'click', function() {
if ( checkbox.checked ) {
document.getElementById( 'loginform' ).appendChild( coco );
} else {
coco.parentNode.removeChild( coco );
} );
} );
} );

view raw


hosted with ❤ by GitHub

3 replies on “Remember Me Easter Egg”

Leave a Reply

Your email address will not be published. Required fields are marked *