Skip to content

Instantly share code, notes, and snippets.

@yratof
Created January 22, 2015 13:29
Show Gist options
  • Save yratof/c0346890206c2644022d to your computer and use it in GitHub Desktop.
Save yratof/c0346890206c2644022d to your computer and use it in GitHub Desktop.
Three Finger Tap on Android Device to see Modernizr Classes
<script type="text/javascript">/* Three Finger Tap on Android to see <html> Classes. Perfect for Modernizr */if(/android/gi.test(navigator.appVersion)){console={_log:[],log:function(){var e=[];for(var t=0;t<arguments.length;t++){e.push(arguments[t])}this._log.push(e.join(", "))},trace:function(){var e;try{throw new Error}catch(t){e=t.stack}console.log("console.trace()\n"+e.split("\n").slice(2).join(" \n"))},dir:function(e){console.log("Content of "+e);for(var t in e){var n=typeof e[t]==="function"?"function":e[t];console.log(' -"'+t+'" -> "'+n+'"')}},show:function(){alert(this._log.join("\n"));this._log=[]}};window.onerror=function(e,t,n){console.log('ERROR: "'+e+'" at "'+'", line '+n)};window.addEventListener("touchstart",function(e){if(e.touches.length===3){console.log($("html").attr("class"));console.show()}})}</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment