您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Removes news sidebar from matches page
当前为
// ==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 // ==/UserScript== let matches = document.getElementsByClassName("newMatches")[0]; if (matches !== undefined) { let blank = matches.getElementsByClassName("vm-placement")[0]; let content = matches.getElementsByClassName("mainContent")[0]; let news = matches.getElementsByClassName("newSidebar")[0]; if (blank !== undefined) { blank.remove(); } if (news !== undefined) { news.remove(); } if (content !== undefined) { matches.appendChild(content); } }