There is a task from different links to make formatting so that you can use css to make it so that they are in order an example
the engine forms such a block
<ul> <a class="Tooltip" href="threads/audi-tt-kuzov-mk1.6/"></a> <a class="Tooltip" href="threads/audi-tt-tuning-mk1.10/"></a> <a class="Tooltip" href="threads/audi-tt-zvik-mk1.4/"></a> <a class="Tooltip" href="threads/audi-tt-electronika-mk1.18/"></a> <a class="Tooltip" href="threads/audi-tt-dvizhok-mk1.25/"></a> <a class="Tooltip" href="threads/audi-tt-sets-mk1.1/"></a> </ul> and on each page their position dynamically changes, but the words kuzov, dvizhok, etc. always figure out how to drive this list constantly and assign a class to the phrases in the link, for example:
<ul> <a class="kuzov" href="threads/audi-tt-kuzov-mk1.6/"></a> <a class="tuning" href="threads/audi-tt-tuning-mk1.10/"></a> <a class="zvik" href="threads/audi-tt-zvik-mk1.4/"></a> <a class="electrika" href="threads/audi-tt-electronika-mk1.18/"></a> <a class="dvizhok" href="threads/audi-tt-dvizhok-mk1.25/"></a> <a class="sets" href="threads/audi-tt-sets-mk1.1/"></a> </ul> and so on
I don't quite understand javascript
Tried on the model but it is impossible to find the phrase
window.onload = function() { const template = ( link, title ) => `<li class="link-list-item"><a href="${ link }">${ title }</a></li>`; let messages = document.body.querySelectorAll( '.Tooltip' ); let html = Array.from( messages ).reduce( (result, element) => { let text = element.innerText; let titles = text.match( /dvizhok/g ); if( titles ){ let link = element.querySelector('.Tooltip').href; return result += template( link, titles[1] ) + '\n'; } return result; }, "" ); let linkList = document.body.querySelector('.link-list'); linkList.innerHTML = html;} but this is most likely not in that steppe because you just need to leave the place to add a class, and I still don’t understand how to do it all with caching so that people don’t see that this happens while the page is loading