Skip to content

Instantly share code, notes, and snippets.

@paseto
Created January 16, 2019 18:01
Show Gist options
  • Save paseto/e8d09240500b8557013a767120a6da11 to your computer and use it in GitHub Desktop.
Save paseto/e8d09240500b8557013a767120a6da11 to your computer and use it in GitHub Desktop.
ios9hack.js
function iOSversion(){if(/iP(hone|od|ad)/.test(navigator.platform)){var t=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3]||0,10)]}return"Not ios"}var version=iOSversion();9<=version[0]&&version[0]<10&&($('.flex-row.row > [class*="col-"]').css("flex-direction","initial"),$('div[data-section="header"]').attr("style","flex:1 0 auto;"),$("div.snippet-container.body-content").attr("style","flex:1 0 auto;"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment