![Bots list filtered from 1000 to 1500 rank](https://image.lichess1.org/display?h=550&op=thumbnail&path=philmageo:ublog:lMm4XBxN:aXP9w4e3.jpg&w=880&sig=b7e1493afb83b9469019ba3aaa95338d700d15ef)
philmageo
Filtering Bots by ranking
If you are a developper or curious you can easily add features to Lichess.orgI have just stumbled across Scripty, a Chrome extension that runs some scripts on websites.
For instance, I like to play occasionaly a Lichess bot but the list is long and many bots are too strong for me.
So I have made a little script that hides bots that are not in the rapid range of 1000 to 1500.
I have installed Scripty (you'll find it on the Chrome Store) and added the script to it.
Now, every time I go on the bot page, I only see the Bots that interest me :)
Here is the script :
(function () {
if(window.location.pathname !== '/player/bots') return;
const minScore = 1000;
const maxScore = 1500;
const title = document.querySelectorAll('h1.box__top');
if(title){
title[0].innerHTML = 'My Bots filtered from ' + minScore + ' to ' + maxScore
}
const iconType = '';
const elementList = document.querySelectorAll('.bots__list .bots__list__entry');
elementList
.forEach((x) => {
let rating = x.querySelector('.bots__list__entry__rating');
let ratingSpans = rating.querySelectorAll('span');
let foundRapidScore = false;
ratingSpans.forEach((y) => {
let ratingType = y.getAttribute('data-icon');
if(ratingType === iconType){
let score = parseInt(y.innerHTML);
if(!isNaN(score)){
foundRapidScore = true;
if(score > maxScore || score < minScore){
x.style.display = 'none'
}
}
}
})
if(!foundRapidScore){
x.style.display = 'none'
}
});
})();
Cheers
More blog posts by Philmageo
![blague](https://image.lichess1.org/display?h=250&op=thumbnail&path=philmageo:ublog:koozyjNY:ChI4bY4n.jpg&w=400&sig=cd8f907e8acb98afe56b31600f1ebe7933e677fd)
Rappel amical
Je suis un cavalier pas un cheval !![joke](https://image.lichess1.org/display?h=250&op=thumbnail&path=philmageo:ublog:7MGo0LTX:Nacd1Zzt.jpg&w=400&sig=8459b99a7f0003985548a466fe229b104c56f3c6)
Friendly reminder
It is a Knight not a horse!![My Lichess Homepage in action](https://image.lichess1.org/display?h=250&op=thumbnail&path=philmageo:ublog:brzWglUR:lOFR7GXz.jpg&w=400&sig=a26dc0cbbc7501874344a306d8ac8d25484da1ef)
New version of the My Lichess Homepage chrome extension
I feel at home on lichess that's why I want to decorate it like my home !![Lichess en bleu](https://image.lichess1.org/display?h=250&op=thumbnail&path=philmageo:ublog:19wySsOM:JjHmzjVA.jpg&w=400&sig=712844d4bbb301f6e4c7fb5304e1390ae5afd92e)