// ==UserScript== // @name HLTV - no news on matches page // @description Removes news sidebar from matches page // @namespace https://www.hltv.org // @match https://www.hltv.org/matches // @grant none // @version 1.0 // @author spmn // @downloadURL none // ==/UserScript== let matches = document.getElementsByClassName("newMatches"); if (matches !== undefined) { let blank = matches[0].getElementsByClassName("vm-placement"); let content = matches[0].getElementsByClassName("mainContent"); let news = matches[0].getElementsByClassName("newSidebar"); if (blank !== undefined) { blank[0].remove(); } if (news !== undefined) { news[0].remove(); } if (content !== undefined) { matches[0].appendChild(content[0]); } }