DC - Loader

Modification du loader de Dreadcast avec une image personnalisable

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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();
	});
});