// ==UserScript== // @name vim-fmi точки // @description Добавя брой натиснати клавиши във всяка страница на решения // // @version 1.0 // @license MIT // @author Syndamia // // @source https://gitlab.com/Syndamia/userscripts/-/blob/main/vim-fmi-keystrokes.js // @supportURL https://gitlab.com/Syndamia/userscripts/-/issues // @homepage https://gitlab.com/Syndamia/userscripts/ // @icon https://vim-fmi.bg/favicon.png // // @namespace Syndamia // @match *://*vim-fmi.bg/tasks/* // @run-at document-body // ==/UserScript== document.getElementsByTagName('ul')[3].childNodes.forEach((x) => { if (x.tagName != 'LI') return; var countElem = document.createElement('span'); countElem.style.verticalAlign = 'bottom'; countElem.innerText = x.children[0].children.length; x.insertBefore(countElem, x.firstChild); });