{"size": 509, "ext": "js", "max_stars_repo_path": "bottom_bar_sizing.js", "max_stars_repo_name": "khonkhortisan/No-Distractions-Full-Screen", "max_stars_repo_stars_event_min_datetime": "2020-10-20T14:53:50.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-08T16:57:39.000Z", "max_issues_repo_path": "bottom_bar_sizing.js", "max_issues_repo_name": "khonkhortisan/No-Distractions-Full-Screen", "max_issues_repo_issues_event_min_datetime": "2020-03-07T06:33:54.000Z", "max_issues_repo_issues_event_max_datetime": "2020-10-04T10:06:53.000Z", "max_forks_repo_path": "bottom_bar_sizing.js", "max_forks_repo_name": "khonkhortisan/No-Distractions-Full-Screen", "max_forks_repo_forks_event_min_datetime": "2020-10-20T14:53:52.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-28T18:41:52.000Z"}
{"max_stars_count": 15, "max_issues_count": 22, "max_forks_count": 3, "avg_line_length": 29.9411764706, "max_line_length": 68, "alphanum_fraction": 0.7249508841}
//No Distractions Full Screen v4.0
//Called from resize events and mutation observer in parent
//var scale = 2; //called from python
function resize(){
    document.body.style.zoom = scale/window.devicePixelRatio;
}

function changeScale(x){ //called from parent
  scale = x;
  resize();
}

//Hack to remove wallpaper applied by Dancing Baloney addon
//$('body').append('<style>.before::before {content:none}</style>');
//$('body').addClass('before')

window.visualViewport.addEventListener('resize', resize);