Thimbleweed Park™ fixes

Fixes menu position and improves performance (deactivates fireflies).

// ==UserScript==

// @name         Thimbleweed Park™ fixes
// @namespace    NorTreblig
// @version      0.1
// @description  Fixes menu position and improves performance (deactivates fireflies).
// @author       Nor Treblig

// @match        http://thimbleweedpark.com/*
// @match        https://thimbleweedpark.com/*

// @grant        none

// ==/UserScript==
/* jshint -W097 */
'use strict';

function main()
{
	// disable static header
	jQuery(".menu").css({ "position": "absolute" });

	if (jQuery.firefly)
	{
		// disable fireflies (performance tweak)
		jQuery(jQuery.firefly.settings.on + ' img').stop();
		// replace animated GIF with static image (performance tweak)
		jQuery(".layer3").css({ "background": "url('https://storage.googleapis.com/images.thimbleweedpark.com/www/layer3.png') no-repeat top center" });
	}
};

jQuery(document).ready(main);