Skip to content

Commit

Permalink
Update nr_livemap.user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
k3rielit authored Nov 14, 2021
1 parent eb36d86 commit 193d1a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nr_addons/nr_livemap.user.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// ==UserScript==
// @name NR Livemap Addons
// @namespace NR_Addons
// @version 1.0
// @version 1.1
// @description A search feature for the NR livemap.
// @author k3rielit / hrzn
// @downloadURL https://github.com/k3rielit/scripts/raw/main/nr_addons/nr_livemap.user.js
// @match *://livemap.nightriderz.world/*
// @icon https://cdn.nightriderz.world/images/website/favicon.png
// @grant none
Expand All @@ -23,7 +24,6 @@
newElem.appendTo(".move");
$('#search-tbx').on('input', function() {
$('.race').children().css('border-radius','5px');
//console.log(this.value);
for(let _i = 0; _i<$('.race').children().length; _i++) {
if($('.race').children().eq(_i).attr('title').toLowerCase().startsWith(this.value.toLowerCase())) {
$('.race').children().eq(_i).css('display','block');
Expand All @@ -36,4 +36,4 @@
}
});
}
})();
})();

0 comments on commit 193d1a6

Please sign in to comment.