I managed to think out a solution. I really need jQuery to be able to create more complex DOM traversing with X-PATH, so i inject jQuery on the page li so:
var script = document.createElement('script');
script.src = "ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery…";
document.getElementsByTagName('head')[0].appendChild(script);