const currURL = location.href; function includeStyle (url) { let link = document.createElement('link'); link.type = 'text/css'; link.rel = 'stylesheet'; link.href = url; document.querySelector("head").append(link); } window.addEventListener("load", () => { if (currURL.indexOf('/pl/user/scale/view-results?id=181444&userId=249302845') > 0) { console.log('Да, эту страничку можно менять кодом я научился') includeStyle('https://fs.getcourse.ru/fileservice/file/download/a/531322/sc/224/h/1e47390866f45a27cec8f8ffe2448ed9.css'); } });