Warpten (./101) :
Oué alors mine de rien je connais toujours pas l'url du boo grayscale moi
// ==UserScript== // @name BooGray4 // @namespace http://www.yaronet.com/* // @description Affiche le Boo en niveau de gris à la place du Boo default // @version 1 // @grant none // ==/UserScript== $(document).ready(function() { var newBoo = "http://yaronet.org/227/layout/html/boo/pixel.png"; var currentBoo = $('#yn-boo').attr('src').split('/').pop(); if ((currentBoo === "default.png") || (currentBoo === "sleep.png")) { $('#yn-boo').attr('src', newBoo); } });Que faut-il changer pour s'affranchir du "227" anti-crontrolf5isation ?
squalyl (./113) :Si si, j'ai juste rajouté un contour noir.
c'est pas la fonte de la TI, faut 5x3, 7x5 et 10x8
Folco (./115) :Bon, j'ai utilisé ma copie de boo sur mirari. Par contre, je ne comprends pas comment Meowcate récupère l'url de l'actuel avec $('#yn-boo'), pour moi c'est du chinois ^^
Que faut-il changer pour s'affranchir du "227" anti-crontrolf5isation ?
$(document).ready(function() {
var split = /^(.*\/)(.*)$/.exec($('#yn-boo').attr('src'));
if (split && (split[2] === 'default.png' || split[2] === 'sleep.png')) {
$('#yn-boo')
.nextAll('.z0').attr('src', 'http://www.mirari.fr/qiKe').end()
.nextAll('.z1').attr('src', 'http://www.mirari.fr/SpkR').end()
.nextAll('.z2').attr('src', 'http://www.mirari.fr/jX5K').end()
.attr('src', split[1] + 'pixel.png');
}
});