Making MIUI forums usable

Disable all the annoying crap from the MIUI forums

目前為 2018-12-30 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Making MIUI forums usable
// @namespace    none
// @version      1.0
// @description  Disable all the annoying crap from the MIUI forums
// @author       Glow8
// @match        https://en.miui.com/*
// @match        en.miui.com/*
// @match        in.miui.com/*
// @match        https://ru.miui.com/*
// @match        ru.miui.com/*
// @match        https://www.miui.com/*
// @match        www.miui.com/*
// @grant        none
// ==/UserScript==

// This script was based on https://greasyfork.org/en/scripts/23378-miui-medal-block/code by the user Diathedia.
// Created on 30/12/18 so not everything could be up to date.
(function() {
    'use strict';

    var experience = document.getElementsByClassName("cm");
    var medals = document.getElementsByClassName("md_ctrl");
    var sign = document.getElementsByClassName("sign");
    var userdata = document.getElementsByClassName("pil cl");
    while(experience.length > 0){
        experience[0].parentNode.removeChild(experience[0]);
    }
    while(medals.length > 0){
        medals[0].parentNode.removeChild(medals[0]);
    }
    while(sign.length > 0){
        sign[0].parentNode.removeChild(sign[0]);
    }
    while(userdata.length > 0){
        userdata[0].parentNode.removeChild(userdata[0]);
    }
})();