Skip to content

Instantly share code, notes, and snippets.

@jrdn91
Created November 20, 2013 21:36
Show Gist options
  • Save jrdn91/7571510 to your computer and use it in GitHub Desktop.
Save jrdn91/7571510 to your computer and use it in GitHub Desktop.
I wrote this little snippet to account for Firefox 22+ scaling sites larger on Windows to honor window DPI scaling settings. Requires the browser plugin found here... http://jquery.thewikies.com/browser/
var windows = (navigator.platform.toLowerCase() == 'win16' || navigator.platform.toLowerCase() == 'win32') ? true : false;
console.log(windows);
if($.browser.name == 'firefox' && $.browser.versionNumber >= 22 && windows == true){
$('html').css('-moz-transform', 'scale(0.8)');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment