This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Works in Chrome, Firefox, MSIE, Opera and Safari. | |
*/ | |
function onDOMContentLoaded( event ) { | |
if( event ) { | |
document.removeEventListener( event.type, onDOMContentLoaded, false ); | |
} | |
document.onreadystatechange = null; | |
// For testing purposes. | |
alert( "DOM Content Loaded" ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Replace existing definition in your wp-config.php | |
// define('WP_DEBUG',false); | |
if( !isset($_COOKIE['likeaboss']) and isset($_GET['likeaboss']) ) | |
setcookie('likeaboss',($_GET['likeaboss']=='fosho'?'fosho':false), time()+3600); | |
define('WP_DEBUG',((isset($_COOKIE['likeaboss']) and $_COOKIE['likeaboss']=='fosho')?true:false)); | |
// Drop ?likeaboss=fosho on your URL to enable WP_DEBUG for a bit | |