Greasy Fork

Greasy Fork is available in English.

HLTV 阅读优化

HLTV 阅读优化,关闭广告

当前为 2022-08-19 提交的版本,查看 最新版本

// ==UserScript==
// @name         HLTV 阅读优化
// @namespace    https://starudream.cn
// @version      1.0.4
// @description  HLTV 阅读优化,关闭广告
// @author       StarUDream
// @license      Apache License 2.0
// @match        *://*.hltv.org/*
// @grant        none
// @icon         https://www.hltv.org/img/static/favicon/favicon-16x16.png
// @run-at       document-end
// @require      https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
// ==/UserScript==
(function() {
    'use strict';

    var $ = window.jQuery;

    // hltv
    $('.middle-container').remove();
    $('.yabo-firstcol-box').remove();
    $('.kgN8P9bvyb2EqDJR').remove();
    $('.csgofastbetting').remove();
    $('.ranking-by-img').remove();
    $('.dongying').remove();
    $('.thunderfire').remove();

    $('#betting').remove();

    $("div[class^='regional-']").remove();
    $("div[class^='world-']").remove();
    $("div[class^='matchpage-']").remove();
    //$("div[class^='player-']").remove();
    $("aside[class^='column-']").remove();

    $('.bgPadding').css('max-width', '80%');
    $('.widthControl').css('max-width', '80%');
    $('.matchInfo').css('flex', '0 0 75px');
})();