Greasy Fork is available in English.
Full Wall Tester. Idée et code de base d'Odul, voir ici: http://greasyfork.icu/en/scripts/1555-fullwall/code
当前为
// ==UserScript==
// @name DC - FullWall TESTER
// @namespace DreadCast
// @include http://www.dreadcast.net/Main
// @grant none
// @author Ianouf
// @date 14/03/2015
// @version 1.0
// @description Full Wall Tester. Idée et code de base d'Odul, voir ici: http://greasyfork.icu/en/scripts/1555-fullwall/code
// @compat Firefox, Chrome
// @require http://code.jquery.com/jquery-1.10.2.min.js
// ==/UserScript==
jQuery.noConflict();
Image = 'http://docs.google.com/uc?export=download&id=';
FullWalTab = new Array;
FullWalTab['IDBAT'] = 'C:\Chemin\vers\DC\monimage.jpg';
function getIdFromUrl(urlBat){
id = urlBat.split('_');
id = id[id.length-1].split('.');
id = id[0];
return id;
}
function getBackground(urlBat){
id = getIdFromUrl(urlBat);
if(FullWalTab[id]){
return backgroundBaseUrl+FullWalTab[id];
}
return null;
}
function changeBackground(newBackground){
jQuery('#carte_fond').css('background-image', 'url('+newBackground+')');
}
function changeBackgroundForBat(){
carte = jQuery('#carte_fond');
if(carte){
background = getBackground(jQuery('#carte_fond').css("background-image"));
if(background){
changeBackground(background);
}
}
}
jQuery(document).ready(function() {
changeBackgroundForBat();
});
Engine.prototype.displayMapInfoSave = Engine.prototype.displayMapInfo;
Engine.prototype.displayMapInfo = function (html,is_default,force_show,custom_type,callback) {
this.displayMapInfoSave(html,is_default,force_show,custom_type,callback);
changeBackgroundForBat();
}