DC - Loader

Modification du loader de Dreadcast avec une image personnalisable

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==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();
	});
});