DC - Loader

Modification du loader de Dreadcast avec une image personnalisable

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name 		DC - Loader
// @namespace 		DreadCast
// @include 		http://www.dreadcast.net/Main
// @grant 		none
// @author 		Kmaschta
// @date 		04/04/2014
// @version 		1.3
// @description 	Modification du loader de Dreadcast avec une image personnalisable
// @compat 		Firefox, Chrome
// @require      	http://code.jquery.com/jquery-1.10.2.min.js
// ==/UserScript==

jQuery.noConflict();

jQuery(document).ready(function() {
	var img = "http://www.murious.in/images/loading.gif";
	
	// Retirer "background-size: cover;" pour que l'image ne soit pas étirée sur tout l'écran
	jQuery('#fond_chargement').attr('style', 'position: absolute; width: 100%; height: 100%; background: url("'+ img +'") no-repeat scroll center center black; background-size: cover; opacity: 0.5;');
	
	// Décommenter cette ligne pour effacer tout le texte et la barre de chargement
	// jQuery('#zone_chargement').children().not(jQuery('#fond_chargement')).remove();

	// Masquage du loader lorsqu'on appuie sur une touche du clavier
	jQuery(document).keypress(function(e) {
		jQuery('#zone_chargement').hide();
	});
});